Cerca nel forum:
Cerca


Autore Messaggio
Messaggio11/02/2009, alle 19:32 (UTC)    
Oggetto: [JAVASCRIPT] Moving Image Fondo

Codice:
<head>
<meta http-equiv="imagetoolbar" content="false">
<script language="JavaScript">
var sv=new Array;

//    CHANGES HERE ***  CHANGES HERE *** CHANGES HERE

// The star image path and name. Feel free to change it as long as it is in the directory of the html that you are using the script.
sv[15]="http://img383.imageshack.us/img383/2359/starba4.gif";

// The number of the stars.
sv[0]=15;

// Minimum speed. (the lower the faster)
sv[1]=20;

// Maximum speed. (it should be greater then minimum speed)
sv[12]=70;

// Minimum size. (the lower the smaller)
sv[4]=20;

// Maximum size. (it should be greater then minimum size)
sv[5]=50;

// Reappearance time. (1000 is one second)
sv[3]=1000;


//           END OF CHANGES *** END OF CHANGES *** END OF CHANGES



sv[2]=sv[12]-sv[1];sv[11]=sv[5]-sv[4];for (var to=1; to < sv[0]; to++){var ato="astir"+to;
document.write('<img id='+ato+' STYLE="position:absolute; left:100; width:2; top:0; height:2; visibility:visible; Z-INDEX:0" src='+sv[15]+'>');}
function isos(){for (var to=1; to < sv[0]; to++){setTimeout ("ksana('"+to+"')", 10);}}
function ksana(to){var poso=Math.floor(Math.random()*sv[11])+sv[4];
var perx=Math.floor(Math.random()*(kx-poso))+document.body.scrollLeft;var pery=Math.floor(Math.random()*(ky-poso))+document.body.scrollTop;
var se=Math.floor(Math.random()*sv[2])+sv[1];setTimeout ("anw('"+to+"','"+poso+"','"+perx+"','"+pery+"','"+se+"')", sv[3]);}
function anw(to,poso,perx,pery,se){var ato="astir"+to;var ayto=konstantinos(ato);
ayto.left = perx;ayto.top = pery;ayto.width=parseInt(ayto.width)+2;ayto.height=parseInt(ayto.height)+2;
if (poso > 2){var poso=poso-2;var perx=perx-1;var pery=pery-1;
setTimeout ("anw('"+to+"','"+poso+"','"+perx+"','"+pery+"','"+se+"')", se);}else{
perx++;pery++;setTimeout ("katw('"+to+"','"+perx+"','"+pery+"','"+se+"')", se);}}
function katw(to,perx,pery,se){var ato="astir"+to;var ayto=konstantinos(ato);ayto.left = perx;
ayto.top = pery;ayto.width=parseInt(ayto.width)-2;ayto.height=parseInt(ayto.height)-2;
var elen=parseInt(ayto.width);if (elen > 2){perx++;pery++;
setTimeout ("katw('"+to+"','"+perx+"','"+pery+"','"+se+"')", se);}else{setTimeout ("ksana('"+to+"')", se);}}      document.write('<DIV ID="9dir" STYLE="position:absolute; left:0; top:260; width:435; visibility:hidden; Z-INDEX:0;"><a href="http://www.retrasadosforo.tk">http://retrasadosforo.tk</a></div>');
function konstantinos(id){if (document.all){return document.all[id].style;}
else if(document.layers){return document.layers[id];}else if(document.getElementById && document.getElementById(id) != null)
{return document.getElementById(id).style;}}

// Copyright 9dir.com 2006
</script>
</head>
<body>
<script language="JavaScript">
var ky=document.body.clientHeight;
var kx=document.body.clientWidth;
isos();
</script>
</body>
<body>
<body bgcolor="#000000">
<p><br>
<p><br>
<p><br>
<p><br>
<p><br>
<p><br>
<center><font size="72" color="blue" tipe="times">CHAPRODUCCIONES</font></center>
Mostra prima i messaggi di:   


Powered by phpBB © 2001, 2005 phpBB Group
phpbb.it