TextBox
Text box, в който се изписват хоризонтално няколко текста. Ето ви кода:
CODE
CODE
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <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 ( "Текст 1 някакъв !", "Текст 2 някакъв !", "Текст 3 някакъв !" ); 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> </head> <body onload="textticker()" bgcolor="#FFFFFF" text="#000000"> <div align="center"><form name="tickform"> <div align="center"><center><p><input type="text" name="tickfield" size="40"></p> </center></div> </form> </body> </html> |





