P
PythonistL
I am a newbie with Javascript. I have this simple script for scrolling
text
<HTML>
<HEAD>
<TITLE>Scrolling Message Script</TITLE>
<SCRIPT language="JavaScript"><!--
var msg = 'My scrolling text.. '
function scrollMsg(){
document.scrollDemo.textScroll.value = msg
msg = msg.substring(1,msg.length) + msg.substring(0,1)
setTimeout("scrollMsg()", 200)
}
//--></SCRIPT>
</HEAD>
<BODY bgcolor="white" onLoad="scrollMsg()">
<P>
<FORM name="scrollDemo">
<FONT face="Courier New,Courier" size=3><B>
<INPUT type="text" name="textScroll" size=30 value="Loading" ">
</B></FONT>
</FORM>
</BODY>
</HTML>
How must I change the script so that the text stops scrolling when I
put a mouse cursor over the text?
And I would like to have a link to the scrolling text with <a> tag
e.g.
<a href="/TextDetail/">'My scrolling text.. </a>
Is it possible?
How much difficult would that be ?
Thank you for help
L.
text
<HTML>
<HEAD>
<TITLE>Scrolling Message Script</TITLE>
<SCRIPT language="JavaScript"><!--
var msg = 'My scrolling text.. '
function scrollMsg(){
document.scrollDemo.textScroll.value = msg
msg = msg.substring(1,msg.length) + msg.substring(0,1)
setTimeout("scrollMsg()", 200)
}
//--></SCRIPT>
</HEAD>
<BODY bgcolor="white" onLoad="scrollMsg()">
<P>
<FORM name="scrollDemo">
<FONT face="Courier New,Courier" size=3><B>
<INPUT type="text" name="textScroll" size=30 value="Loading" ">
</B></FONT>
</FORM>
</BODY>
</HTML>
How must I change the script so that the text stops scrolling when I
put a mouse cursor over the text?
And I would like to have a link to the scrolling text with <a> tag
e.g.
<a href="/TextDetail/">'My scrolling text.. </a>
Is it possible?
How much difficult would that be ?
Thank you for help
L.