2008년 1월 21일 월요일

[스크립트] 사이즈 조절 가능한 레이어

[스크립트] 사이즈 조절 가능한 레이어
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Layer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="movelayer.js"></script>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
//<![CDATA[

window.onload = function(evt) {

 var movelayer = new moveLayer("layer", 'title');
}

//]]>
</script>
</head>
<body>
 
 <div id="layer" style="position:absolute; width:300px; height:400px;background-color: #eee">

  <div id="title" style="margin-left:0;margin-right:0; height:40px;background-color: #ff0">
   짤방!!(이곳을 드래그하면 레이어가 움직여요!)
  </div>
  
  <div><img id="23" src="123.jpg" style="z-index:1" /><div>
 </div>

</body>
</html>
[/code]





[출처. phpschool]