Free javascript Hosting


vole-02.js

Uploaded on Mar 03 2022 17:54 by nathie.lsf

document.write("");

var nos = 08;
var fsd = 5;

imgpre = new Image();
imgpre.scr = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";
imgpre.scr = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";
imgpre.scr = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";

balls = new Array();
balls[0] = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";
balls[1] = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";
balls[2] = "http://ekladata.com/PHjKvmNIyNIRX8TkwW_Go1UyV_g/colombe.gif";
balls[3] = "";
balls[4] = "";
balls[5] = "";

var mfs = 5;
var fiy, pfy, pfx, ama, rfy, rfx, iaf, fsb, fsE, fsy, fsx, xff, yff;

fdw = 800;
fdh = 600,

fiy = new Array();
pfy = new Array();
pfx = new Array();
ama = new Array();
rfy = new Array();
rfx = new Array();
js = mfs;

setTimeout("snowf()", fsd);

for (iaf = 0; iaf < nos; ++ iaf) {
fiy[iaf] = 0;
pfy[iaf] = Math.random()*(fdh-50);
pfx[iaf] = Math.random()*fdw;
ama[iaf] = Math.random()*10;
rfy[iaf] = 0.02 + Math.random()/40;
rfx[iaf] = 0.7 + Math.random();
if (iaf == 0) {
document.write("<div id=\"dot"+ iaf +"\" style=\"position:absolute; z-index: "+ iaf +"; visibility:visible; top:15px; left:15px;\"><img src=\"" + balls[js] + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ iaf +"\" style=\"position:absolute; z-index: "+ iaf +"; visibility:visible; top:15px; left:15px;\"><img src=\"" + balls[js] + "\" border=\"0\"></div>");
}
if (js == 0) { js = mfs; } else { js -= 1; }
}

function snowf() {
for (iaf = 0; iaf < nos; ++ iaf) {
pfx[iaf] += rfx[iaf];

fsb = document.body.scrollTop;
fsE = document.documentElement.scrollTop;
if(fsb>fsE){
fsy = document.body.scrollTop;
fsx = document.body.scrollLeft;
}else{
fsy = document.documentElement.scrollTop;
fsx = document.documentElement.scrollLeft;
}

if (pfx[iaf]>fdw || pfy[iaf]<fsy || pfy[iaf]>fsy+yff) {
pfy[iaf] = Math.random()*(fdh-ama[iaf]-30);
pfx[iaf] = 100*Math.random();
rfy[iaf] = 0.02 + Math.random()/40;
rfx[iaf] = 0.7 + Math.random();

ost = document.body.clientHeight;
if(ost >1200){
yff = document.documentElement.clientHeight-50;
xff = document.documentElement.clientWidth-50;
}else{
yff = document.body.clientHeight-50;
xff = document.body.clientWidth-50;
}
fdh = yff + fsy;
fdw = xff + fsx;
}
fiy[iaf] += rfy[iaf];
document.getElementById('dot'+iaf).style.top = pfy[iaf] + ama[iaf]*Math.sin(fiy[iaf])+"px";
document.getElementById('dot'+iaf).style.left = pfx[iaf]+"px";
}
setTimeout("snowf()", fsd);
}

Back to list