Marquee and jScript

N

Nadim Attari

Hi,

Can i dynamically change the direction (through javaScript) of a marquee ???

E.g.:
===
<marquee id = 'newsScroll' name = 'newsScroll' direction = 'down'
scrollamount = '1' scrolldelay = '1' onmouseover='this.stop()'
onmouseout='this.start()'>
some texts here...
some texts here...
some texts here...
</marquee>

<br><br><br>

<a href="javaScript: scrollUp();"><img src="scroll-up.gif"></a><br>
<a href="javaScript: scrollStop();"><"><img src="scroll-stop.gif"></a><br>
<a href="javaScript: scrollDown();"><"><img src="scroll-down.gif"></a>

<script language="JavaScript" type="text/JavaScript">
function scrollUp()
{
document.getElementById(newsScroll).direction = 'up';
}

function scrollStop()
{
document.getElementById(newsScroll).stop();
}

function scrollDown()
{
document.getElementById(newsScroll).direction = 'down';
}
</script>

This does not work.
Any solutions / tutorials please..

Thanks,
Nadim Attari
 
T

Thomas 'PointedEars' Lahn

Mick said:
Nadim said:
Can i dynamically change the direction (through javaScript) of a marquee ???
Why don't you check the Microsoft site?
[...]

Why does he/she not drop the whole invalid marquee nonsense?


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top