레이어 위치지정 소스



레이어를 자유롭게 위치 변경이 가능한 소스입니다.

그냥 보시면 잘 모를테니..

나모에디터에서 보세요



<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>컴질스토리 :: 레이어 위치지정 소스</title>
<meta name="generator" content="Namo WebEditor v5.0">

<!--레이어 시작-->
<script language="JavaScript1.2">
<!--
 
var x =0
var y=0
drag = 0
move = 0
window.document. = mouseUp
window.document.허용되지않은 태그 사용중 = mouseStop
window.document.onmousemove = mouseMove
window.document. = mouseDown

function mouseMove() {
if (move) {
dragObj.style.left = window.event.x - clickleft
dragObj.style.top = window.event.y - clicktop
}
}
function mouseUp() {
move = 0
}
function mouseDown() {
if (drag) {
clickleft = window.event.x - parseInt(dragObj.style.left)
clicktop = window.event.y - parseInt(dragObj.style.top)
dragObj.style.zIndex += 1
move = 1
}
}

function mouseStop() {
window.event.returnValue = false
}
function View(ID) {
ID.filters.blendTrans.apply(); 
ID.style.visibility = "visible"; 
ID.filters.blendTrans.play(); 
}
function Close(ID) {
ID.filters.blendTrans.apply();
ID.style.visibility = "hidden";
ID.filters.blendTrans.play(); 

//-->
</script>
<!--레이어 끝-->


<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
                        <div id="Layer1" style="border-width:0px; border-style:none; width:403px; height:285px; position:absolute; left:880px; top:41px; z-index:5; filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);" ="dragObj=Layer1; drag=1;move=0" ="drag=0">
                            <table border="0" cellpadding="1" cellspacing="0" width="400" height="285">
                    <!--DWLayoutTable-->
                                <tr>
                                    <td  width="103" height="250" colspan="4">
                                        <p>
<iframe src="http://contents.linkprice.com/newsen_ad.htm?affiliate_id=A100207781&merchant_id=linkprice&xsl=http%3A%2F%2Fminishop.linkprice.com%2Fclink%2Fstyle_table2.xsl&link_id=0021&sm_id=newsen&bold_yn=1&cnt=&rotate=Y&scrolling=no&frameborder=0&width=400&height=200&ad=Y&target=_blank" width=400 height=285 scrolling=no frameborder=0  marginwidth=0 marginheight=0 framespacing=0></iframe></p>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="15">&nbsp;</td>
                                    <td height="15">&nbsp;</td>
                                    <td align="right" valign="top" style="padding:2" height="15">
                                        <div align="right"><a href="javascript:void(Close(Layer1))"><font color="#0066FF">ⓧclose</font></a><font color="#0066FF"><br>
                    </font>                      </div>
                                    </td>
                                    <td height="15"><font color="#0066FF">&nbsp;</font></td>
                                </tr>
                            </table>
                        </div>
</body>

</html>