Ticker Tape scrolling message demo
Back to the index page
Код скрипта
<html>
<head>
<script language="JavaScript">
<!-- Hide the script from non-JavaScript browsers --
// This script was found at the JavaScript Place. http://www.javaplace.co.uk
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function ticker() {
var i,k,msg=" Your important and interesting messages go here .......... ";
k=(75/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg;
document.form2.ticker.value=msg.substring(position,position+100);
if(position++==38) position=0;
id=setTimeout("ticker()",1000/10); }
function action() {
if(!pause) {
clearTimeout(id);
pause=1; }
else {
ticker();
pause=0; } }
// --End hiding script from non-JavaScript browsers -->
</script>
</head>
<BODY onLoad="ticker ()">
<CENTER><H3>Ticker Tape scrolling message
demo</H3></CENTER>
<P>
<FORM NAME="form2">
<INPUT TYPE="text" name="ticker" size="82">
</FORM>
<P>
Back to the <A HREF="index.html">index</A> page
</body>
</html>