Marabit - 2013-06-14 00:05:35

Prosty skrypt na własnego, grasującego po ekranie Fuzzla.


1. Dodaj jąkąkolwiek stronę do przeglądarkowej listy ulubionych.

2. Wybierz na niej opcję Właściwości (ew. Edytuj).

3. Adres zastąp tym kodem:

Spoiler:

javascript:var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],sw=0,sh=0;function getWH(){sw=w.innerWidth||e.clientWidth||g.clientWidth;sh=w.innerHeight||e.clientHeight||g.clientHeight}var img=new Array("http://i.imgur.com/wnJnhIj.gif","http://i.imgur.com/wnJnhIj.gif");function pap(){this.x=100;this.y=-40;this.vx=0;this.vy=2;this.cpx=20;this.cpy=40;this.goinleft=null;this.dragx=0;this.dragy=0;this.isFalling=true;this.isDragging=false;var b=document.createElement("div");b.id="pap";b.style.left=this.x+"px";b.style.top=this.y+"px";b.style.position="absolute";b.style.width="50px";b.style.height="50px";b.style.transform="none";document.body.appendChild(b);this.div=b;this.go=function(){getWH();if(this.isDragging){}else if(this.isFalling){this.y+=this.vy;if(isReplyPos(this.x+this.cpx,this.y-window.pageYOffset+this.cpy)&&this.y-window.pageYOffset>0){this.vx=(Math.random()*2<1)?-1:1;this.isFalling=false}}else{this.x+=this.vx;if(this.x<0){this.x=0;this.vx=-this.vx}else if(this.x+84>=sw){this.x=sw-84;this.vx=-this.vx}if(isReplyPos(this.x+this.cpx,this.y-window.pageYOffset+this.cpy)==false){this.isFalling=true}if(Math.random()*500<1)this.vx=-this.vx}if(this.y+this.cpy-window.pageYOffset>sh){this.y=sh+window.pageYOffset-this.cpy}if(this.y-window.pageYOffset<-100)this.y=window.pageYOffset-100;if(this.y-window.pageYOffset<25)this.isFalling=true;this.updatePos();var a=(this.vx<0)?true:false;if(this.goinleft!=a){this.div.style.backgroundImage="url("+img[(this.vx<0)?1:0]+")";this.goinleft=a}};this.updatePos=function(){this.div.style.left=this.x+"px";this.div.style.top=this.y+"px"};this.div.onmousedown=function(e){document.onmousedown=function(){return false};pp.isDragging=true;pp.dragx=e.layerX;pp.dragy=e.layerY};document.onmouseup=function(e){pp.isDragging=false;document.onmousedown=null};document.onmousemove=function(e){if(pp.isDragging){pp.x=e.clientX-pp.dragx;pp.y=e.clientY-pp.dragy+window.pageYOffset;pp.updatePos()}}};var pp=new pap();function isReply(a){ce=a;if(ce==null)return true;while(ce!=null){if(ce.id)if(ce.id.indexOf("reply")!=-1)return true;if(ce.className=="thumb")return true;ce=ce.parentNode};return false};function isReplyPos(a,b){return isReply(document.elementFromPoint(a,b))};setInterval(function(){pp.go()},20);void(0);

Możesz też zmienić nazwę.

4. By aktywować wybierz stronę z listy ulubionych.

Hotele Wyspy Salomona transport kraków