»
AnglaisFran�aisVietnamien

Imprimer - Flying Image script - JavaScriptBank.com

Version compl�te: jsB@nk » Image » Flying Image script
URL: https://www.javascriptbank.com/flying-image-script.html

Flying Image script © JavaScriptBank.comAlors que la plupart des scripts DHTML sont écrits en utilisant le langage JavaScript, il n'a certainement pas l'être. DHTML est un générique d'amélioration de la quatrième génération + les navigateurs qui peuvent être manipulés en utilisant une variété de langages de script.

Version compl�te: jsB@nk » Image » Flying Image script
URL: https://www.javascriptbank.com/flying-image-script.html



HTML
<body onload="Ypick()"><script language="JavaScript">/*Flying Image Script- By Dylan Coldblatt ([email protected])*/var yend;var ystart;var ydiff;var xincrement;var yincrement;var screenwidth;var screenheight;function Ypick(){   if (!document.all)   returnscreenwidth = screensize.offsetWidth;screenheight = screensize.offsetHeight;xincrement = (screenwidth/10); ystart = Math.round(Math.random()*(screenheight-92));yend = Math.round(Math.random()*(screenheight-92));document.all.ball.style.top=ystart;document.all.ball.style.left=-100;if (ystart > yend){ydiff = (ystart-yend);yincrement = (ydiff/xincrement);Moveneg();}else {ydiff = (yend-ystart);yincrement = (ydiff/xincrement);Movepos();}}function Moveneg(){if (screenwidth > parseInt(document.all.ball.style.left)) {        with (document.all.ball) {style.left = parseInt(style.pixelLeft + 10);style.top = parseInt(style.pixelTop - yincrement);}        setTimeout('Moveneg()',20);    }else {with (document.all.ball) {style.left = parseInt(style.pixelLeft - screenwidth);style.top = parseInt(style.pixelTop - yend);}Ypick();}}function Movepos(){if (screenwidth > parseInt(document.all.ball.style.left)) {        with (document.all.ball) {style.left = parseInt(style.pixelLeft + 10);style.top = parseInt(style.pixelTop + yincrement);}        setTimeout('Movepos()',20);    }else {with (document.all.ball) {style.left = parseInt(style.pixelLeft - screenwidth);style.top = parseInt(style.pixelTop - yend);}Ypick();}}</script><div id="screensize" style="position: absolute; top: 0; left: 0; height: 100%; width: 100%"></div><p><img id="ball" SRC="logojs.gif" style="container:in-flow;position:relative;left:-100;top:0;visibility:show"></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->