小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

JS特效-氣泡

 WindySky 2009-02-24

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
Image0 = new Image();
Image0.src = "jsimg/images/bubble.gif";
Amount = 20;
Ymouse = -50;
Xmouse = -50;
Ypos = new Array();
Xpos = new Array();
Speed = new Array();
rate = new Array();
grow = new Array();
Step = new Array();
Cstep = new Array();
nsSize = new Array();
ns = (document.layers)?1:0;
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt) {
Ymouse=(document.layers)?evnt.pageY-20:event.y-20;
Xmouse=(document.layers)?evnt.pageX:event.x;
}
(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
for (I = 0; I < Amount; I++) {
Ypos[I] = Ymouse;
Xpos[I] = Xmouse;
Speed[I] = Math.random()*4+1;
Cstep[I] = 0;
Step[I] = Math.random()*0.1+0.05;
grow[I] = 8;
nsSize[I] = Math.random()*15+5;
rate[I] = Math.random()*0.5+0.1;
}
if (ns) {
for (I = 0; I < Amount; I++) {
document.write("<LAYER NAME='sn"+I+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize[I]+" height="+nsSize[I]+"></LAYER>");
    }
}
else {
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (I = 0; I < Amount; I++) {
document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=90)">');
}
document.write('</div></div>');
}
function MouseBubbles() {
var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft;
for (I = 0; I < Amount; I++){
sy = Speed[I] * Math.sin(270 * Math.PI / 180);
sx = Speed[I] * Math.cos(Cstep[I] * 4);
Ypos[I] += sy;
Xpos[I] += sx;
if (Ypos[I] < -40) {
Ypos[I] = Ymouse;
Xpos[I] = Xmouse;
Speed[I] = Math.random() * 6 + 4;
grow[I] = 8;
nsSize[I] = Math.random() * 15 + 5;
}
if (ns) {
document.layers['sn'+I].left = Xpos[I] + wscrll;
document.layers['sn'+I].top = Ypos[I] + hscrll;
}
else {
si[I].style.pixelLeft = Xpos[I] + wscrll;
si[I].style.pixelTop = Ypos[I] + hscrll;
si[I].style.width = grow[I];
si[I].style.height = grow[I];
}
grow[I] += rate[I];
Cstep[I] += Step[I];
if (grow[I] > 24) grow[I] = 25;
}
setTimeout('MouseBubbles()', 10);
}
MouseBubbles();
//   End -->
</script>

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀(guān)點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多