Watch Text Ski

[Total: 0    Average: 0/5]

Watch this figure ski.

Head Code:

<script language="JavaScript">
<!--
var max=0;

function tlist(){
  max=tlist.arguments.length;
  for(i=0;i<max;i++) this[i]=tlist.arguments[i];
}

tl = new tlist(
" n"+
"    ,_ o n"+
"   / //\, n"+
"    \>> | n"+
"     \\, n",

" n"+
"     ,_ o n"+
"    / //\, n"+
"     \>> | n"+
"      \\, n",

" n"+
"    o _,   ~ n"+
"   ,/\\ \ ~ n"+
"   | <</ n"+
"     // n",

" n"+
"   o _, n"+
"  ,/\\ \ n"+
"  | <</ n"+
"    // n",

" n"+
"~  ,_ o n"+
" ~/ //\, n"+
"   \>> | n"+
"    \\, n"


    );

var x=0;

function tick() {
  document.f.t.value=tl[x];
  x++;
  if(x==max) x=0;
  setTimeout("tick()",500);
}

// start common code
 window.defaultStatus="JavaScript Example";

 brwsr=false;

 if (document.images) {
    brwsr=true;
        off = new Image(21, 29);
        off.src = "/images/blue_ball0.gif";
        on = new Image(21, 29);
        on.src = "/images/red_ball0.gif";
}

function imgDown(imgName) {
   if (brwsr) document [imgName].src = on.src;
}

function imgUp(imgName) {
   if (brwsr) document [imgName].src = off.src;
}

//-->
</script>

Body Code:

<FORM NAME=f>
 <TEXTAREA NAME=t ROWS=10 COLS=20 WRAP=physical></TEXTAREA>
</FORM>
<script>
tick();
</script>

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *