[an error occurred while processing this directive]
Бегущая строка в строке статуса
<html> <head> <title>Бегущая строка</title> <script language="javascript"> function statusmessageobject(p,d) { this.msg = message this.out = " " this.pos = position this.delay = delay this.i = 0 this.reset = clearmessage } function clearmessage() { this.pos = position } var position = 100 var delay = 40 var message = "центр информационных" + " технологий" var scroll = new statusmessageobject() function scroller() { for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) { scroll.out += " " } if (scroll.pos >= 0) scroll.out += scroll.msg else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length) window.status = scroll.out scroll.out = " " scroll.pos-- if (scroll.pos < -(scroll.msg.length)) { scroll.reset() } setTimeout ('scroller()',scroll.delay) } </script> </head> <body bgcolor="#000000" onLoad="scroller()"> </body> </html>
Бегущая строка в поле form.
<html> <head> <title>Бегущая строка</title> </head> <script language="JavaScript"> var line="Центр Информационных Технологий "; var speed=150; var i=0; function m_line() { if(i++<line.length) { document.cit.forum.value=line.substring(0,i); } else{ document.cit.forum.value=" "; i=0; } setTimeout('m_line()',speed); } </script> <body bgcolor=000000> <center> <form name=cit> <input type=text size=32 name=forum> </form> </center> <script language="JavaScript"> m_line(); </script> </body> </html>[an error occurred while processing this directive]