Forum > Showoff - what you are working on
Ticker in Html (For every Browser)
(1/1)
Kian:
Hey guys, I show you how to create a ticker like marquee but you can see it in every browser.
First at the top of your html file write:
--- Code: ---<script language="javascript"> var tickertext = " Here ticker Text "; var start = 0; var stop = tickertext.length; function tickerr() { document.ticker.ticker.value = "" + tickertext.substring(start,stop) + " " + tickertext.substring(0,start); start++; if(start >= stop) { start = 0; } setTimeout("tickerr()", 120); } </script>
--- End code ---
And at the place where you want to place the ticker:
--- Code: ---<table cellspacing="0" cellpadding="0" summary="" border="0"> <tbody> <tr> <td> <form name="ticker"> <input style= "BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #eeeeee 1px solid; BORDER-LEFT: #eeeeee 1px solid; WIDTH: 250px; COLOR: black; BORDER-BOTTOM: #eeeeee 1px solid" name="ticker"> </form> <script language="javascript"> tickerr(); </script> </td> </tr> </tbody> </table> --- End code ---
Now you can customize it. Have fun
Kian
Navigation
[0] Message Index
|