reddragon8
07-21-2005, 04:07 PM
http://www.reddragons.secretsomebody.com/index.php
You can see theres a marquee.......
well, can i stop that marquee by making a link/button using coding?
or isn't that possible?
Thanx!!
x x x x
you can probably find a marquee that does that through here...
http://www.dynamicdrive.com
just to a search for marquee to bring up all their scripts about it.
try this javascript:
function stopStart(n)
{
var n = 0;
if(n == 1)
{
document.getElementByID('marquee').start()
}
else
{
document.getElementByID('marquee').stop()
}
if(n >= 1)
{
n = 1;
}
}
For your marquee and link:
<marquee id="marquee">Your text here</marquee>
<a href="#" onclick="stopStart(+1)">Stop / Start the marquee</a>
Not tested and might not work.
reddragon8
07-21-2005, 10:02 PM
thanx!
Its kinda what i want, but ...... i wanted it to stop/start
at the moment, its only pausing if you click on it.
and i didnt mean hyperlink, i meant text you could click...
(it says error at the bottom, line 105, char 6. that this bit;
>>>> document.getElementByID(' marquee').stop()
but it dont have a clue how to fix it)
*sorry, im confusing* :(
Cheers!! :)