Solution....RE: [javascript] Digest Number 773
denzil.pereira at iflexsolutions.com
denzil.pereira at iflexsolutions.com
Wed Aug 7 05:57:33 CDT 2002
Hi Iztok,
Well you could call the clearTimeout Method (what this method will do is
that it will cancel the time-out that was set with the setTimeout method
earlier) when the user triggers the OnmouseOut event.
intID = setTimeout("moveUp()",200);
Syntax will be window.clearTimeout(intID)
where intID=Integer that specifies the time-out setting returned by a
previous call to the setTimeout method.
Hope this helps !!!
Best regards,
Denzil
-----Original Message-----
From: javascript at yahoogroups.com
Subject: [javascript] Digest Number 773
3. Scrolling text
From: "Iztok Polanic" <iztokp at amis.net>
________________________________________________________________________
________________________________________________________________________
Message: 3
Date: Wed, 7 Aug 2002 09:47:04 +0200
From: "Iztok Polanic" <iztokp at amis.net>
Subject: Scrolling text
Hi!
I've written a code which scrolls text vertically. But now when a user
triggers OnmouseOut event the scroller should stop where it is. How to do
this? Here is the code for scrolling:
function moveUp()
{
if (tblSize >= size) {
if (tblSize_2 >= counter1) {
counter1 += 10;
document.getElementById('scrollIt').style.top = -counter1;
setTimeout("moveUp()",200);
}
}
}
Bye,
Iztok
----------------------------------------------------------------------------
This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission. If verification is required
please request a hard-copy version.
--------------------------------------------------------------------------
More information about the Javascript
mailing list