<script type="text/javascript" language="javascript"> <!-- innen /* Letöltve a ThomasWebMűhely javascript archívumából: http://www.thomas98.hu/webmuhely.php */
function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } }
var text = new initArray( "Ide írd a szöveget...", "Meg ide...", "És ide...");
var speed = 50; // sebesség var speed2 = 1000; // ismétlés sebesség var whereat = 0; var whichone = 0;
function waveb() { var befor = text[whichone].substring(0,whereat); var wave = text[whichone].substring(whereat,whereat+1).toUpperCase();
window.status = befor + wave;
if (whereat == text[whichone].length) { whereat = 0; ++whichone; if (whichone == text.length) whichone = 0; setTimeout("waveb()",speed2); }
else { whereat++; setTimeout("waveb()",speed); } }
waveb(); // eddig --> </script>
|