[Ticker]

Einfacher Textticker

[zwischen <HEAD> und </HEAD>]

<script language="javascript">
<!-- Ticker Tape in Java Script .. Cameron Gregory cameron@bloke.com
//-- http://www.bloke.com/
var tickertapeform
speed=100
len=75
space="                                                                                                    "
tid = 0;
message="TickerTape in JavaScript .. by Cameron Gregory .. cameron@bloke.com .. You are welcome to my home anytime, I live at:   http://www.bloke.com/ and http://www.cs.jcu.edu.au/~cameron/"
c= -len;

function move() {
  cend=Math.min(c+len,message.length)
  if (c <0)
    cstart=0
  else
    cstart=c
  if (c < 0)
    f.scroll.value=space.substring(0,-c) + message.substring(cstart,cend)
  else
    f.scroll.value=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(m,l,s)
{
message=m
len=l
speed=s
document.write('<FORM name=tickertapeform><input name=scroll size=')
document.write(len)
document.write(' value=""></FORM>')
start(document.tickertapeform);
}

// for some reason on some pages this crashes netscape
function ticker(m)
{
message=m
len=75
speed=100
document.write('<FORM name=tickertapeform><input name=scroll size=75></FORM>');
start(document.tickertapeform);
}

// end-->
</script>

[zwischen <BODY> und </BODY>]

In den rot markierten Abschnitt tragen Sie bitte Ihren Text ein

<script language="javascript">
ticker("Welcome to my Ticker Tape in Java Script.   Simply add one line to your HTML and include the script and you are off and running.  You are welcome at my home anytime, I live at:  .... http://www.bloke.com/ ...  Things that interest me ... Volleyball ... Java(tm) Programming ... Java Script ... CGI ... HTML ... Netscape ... Proxy cachers ...  ")
</script>

[Autor]

Cameron Gregory

[Download]

Bitte kopieren Sie den Quelltext

Copyright © 1998- Nightfire Webworker Archiv Script No: 0330