var tickertapeform
speed=100
len=75
space="                                                                                                    "
tid = 0;
message="TickerTape in JavaScript .. ..."
 
c= -len;
function move() {
 
  cend=Math.min(c+len,message.length)
  if (c <0)
    cstart=0
  else
    cstart=c
  if (c < 0)
    f.innerText=space.substring(0,-c) + message.substring(cstart,cend)
  else
    f.innerText=message.substring(cstart,cend)
    
  c = c +1;
  if (c == message.length ) c = -len;
  tid=window.setTimeout("move()",speed);
}
 
function start(x) {
  f=x
  tid=window.setTimeout("move()",speed);
}
 
function cleartid() {
  window.clearTimeout(tid);
}
// for some reason on some pages this crashes netscape
function ticker(element,m,l,s)
{
message=m
len=l
speed=s
start(element);
}
