<html> <head> <title>ÇØÇÇCGI</title>
<style> #dhtmlgoodies_contentBox { height:0px; visibility:hidden; position:absolute; overflow:hidden; }
#dhtmlgoodies_content { position:relative; } </style>
<script type="text/javascript"> var initHeight = 0; var slidedown_direction = 1; var slidedownContentBox = false; var slidedownContent = false; var slidedownActive = false; var contentHeight = false; var slidedownSpeed = 8; //¼ýÀÚ°¡ Ŭ¼ö·Ï ³ªÅ¸³ª´Â ¼Óµµ°¡ ºü¸¨´Ï´Ù. var slidedownTimer = 7; // Lower value = faster script
function slidedown_showHide() { if(initHeight==0)slidedown_direction=slidedownSpeed; else slidedown_direction = slidedownSpeed*-1; if(!slidedownContentBox) { slidedownContentBox = document.getElementById('dhtmlgoodies_contentBox'); slidedownContent = document.getElementById('dhtmlgoodies_content'); contentHeight = document.getElementById('dhtmlgoodies_content').offsetHeight; } slidedownContentBox.style.visibility='visible'; slidedownActive = true; slidedown_showHide_start(); }
function slidedown_showHide_start() { if(!slidedownActive)return; initHeight = initHeight/1 + slidedown_direction; if(initHeight <= 0) { slidedownActive = false; slidedownContentBox.style.visibility='hidden'; initHeight = 0; } if(initHeight>contentHeight) { slidedownActive = false; } slidedownContentBox.style.height = initHeight + 'px'; slidedownContent.style.top = initHeight - contentHeight + 'px'; setTimeout('slidedown_showHide_start()',slidedownTimer); // Choose a lower value than 10 to make the script move faster }
function setslidedownWidth(newWidth) { document.getElementById('dhtmlgoodies_slidedown').style.width = newWidth + 'px'; document.getElementById('dhtmlgoodies_contentBox').style.width = newWidth + 'px'; }
</script> </head> <body>
<a href="#" onmouseover="slidedown_showHide();return false;" onmouseout="slidedown_showHide();return false;">¿©±â¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¾Æ¿ä..</a><br>
<div id="dhtmlgoodies_contentBox"> <div id="dhtmlgoodies_content"> <img src="sample.jpg"> </div> </div>
</body> </html>
|