»
AnglaisFran�aisVietnamien

Imprimer - Shaking Ticker script - JavaScriptBank.com

Version compl�te: jsB@nk » Texte » Animation » Shaking Ticker script
URL: https://www.javascriptbank.com/shaking-ticker-script.html

Shaking Ticker script © JavaScriptBank.comBored visiteurs? Shake éveillés à cette simple secouer ticker. Charges beaucoup plus rapide que n'importe quel applet Java.

Version compl�te: jsB@nk » Texte » Animation » Shaking Ticker script
URL: https://www.javascriptbank.com/shaking-ticker-script.html



JavaScript
<SCRIPT language=JavaScript1.1><!-- Beginning of JavaScript -var y=30var x=10var count_shakes= 0var shaketickerfunction initObjects() {if (document.all) {shaketicker0 = document.all.shaketick0.styleshaketicker1 = document.all.shaketick1.styleshaketicker2 = document.all.shaketick2.styleshaketicker3 = document.all.shaketick3.styleshaketicker4 = document.all.shaketick4.styleshaketicker5 = document.all.shaketick5.styleshaketicker6 = document.all.shaketick6.style}if (document.layers) {shaketicker0 = document.shaketick0shaketicker1 = document.shaketick1shaketicker2 = document.shaketick2shaketicker3 = document.shaketick3shaketicker4 = document.shaketick4shaketicker5 = document.shaketick5shaketicker6 = document.shaketick6}shake()}function getrandom() {var dif= Math.floor(Math.random()*2)return dif}function getrandom2() {var dif= Math.floor(Math.random()*5)return dif}function getrandom3() {var dif= Math.floor(Math.random()*10)return dif}function intermezzo() {count_shakes=0var goon=setTimeout('shake()',2000)}function shake() {if (count_shakes < 50) {if (document.all) {shaketicker0.posTop=y+getrandom(); shaketicker0.posLeft=x+getrandom3();shaketicker1.posTop=y+getrandom(); shaketicker1.posLeft=x+getrandom2();shaketicker2.posTop=y+getrandom2(); shaketicker2.posLeft=x+getrandom();shaketicker3.posTop=y+getrandom(); shaketicker3.posLeft=x+getrandom3();shaketicker4.posTop=y+getrandom3(); shaketicker4.posLeft=x+getrandom2();shaketicker5.posTop=y+getrandom2(); shaketicker5.posLeft=x+getrandom();shaketicker6.posTop=y+getrandom2(); shaketicker6.posLeft=x+getrandom();}if (document.layers) {shaketicker0.top=y+getrandom(); shaketicker0.left=x+getrandom3();shaketicker1.top=y+getrandom(); shaketicker1.left=x+getrandom2();shaketicker2.top=y+getrandom2(); shaketicker2.left=x+getrandom();shaketicker3.top=y+getrandom3(); shaketicker3.left=x+getrandom();shaketicker4.top=y+getrandom(); shaketicker4.left=x+getrandom2();shaketicker5.top=y+getrandom2(); shaketicker5.left=x+getrandom();shaketicker6.top=y+getrandom(); shaketicker6.left=x+getrandom3();}var timer = setTimeout('shake()',10)count_shakes++;}else {shaketicker0.top=y; shaketicker0.left=x;shaketicker1.top=y; shaketicker1.left=x;shaketicker2.top=y; shaketicker2.left=x;shaketicker3.top=y; shaketicker3.left=x;shaketicker4.top=y; shaketicker4.left=x;shaketicker5.top=y; shaketicker5.left=x;shaketicker6.top=y; shaketicker6.left=x;intermezzo()clearTimeout(timer)}}// - End of JavaScript - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=initObjects()><DIV class=ticker id=shaketick0 style="COLOR: #ffeeee">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick1 style="COLOR: #ffcccc">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick2 style="COLOR: #ff9999">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick3 style="COLOR: #ff7777">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick4 style="COLOR: #ff5555">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick5 style="COLOR: #ff2222">Test the new shaking ticker. </DIV><DIV class=ticker id=shaketick6 style="COLOR: #ff0000">Test the new shaking ticker. </DIV></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->