Script Categories













Scrolls >>> Box Message.

Scrolls a message in a textbox. When the user clicks in the box, however, the scrolling text is stopped and the box can be used normally.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
ScrollSpeed = 200;
ScrollChars = 1;

function ScrollMarquee() {
window.setTimeout('ScrollMarquee()', ScrollSpeed);
var msg = document.scrollform.box.value;
document.scrollform.box.value = msg.substring(ScrollChars) + msg.substring(0, ScrollChars);
}
window.onload=ScrollMarquee;
//  End -->
</script>
<center>
<form method=get name=scrollform>
<input
name=box type="text" size="15" value="                       Click Here To Search                  " onFocus="javascript:this.value='';ScrollSpeed=99999;">
</form>
</center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©