한국어
배경음악이 좋으면 그 효과는 더욱 충격적일 것입니다
<!-- website:http://www.downcodes.com --> <!-- bbs:http://bbs.downcodes.com --> <!- - 전체 HTML 코드는 다음과 같습니다. --> <HTML> <HEAD> <title>그림 공포 효과 표시(웹사이트 구축 아카데미)</title> <meta name="Author" content="http:// www.downcodes.com" > <meta http-equiv="imagetoolbar" content="no"> <STYLE> BODY { 커서:url("../CRCROSS.cur"); } </STYLE> </HEAD> <BODY bgColor=#000000 scroll=no onload="zyva()"> <DIV id=load style="font-family:courier;font-size:11pt;color:#FFFFFF">로드 중... 잠시 기다려 주십시오. ..</DIV> <DIV id=images style="display:none"> <IMG src=""> </DIV> <!-- DAControl 레이아웃 --> <OBJECT id=DAControl style="position:absolute ;Z-INDEX: - 1; 너비=표현(document.body.offsetWidth);높이=표현(document.body.offsetHeight*.66);왼쪽=0;top=표현((document.body.offsetHeight-(문서 .body.offsetHeight*.66))/2)" classid=CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D> <PARAM NAME="OpaqueForHitDetect" VALUE="0"> <PARAM NAME="UpdateInterval" VALUE=" 0.030"> </OBJECT > <!-- muzzik --> <BGSOUND 밸런스=0 src="dgate014.mid" 볼륨=0 루프=무한> <SCRIPT> // =========== ====== ===================================== //http://www .downcodes.com // ============================================ ====== ==== var xm=ym=0 var m, PerCam 함수 programDA(){ m = DAControl.MeterLibrary // 정사각형 기하학(삼각형 2개) square=m.TriMesh(2, new Array(1) ,0,-1, -1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,1), 새로운 배열(0,1,0 ,0,1,0 ,0,1,0,0,1,0,0,1,0,0,1,0), 새로운 배열(1,1,0,1,0,0,1,1 ,0,0,1 ,0), null) square = square.Transform(m.Scale3Uniform(0.05)) // 조명 geo = m.AmbientLight.LightColor(m.colorRgb255(255,255,255)) // 면 위치 addFace(0 , m.xVector3,Math .PI/2, m.zVector3,Math.PI/2, 0.05,0,0) addFace(0, m.zVector3,0, m.zVector3,0 , 0,-0.05,0) addFace(0, m.yVector3,-Math.PI, m.xVector3,-Math.PI, 0,0.05,0) addFace(0, m.xVector3,Math.PI/2, m.zVector3,-Math.PI /2, -0.05, 0,0) addFace(0, m.zVector3,0, m.xVector3,Math.PI/2, 0,0,-0.05) addFace(0, m.zVector3,Math.PI, m .xVector3,-Math.PI/2, 0,0,0.05) // 회전 geo = geo.Transform(m.Rotate3Rate(m.xVector3, 0.5)).Transform(m.Rotate3Rate(m.yVector3, 0.1)) .Transform(m.Rotate3Rate (m.zVector3, 0.1)) // 카메라 PerCam = m.ModifyingBehavior(m.PerspectiveCamera(0.05,0.04)) // 렌더링 DAControl.Image = geo.render(PerCam) } function addFace(i , v1,r1, v2 ,r2, tx,ty,tz){ // 이미지 가져오기 htmlTexture = m.ImportImage(images.children[i].src).MapToUnitSquare() img = square.TextureImage(htmlTexture) // 방향 얼굴 지리 = m.UnionGeometry (geo,img.Transform(m.Rotate3(v2,r2)).Transform(m.Translate3(tx,ty,tz)).Transform(m.Rotate3(v1,r1))) } document.onmousemove = function( ){ // 마우스 이동 xm = window.event.x ym = Math.abs(window.event.y - (document.body.offsetHeight*.5)) } function Om(){ // --- 초점 길이 변경 p=0.005+ym/5000 PerCam.SwitchTo(m.PerspectiveCamera(p,p-0.001).Transform(m.Translate3(0,0,-p/4)).Transform(m.Rotate3 (m.yVector3,xm /100))) } // --- 시작 ------ function zyva(){ programDA() DAControl.Start() load.style.visibility="hidden" setInterval("Om ()",16) } // --------- </SCRIPT> </BODY></HTML>