Click here to Skip to main content
16,004,944 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: textbox value addition Pin
ManiMughal20-Jun-08 4:51
ManiMughal20-Jun-08 4:51 
GeneralRe: textbox value addition Pin
tina->newcoder20-Jun-08 8:04
tina->newcoder20-Jun-08 8:04 
GeneralRe: textbox value addition Pin
windhopper22-Jun-08 22:07
windhopper22-Jun-08 22:07 
QuestionServer Control help? Code attached Pin
windhopper20-Jun-08 4:01
windhopper20-Jun-08 4:01 
AnswerRe: Server Control help? Code attached Pin
Abhijit Jana20-Jun-08 4:04
professionalAbhijit Jana20-Jun-08 4:04 
GeneralRe: Server Control help? Code attached Pin
windhopper20-Jun-08 4:17
windhopper20-Jun-08 4:17 
QuestionThe solution to our ASP.NET page timeout problems... Pin
AndyBrew7020-Jun-08 3:53
AndyBrew7020-Jun-08 3:53 
QuestionJavaScript Help?? Pin
Imran Adam20-Jun-08 3:16
Imran Adam20-Jun-08 3:16 
Hi
I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box.

How can i acheive this effect??

This is the javascript i have;


<script language="JavaScript">

function getObject( obj ) {

var strObj

if ( document.all ) {

strObj = document.all.item( obj );

} else if ( document.getElementById ) {

strObj = document.getElementById( obj );

}

return strObj;

}

var theTop = 200;
var theHeight = 100;
var theWidth = 150;
var theLeft = 350;
var toClip = 200;

function scrollNews( newsDiv, toMove )
{

theDiv = getObject( newsDiv.toString() );

if ( theDiv == null )
{
return;
}

if ( document.layers )
{
theDiv.clip.top = toMove;
theDiv.clip.bottom = toMove + toClip;
theDiv.top = theTop - toMove;
}
else
{
theDiv = theDiv.style;
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop - toMove + 'px';
}
if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) )
{
toMove = 0;
if ( document.layers )
{
theDiv.clip.top = theTop;
theDiv.clip.bottom = toClip;
theDiv.top = theTop
}
else
{
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop + 'px';
}
}
toMove = (toMove + 2); //speed of scroll
setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100);
}
</script>

Any help is much appreciated

Cheers Smile | :)

AnswerRe: JavaScript Help?? Pin
Abhijit Jana20-Jun-08 3:22
professionalAbhijit Jana20-Jun-08 3:22 
GeneralRe: JavaScript Help?? Pin
Imran Adam20-Jun-08 5:56
Imran Adam20-Jun-08 5:56 
QuestionGood free Wiki, intranet implementation in ASP.NET - suggestions? Pin
m3ntat_20-Jun-08 2:57
m3ntat_20-Jun-08 2:57 
AnswerRe: Good free Wiki, intranet implementation in ASP.NET - suggestions? Pin
Abhijit Jana20-Jun-08 2:59
professionalAbhijit Jana20-Jun-08 2:59 
GeneralRe: Good free Wiki, intranet implementation in ASP.NET - suggestions? Pin
m3ntat_20-Jun-08 3:14
m3ntat_20-Jun-08 3:14 
GeneralRe: Good free Wiki, intranet implementation in ASP.NET - suggestions? Pin
Abhijit Jana20-Jun-08 3:44
professionalAbhijit Jana20-Jun-08 3:44 
AnswerRe: Good free Wiki, intranet implementation in ASP.NET - suggestions? Pin
N a v a n e e t h20-Jun-08 4:13
N a v a n e e t h20-Jun-08 4:13 
Questionmaintaining a site Pin
vijaylumar20-Jun-08 2:44
vijaylumar20-Jun-08 2:44 
QuestionHow to create weather control in Asp.Net Pin
Johndas20-Jun-08 1:45
Johndas20-Jun-08 1:45 
AnswerDuplicate Post : Please iGnOre Pin
Abhijit Jana20-Jun-08 1:48
professionalAbhijit Jana20-Jun-08 1:48 
QuestionHow to create Weather Control in Asp.Net Pin
Johndas20-Jun-08 1:42
Johndas20-Jun-08 1:42 
AnswerRe: How to create Weather Control in Asp.Net Pin
Abhijit Jana20-Jun-08 1:44
professionalAbhijit Jana20-Jun-08 1:44 
Questionfilter field in crystal report creation wizard? Pin
Masood Kochi,SSF20-Jun-08 1:39
Masood Kochi,SSF20-Jun-08 1:39 
AnswerRe: filter field in crystal report creation wizard? Pin
Abhijit Jana20-Jun-08 3:52
professionalAbhijit Jana20-Jun-08 3:52 
Question[Message Deleted] Pin
Reethika20-Jun-08 1:28
Reethika20-Jun-08 1:28 
AnswerRe: need a sample project Pin
Abhijit Jana20-Jun-08 1:46
professionalAbhijit Jana20-Jun-08 1:46 
General[Message Deleted] Pin
Reethika20-Jun-08 1:51
Reethika20-Jun-08 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.