Author: KIZIL BULUT Language: javascript
Description: Not specified Timestamp: 2018-01-20 23:14:14 +0000
View raw paste Reply
  1. (function(){var w=this;var k="starField";var o=50;var g=2000;var e=0.0001;var b=2.5;var z=g*(e/100);var v=g-z;var f=v*(b/100);var a=(g)/z;var x,B;var t,r,s,l,n;var j,i;if((document.layers)&&(this.Layer)){B=['<layer id="stars',"",'" left="0" top="0" width="1" height="1"',' bgColor="#00FF00"></layer>']}else{B=['<div id="stars',"",'" style="position:absolute;width:1px;overflow:',"hidden;height:1px;background-color:#00FF00;",'font-size:1px"></div>']}function C(c){if((document.compatMode)&&(document.compatMode.indexOf("CSS")!=-1)&&(document.documentElement)){return document.documentElement}else{if(document.body){return document.body}else{return c}}}function u(){var O=this;var E={scrollLeft:NaN,scrollTop:NaN};var c={clientWidth:NaN,clientHeight:NaN};var Q={innerWidth:NaN,innerHeight:NaN};var U="scrollLeft";var T="scrollTop";function G(){return Q.innerWidth}function J(){return c.clientWidth|0}function S(){return Q.innerHeight}function d(){return c.clientHeight|0}function K(){return P(S(),d())}function M(){return P(G(),J())}function I(){L.getWidth=G;L.getHeight=S}function P(W,V){if(V>W){I();return W}else{return V}}var L={getScrollX:function(){return E[U]|0},getScrollY:function(){return E[T]|0},getWidth:J,getHeight:d};function H(){return L}function N(V){var X,W;if(V&&(typeof V.clientWidth=="number")&&(typeof V.clientHeight=="number")){if(((X=O.innerHeight-V.clientHeight)>=0)&&((dh=O.innerWidth-V.clientWidth)>=0)){if(dh==X){return 0}else{if((dh&&!X)||(X&&!dh)){return(dh+X)}}}}return NaN}if((typeof O.innerHeight=="number")&&(typeof O.innerWidth=="number")){Q=O;var D=N(document.body);var F=N(document.documentElement);var R=null;if(!isNaN(D)){if(!isNaN(F)){if(D<F){R=document.body}else{if(D>F){R=document.documentElement}else{R=C(document.body)}}}else{R=document.body}}else{if(!isNaN(F)){R=document.documentElement}}if(R){c=R;L.getWidth=M;L.getHeight=K}else{I()}}else{c=C(c)}if((typeof O.pageYOffset=="number")&&(typeof O.pageXOffset=="number")){E=O;T="pageYOffset";U="pageXOffset"}else{E=C(E)}return(u=H)()}var q=u();function p(){i=(((l=(q.getHeight()>>1))-16)*a);j=(((n=(q.getWidth()>>1))-16)*a);r=l+q.getScrollY();s=n+q.getScrollX()}function h(d){var c=null;if(document.getElementById){c=document.getElementById(d)}else{if(document.all){c=document.all[d]}else{if(document.layers){c=document.layers[d]}}}return((typeof c!="undefined")&&(typeof c.style!="undefined"))?c.style:c}function m(P,G,d){var Q,U;var S,N=h("stars"+P);var H,I,F,L,K,J,R,E,O,M,c,T;(U=function(){O=Math.random()<0.5?+1:-1;M=Math.random()<0.5?+1:-1;H=((Math.random()*Math.random()*i)+l);I=((Math.random()*Math.random()*j)+n);c=(I+a);F=0})();F=Math.random()*v*0.8;function D(){T=I*(L=z/(g-F));R=((E=((c*L)-T)|0)>>1);J=(H*L);K=(T)}if(N){if(!t){t=(typeof N.top=="string")?"px":0}S=((typeof N.clip!="undefined")&&(typeof N.clip!="string"))?N.clip:N;this.position=function(){D();if(((F+=f)>=v)||((J+R)>l)||((K+R)>n)){U();D();R=0}N.top=((r+(M*J)-R)|0)+t;N.left=((s+(O*K)-R)|0)+t;S.width=(S.height=E+t);Q.position()}}else{this.position=function(){return}}if(++P<o){Q=new m(P,G)}else{Q=G}}function y(){if(!h("stars"+(o-1))){setTimeout(starField,200)}else{p();x=new m(0,y);y.act()}}y.position=function(){return};y.act=function(){p();x.position();setTimeout(y.act,50)};y.act.toString=function(){return k+".act()"};y.toString=function(){while(w[k]){k+=k}w[k]=this;return k+"()"};for(var A=o;A--;){B[1]=A;document.write(B.join(""))}setTimeout(y,200)})();
View raw paste Reply