한국어
<!-- 웹사이트:http://www.downcodes.com --> <!-- bbs:http://bbs.downcodes.com --> <!-- 전체 HTML 코드는 다음과 같습니다 --> <html > <head> <title>웹페이지에서 실제 우주 효과 시연 [웹페이지 특수 효과]</title> <meta name="Author" content="http://www.downcodes.com"> < 메타 http-equiv ="imagetoolbar" content="no"> <style type="text/css"> body {cursor:crosshair;margin:0; position:absolute:hidden; ; 왼쪽:0 ; 위쪽:0; 너비:100%; 높이:100%;} img {위치:절대;왼쪽:-1000;} .borderTop {위치:절대;왼쪽:0;상단:0;폭:100 %;높이: 10%;배경:#333;z-색인:1;} .borderBottom {위치:절대;왼쪽:0;위:90%;너비:100%;높이:10%;배경:#333; z-index: 1;} </style> <script type="text/javascript"><!-- // ======================= ==== ================================= // http://www.downcodes.com // = ==== ============================================= ==== ==== window.onerror = new Function("return true") G1D = new Object(); o = xm = ym = M = sx = sy = sz = 0; r(v, x){ if (v>x) v-=x; else if (v<0) v+=x; return v } document.onmousemove = function(e){ if (window.event) e = window.event; xm = (ex || e.clientX); ym = (ey || e.clientY); } function resize() { nx = document.body.offsetWidth; offsetHeight; } onresize = 크기 조정; G1D.creaTe = function(img,w,h,Z){ this.O = document.createElement("img") this.O.src = img.src(this) .O); this.Z = Z; this.h = h; this.x2D = 0; Math.round(Math.random() * 100) ; this.y3D = Math.round(Math.random() * 100); this.z3D = Math.round(Math.random() * 100) } G1D.creaTe.prototype.aNim = function(sx,sy, sz) { with (this){ with(O.style){ wp = 8+(w * (100 - z3D)) * Z hp = 8+(h * (100 - z3D)) * lp = x2D; - (wp * .5); tp = y2D - (hp * .5); if(lp>-wp && lp<nx && tp>-hp && tp<ny){ width = wp height = lp; 상단 = tp; zIndex = Math.round(-z3D + wp); } else left = -1000 } x3D=r(x3D += sx,100); z3D=r(z3D += sz,100); x2D=(nx * .5) + (((x3D - 50) * nx) / z3D) =(ny * .5) + (((y3D - 50) ) * ny) / z3D); } } G1D.obZ = function(N,img,Z) { this.N = N; this.o = new Array(); w = img.width; h = img.height; for(i=0;i<N;i++) this.o[i] = new G1D.creaTe(img,w,h,Z) } G1D.obZ.prototype.ouiiiin = 함수( ){ 이.k += .1; sz = Math.sin(this.k * .1); if(M>0){ sx = ((nx * .5) - xm) / (nx * .25) ; sy = ( (ny * .5) - ym) / (ny * .25); } else { sx += Math.cos(this.k / 4) * .01; k / 8) * .01; } for(i=0;i<this.N;i++)this.o[i].aNim(sx,sy,sz) } function mainloop(){ M--; .ouiiiin() ; setTimeout("mainloop();",16); onload = function(){ SF = document.getElementById("starfield"); xm = nx/2; ; o = new G1D.obZ(100,document.getElementById("planet"),.015); mainloop() } //--> </script> </head> <body> <div class="borderTop "></ div> <div class="borderBottom"></div> <div id="starfield" style="position:absolute;left:0;top:0;z-index:2;"></ div> <img id=planet src=""> </body> </html>