<head>الكود التالي في
<script> <!-- START HIDE var max=0; function textlist() { max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i]; } tl = new textlist ( "الجملة الأولى", "الحملة الثانيه", "الجملة الثالثه" ); var x=0; pos=0; var l=tl[0].length; function textticker() { document.tickform.tickfield.value=tl[x].substring(0,pos)+"_"; if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++; if(x==max) x=0; l=tl[x].length; } else setTimeout("textticker()",100); } // STOP HIDE --> </script> <!--~~~~~~~~~~ CUT AND PASTE INSIDE "BODY" HERE --> <body onload="textticker()"> <form name="tickform"> <p align="center"><input type="text" name="tickfield" size="40"></p> </form>
الرجوع إلى الصفحة