한국어
<!--완전한 HTML 코드는 다음과 같습니다:--> <html> <head> <script 언어="JavaScript"> <!-- ns4 = (document.layers)? true:false ie4 = (document.all )? true:false function init() { if (ns4) block = document.blockDiv if (ie4) block = blockDiv.style block.xpos =parseInt(block.left) block.active = false } function Slide() { if (블록 .active) { block.xpos += 5 block.left = block.xpos setTimeout("slide()",30) } } //--> </script> </head> <body bgcolor="# FFFFFF" onLoad="init()"> <p>객체를 이동하려면 다음 링크를 클릭하거나 길게 누르세요. </p> <p><a href="javascript:void(null)" onMouseDown="block.active=true; Slide(); return false;" onMouseUp="block.active=false" onMouseOut="block. active=false">이동</a> </p> <div id="blockDiv" style="position:absolute; left:50px; height:30px; 30px 0px); 레이어 배경 색상:빨간색;"> </div> </body> </html>