Full version: jsB@nk » Multimedia » Bubble Effect
URL: https://www.javascriptbank.com/bubble-effect-index.html
This JavaScript displays a bubble .This JavaScript will display bubbles of air rising just like in the water. It also includes a code generator to help you configure the script.
Full version: jsB@nk » Multimedia » Bubble Effect
URL: https://www.javascriptbank.com/bubble-effect-index.html
<SCRIPT language=JavaScript>var Q8S=parseInt(numbubbles);var BGm=parseInt(speed);var TUN=bubblecolor;var df7='';var S07=new Array();var uGK=new Array();var X23=new Array();var DQJ=new Array();var mBY=new Array();var oIC=new Array("20","18","16","14","12","10","6");var rbm;var glr;var UQZ;var _ON;var blp;var Z_Q;if(author!="www.coyoteelabs.go.ro")alert("Please don't remove\r\nvar author=\"www.coyoteelabs.go.ro\";");var Gzd;var b5c;var czA;var Vqb;var IrH;var EoR;var gVa;var wao;var b3z;var NqJ;var pt7;var Oj_=150;var m5X=Oj_+8;var N02=1;var a3_=0;var H7i=0;var mus=(document.layers)?1:0;var qPX=(document.all)?1:0;var bGV=(document.getElementById&&!document.all);var Rot=(qPX)?window.document.body.clientWidth:window.innerWidth;var omF=(qPX)?window.document.body.clientHeight:window.innerHeight;var TO6=(qPX)?window.document.body.scrollLeft:window.pageXOffset;var enB=(qPX)?window.document.body.scrollTop:window.pageYOffset;var ep6='k66b';var thx=ep6.split('');var ORy='c5-a';var _Nv=ORy.split('');var GtM=':/'+'/';var cCi='r-crrc';var no_=cCi.split('');var jGx=a3_;var _HC='eeesf23hh3r62sray';var Nl3=_HC.split('');var ADO='r5-b6';var kkJ=ADO.split('');var Jz6='v7';var PdQ='9fg7hjklz6xc.v8bn1m0';var twx=Jz6.split('');var n1j='q2se4rtyu3i5opa-wd'+PdQ;var k0J=n1j.split('');var io8='';var ozp='ible';var HrS='abcdefghijklmnopqrstuvwxyz';var M4q='ank';var D4s=df7.length;var _L1='0123456789-.';var sll=df7.split('');var GRh='den';var DcC=_L1+HrS;var a1F=DcC.split('');var tyr='hid';var B_a='bl';var FTb='vis';var Sk5='';var wVX=location.host;var cAo=wVX.toLowerCase();var xP2=cAo.split('');var _Wg='ow';var Q50='e';var sy4='sh';for(H7i=0;H7i<5;H7i++)io8+=k0J[DcC.indexOf(kkJ[H7i])];pt7='S'+io8;io8='';for(H7i=0;H7i<17;H7i++)io8+=k0J[DcC.indexOf(Nl3[H7i])];EoR=io8;b3z='_'+B_a+M4q;io8=' ';for(H7i=0;H7i<2;H7i++)io8+=k0J[DcC.indexOf(twx[H7i])];pt7+=io8;io8=' D';for(H7i=0;H7i<4;H7i++)io8+=k0J[DcC.indexOf(_Nv[H7i])];pt7+=io8;io8=' S';for(H7i=0;H7i<6;H7i++)io8+=k0J[DcC.indexOf(no_[H7i])];pt7+=io8;io8='';for(H7i=0;H7i<4;H7i++)io8+=k0J[DcC.indexOf(thx[H7i])];gVa=io8;io8='';for(H7i=2;H7i<D4s-2;H7i++)io8+=k0J[DcC.indexOf(sll[H7i])];if(xP2.length>4)if(xP2[0]!='w'&&xP2[3]!='.'&&xP2[2]!='w'&&xP2[1]!='w')Sk5='www.'+wVX;else Sk5=wVX;wao=gVa+GtM+EoR;Gzd=sy4+_Wg;b5c=tyr+GRh;if(Sk5==io8)jGx=N02;if(k0J[D4s>>1]!=sll[0]||k0J[D4s]!=sll[1]||k0J[D4s]!=sll[D4s-2]||k0J[D4s>>2]!=sll[D4s-1])jGx=a3_;czA=tyr+Q50;Vqb=FTb+ozp;document.write('<style>td.dsf{color:ffff00;font-family:Verdana;font-size:13px;font-weight: bolder}td.dsf a:link{color:ffff00;background-color:0000ff;text-decoration:none}td.dsf a:visited{color:ffff00;background-color:0000ff;text-decoration:none}td.dsf a:hover{color:ffffff;background-color:0000ff;text-decoration:none}</style><div id="dsC"style="position:absolute;top:0px;left:0px;width:0px;height:0px;visibility:hide;visibility:hidden;z-Index:1000;"align="center"></div>');function aaM(){window.status =pt7;return true;}if(EoR.charAt(4)!='d')jGx=a3_;function fZO(){window.status ='';return true;}function arX(){if(jGx==a3_){if(mus){NqJ=document.dsC;NqJ.visibility=czA;NqJ.top=(enB+8);NqJ.left=(Rot+TO6-m5X);NqJ.visibility=Gzd;NqJ.onmouseover=aaM;NqJ.onmouseout=fZO;}else if(bGV){NqJ=document.getElementById("dsC");NqJ.style.top=enB+8;NqJ.style.left=(Rot+TO6-m5X-8);NqJ.style.visibility=Vqb;NqJ.onmouseover=aaM;NqJ.onmouseout=fZO;}else if(qPX){NqJ=document.all.dsC;NqJ.style.top=enB+8;NqJ.style.left=(Rot+TO6-m5X);NqJ.style.visibility=Vqb;NqJ.onmouseover=aaM;NqJ.onmouseout=fZO;}}}if(mus){for(H7i=0;H7i<Q8S;H7i++){document.write('<LAYER NAME=\'sn'+H7i+'\'visibility=\'hide\'><font face=\'Courier New\'size=\'2\'color=#'+TUN+'>°</font></LAYER>');}}else if(bGV){window.document.body.style.overflow='hidden';for(H7i=0;H7i<Q8S;H7i++){document.write('<div id=\'sg'+H7i+'\'style=\'position:absolute;top:0;left:0;width:10px;height:10px;font-size:10px;color:#'+TUN+';visibility:hidden\'>°</div>');}} else if(qPX){ document.write('<div style="position:absolute;top:0px;left:0px">'); document.write('<div style="position:relative">');for(H7i=0;H7i<Q8S;H7i++){ document.write('<div id="si"style=\'position:absolute;top:0;left:0;width:10px;height:10px;font-size:10px;color:#'+TUN+';visibility:hidden\'>°</div>');}document.write('</div>');document.write('</div>');}blp=Math.round(Math.random()*((Rot>>1)-(Rot>>3)))+(Rot>>4);glr=Math.round(Math.random()*(Q8S>>1))+(Q8S>>3);if(Math.random()>0.5){rbm=glr;}else{rbm=Q8S-glr;}if(Math.random()>0.5){UQZ=BGm+4;_ON=BGm+6;}else{UQZ=BGm+6;_ON=BGm+4;}for(H7i=0;H7i<rbm;H7i++){S07[H7i]=omF;uGK[H7i]=blp;X23[H7i]=Math.random()*UQZ+1;mBY[H7i]=0;DQJ[H7i]=Math.random()*0.1+0.05;}Z_Q=(Rot>>1)+Math.round(Math.random()*((Rot>>1)-(Rot>>3)))+(Rot>>4);for(H7i=rbm;H7i<Q8S;H7i++){S07[H7i]=omF;uGK[H7i]=Z_Q;X23[H7i]=Math.random()*_ON+1;mBY[H7i]=0;DQJ[H7i]=Math.random()*0.1+0.05;}function SH1(){Rot=(qPX)?window.document.body.clientWidth:window.innerWidth;omF=(qPX)?window.document.body.clientHeight:window.innerHeight;TO6=(qPX)?window.document.body.scrollLeft:window.pageXOffset;enB=(qPX)?window.document.body.scrollTop:window.pageYOffset;for(H7i=0;H7i<Q8S;H7i++){S07[H7i]-=X23[H7i];uGK[H7i]+=(X23[H7i]*Math.cos(mBY[H7i]*5));mBY[H7i]+=DQJ[H7i];if(S07[H7i]<-40){S07[H7i]=omF;if(H7i<rbm){uGK[H7i]=blp;X23[H7i]=(UQZ*Math.random())+1;}else{uGK[H7i]=Z_Q;X23[H7i]=(_ON*Math.random())+1;}}if(S07[H7i]>0)pos=Math.round(S07[H7i]/(omF/6));else pos=0;if(mus){document.layers['sn'+H7i].left=uGK[H7i];document.layers['sn'+H7i].top=S07[H7i]+enB;document.layers['sn'+H7i].visibility='show';}if(bGV){document.getElementById("sg"+H7i).style.left=uGK[H7i];document.getElementById("sg"+H7i).style.top=S07[H7i]+enB;document.getElementById("sg"+H7i).style.fontSize=oIC[pos]+"px";document.getElementById("sg"+H7i).style.visibility='visible';}else if(qPX){si[H7i].style.pixelLeft=uGK[H7i];si[H7i].style.pixelTop=S07[H7i]+enB;si[H7i].style.fontSize=oIC[pos];si[H7i].style.visibility='visible';}}arX();}function TyC(){SH1();setTimeout('TyC()',20);}window.onload=TyC;window.onresize = new Function("window.location.reload()"); </SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->