Русский
Обратите внимание на замену требуемых в коде картинок на изображения пузырьков, сделанные вами для лучшего эффекта
<!-- http://js.downcodes.com/ --> <!-- http://bbs.downcodes .com/- -> <!-- Скопируйте следующий код на свою веб-страницу <body></body>... --> <body> <SCRIPT Language=JavaScript> function MM_reloadPage(init) { if (init= = true) с (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage }} else if ( InternalWidth!=document.MM_pgW || InternalHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_findObj(n, d) { var p,i,x; ; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0, p) );} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms [ i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById ) x=document.getElementById(n); return x; } function MM_showHideLayers() { var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+ =3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v== ' show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } function MM_checkPlugin(plgIn, theURL, altURL, autoGo) {var ok=false document. MM_returnValue = false; с (навигатор) if (appName.indexOf('Microsoft')==-1 || (плагины && плагины.длина)) { ok=(плагины && плагины[plgIn] } else if (appVersion . indexOf('3.1')==-1) { if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash; else if (plgIn.indexOf("Директор" )!=-1 && window.MM_dir!=null) ok=window.MM_dir; else ok=autoGo; } if (!ok) theURL=altURL; if (theURL) window.location=theURL } </SCRIPT> < SCRIPT Language=JavaScript> var url = "#" var no = 10; var Snow = new Array(); снег [0] = "pao_006699.gif" снег [2] = «pao_99ccff.gif» Snow[3] = «pao_3366ff.gif» var ns4up = (document.layers) ? 1: 0; var ie4up = (document.all) 1 : 0 var ns6up = (документ .getElementById&&!document.all) ? 1: 0; var dx, xp, yp; var am, stx, var i, doc_width = 100, doc_height = 1800; if (ns4up||ns6up) { doc_width = 100; = self.innerHeight; } else if (ie4up) { doc_width = 100; doc_height = document.body.clientHeight; } dx = new Array(); yp = new Array(); (); stx = новый массив (); sty = новый массив (); j = 0; я <нет; ++ я) {dx[i] = 0; xp[i] = Math. случайное()*50; yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; stx[i] = 0,02 + Math.random()/10; ] = 0,7 + Math.random(); tag=j+1; if (ns4up) { document.write("<layer name="dot"+ i +"" left="15" top= "15" Visibility="show" z-index=""+ i + "">" + "<a href=http://www.downcodes.com target="_blank" onMouseOver = "MM_showHideLayers('tag" +i +"','','show')" onMouseOut="MM_showHideLayers('tag" + i + "','','hide')">" + " <img src=""+ Snow[j] + "" border="0"></a>" + "</layer></layer>"); } else if (ie4up|| ns6up ) { document.write( "<div id="dot"+ i +"" style="ПОЛОЖЕНИЕ: абсолютное; Z-ИНДЕКС: "+ i +"ВИДИМОСТЬ: видимый; ВЕРХУ: 15 пикселей; СЛЕВА: 15 пикселей ; width:1;">" + "<a href=http://www.downcodes.com target="_blank" onMouseOver="MM_showHideLayers('tag" +i +"','',' show ')" onMouseOut="MM_showHideLayers('tag" + i + "','','hide')">" + "<img src="" + Snow[j] + "" border = "0"></a>" + "</div></div>"); } if (j == (snow.length-1)) { j = 0; } else { j += 1 ; } } function SnowNS() { for (i = 0; i < no; ++ i) { yp[i] -= sty[i]; if (yp[i] < -50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = doc_height; stx[i] = 0,02 + Math.random()/10; sty[i] = 0,7 + Math.random ( ); doc_width = 100; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot" +); i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", скорость } function SnowIE_NS6() { for (i = 0; i). < нет; ++ i) { yp[i] -= sty[i]; if (yp[i] < -50) { xp[i] = Math.random()*(doc_width-am[i]- 30 ); yp[i] = doc_height; stx[i] = 0,02 + Math.random()/10; sty[i] = 0,7 + Math.random(); doc_width = ns6up?100:100; doc_height = ns6up? .innerHeight-5:document.body.clientHeight; } dx[i] += stx[i]; if (ie4up){ document.all["dot"+i].style.pixelTop = yp[i]; all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i] } else if (ns6up){ document.getElementById("dot"+i ) .style.top=yp[i]; document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]); } setTimeout( " SnowIE_NS6()", скорость); } if (ns4up) { SnowNS(); } else if (ie4up||ns6up) { SnowIE_NS6(); } </SCRIPT>