»
AnglaisFran�aisVietnamien

Imprimer - Splash Tracker - JavaScriptBank.com

Version compl�te: jsB@nk » Pointer » Trailer » Splash Tracker
URL: https://www.javascriptbank.com/splash-tracker.html

Splash Tracker © JavaScriptBank.comSplash Tracker est un peu étonnant DHTML animation vous ne l'avez jamais vu auparavant. The random-image-moteur crée une drôle loooooooooong curseur parcours d'un ensemble d'images. Ajouter autant d'images que vous le souhaitez.

Version compl�te: jsB@nk » Pointer » Trailer » Splash Tracker
URL: https://www.javascriptbank.com/splash-tracker.html



JavaScript
<script>///////////////////////////////////////////////////////////////// CONFIGURATION STARTS HERE///////////////////////////////////////////////////////////////// URLs of the splash images. Replace it with your images.var imgurl=new Array ("bongbong.gif","bongbong.gif","bongbong.gif")// maximum numbers of splash images displayed on your webpagevar max_img=100// how long shall the images be displayed after the animation is over (seconds)var standstill=2// speed of animation: lower means fastervar speed=6///////////////////////////////////////////////////////////////// CONFIGURATION ENDS HERE///////////////////////////////////////////////////////////////var imgpreload=new Array()for (i=0;i<=imgurl.length-1;i++) {imgpreload[i]=new Image()imgpreload[i].src=imgurl[i]}var isfinished=falsevar range=imgurl.lengthvar ns4=document.layers?1:0var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0var i_img=0var posleftvar postopvar shownext=0var standstill=standstill*1000function showimages(e) {if (i_img<=max_img && isfinished==false) {if (shownext==0) {if (ie) {posleft=document.body.scrollLeft+window.event.x;postop=document.body.scrollTop+window.event.y;thisobj=eval("document.all.d"+i_img+".style")thisobj.visibility="visible"thisobj.posLeft=posleftthisobj.posTop=postop}if (ns6) {posleft=e.pageXpostop=e.pageYvar thisid="d"+i_imgthisobj=document.getElementById(thisid).stylethisobj.visibility="visible"thisobj.left=posleftthisobj.top=postop}if (ns4) {posleft=e.pageXpostop=e.pageYthisobj=eval("document.d"+i_img)thisobj.visibility="visible"thisobj.left=posleftthisobj.top=postop}i_img++shownext++}else {shownext++if (shownext>speed) {shownext=0}}}else if (isfinished==false) {isfinished=truei_img=0var ti=setTimeout("clearimages()",standstill)}}function clearimages() {if(i_img<=max_img) {if (ie) {thisobj=eval("document.all.d"+i_img+".style")thisobj.visibility="hidden"}if (ns6) {var thisid="d"+i_imgthisobj=document.getElementById(thisid).stylethisobj.visibility="hidden"}if (ns4) {thisobj=eval("document.d"+i_img)thisobj.visibility="hidden"}i_img++var timer=setTimeout("clearimages()",20)}else {clearTimeout(timer)}}function pageisloaded() {if (ns4) {document.captureEvents(Event.MOUSEMOVE);}document.onmousemove=showimages}if (ie || ns4 || ns6) {window.onload=pageisloaded}for (i=0;i<=max_img;i++) {var randimg=Math.floor(range*Math.random())if (ie || ns6) {document.write("<DIV id='d"+i+"' style='position:absolute;left:0;top:0;visibility:hidden'><img src='"+imgurl[randimg]+"'></div>");}if (ns4) {document.write("<layer name='d"+i+"' left=0 top=0 visibility=hide><img src='"+imgurl[randimg]+"'></layer>");}}document.close()</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


Files
http://javascriptbank.com/javascript/mouse/bongbong.gif