»
EnglishFrenchVietnamese

Print - News Flash - JavaScriptBank.com

Full version: jsB@nk » Form » Table » News Flash
URL: http://www.javascriptbank.com/news-flash.html

News Flash © JavaScriptBank.comA flashing news script.

Full version: jsB@nk » Form » Table » News Flash
URL: http://www.javascriptbank.com/news-flash.html



CSS
<STYLE>#news {POSITION: relative;}.nborder {BORDER-RIGHT: #ffcc66 solid; BORDER-TOP: #ffcc66 solid; MARGIN-LEFT: 25%; BORDER-LEFT: #ffcc66 solid; MARGIN-RIGHT: 25%; BORDER-BOTTOM: #ffcc66 solid; BACKGROUND-COLOR: #ffffcc}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT>var tofunction showNext( i ){clearTimeout( to );if(i == items.length){i = 0;}if(document.all)news.innerHTML = items[ i ];if(document.layers){document.layers.news.document.open();document.layers.news.document.write('<span class=nborder>' + items[ i ] + '</span>');document.layers.news.document.close();}if( items[ i ].indexOf( "href" ) >= 0 ) tm = 25; else tm = 50;to = setTimeout( "showNext( "+ ++i +" )", 500 + items[ i - 1 ].length * tm );}</SCRIPT><SCRIPT><!-- or src="newsflash.js"-->items = new Array()items[0] = "Home sweet home"items[1] = "<a href='http://tech-two.mit.edu/Shakespeare/'>To be or not to be,<br>That's the question.</a>"items[2] = "<a href='http://www.python.org/download/'>get Python 2.2b</a>."items[3] = "<a href='http://members.home.nl/hfl/perlman.htm'>find out all about Perl</a>"items[4] = "The number of characters in a line are counted to estimated a total<br>time in which the entire message can be read.<br>If you include an anchor hyperreference in the lines this value is devided by 2."</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<DIV class=nborder id=news>Here is the news </DIV><SCRIPT>to = setTimeout( "showNext(0)", 1000 );</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->