 |
|
|
 | |  | |
|
|
½½¶óÀ̵ù °øÁö»çÇ× ·¹À̾î |
|
|
°ü¸®ÀÚ
|
05-01-13 16:46
|
|
|
| |
|
|
|
<html>
<head>
<title> </title>
<meta name="author" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<style type="text/css">
A:link {color: blue; text-decoration: none}
A:visited {color: black; text-decoration: none}
A:active {text-decoration: none;color:black; font-weight:none }
A:hover {text-decoration: none;color:red; font-weight:none;cursor=hand;}
#outline1{
width: 300px; /*¿Ü°û ·¹À̾îÀÇ ³Êºñ */
height: 100px; /*¿Ü°û ·¹À̾îÀÇ ³ôÀÌ*/
position:absolute;
z-index: 10;
overflow:hidden;
visibility: hidden;
}
#outline2{
width: 280px; /*¾ÈÂÊ ·¹À̾îÀÇ ³Êºñ(À§ ·¹ÀÌ¾î ³Êºñº¸´Ù ÀÛ°Ô Çϼ¼¿ä) */
height: 80px; /*¾ÈÂÊ ·¹À̾îÀÇ ³ôÀÌ(À§ ·¹ÀÌ¾î ³ôÀ̺¸´Ù ÀÛ°Ô Çϼ¼¿ä) */
border: 2px solid gray; /*¾ÈÂÊ·¹À̾îÀÇ Å׵θ® ÇüÅÂ¿Í »ö»ó*/
background-color: #E7EFF7; /*°øÁö»çÇ× ¹è°æ»ö*/
padding: 5px; /*°øÁö»çÇ× ¿©¹é*/
position:absolute;
left: 0;
top: 0;
}
</style>
<script type="text/javascript">
var slidingleft=0 //ȸé¿ÞÂÊÀ¸·Î ºÎÅÍÀÇ À§Ä¡ ¼³Á¤°¡´É
var slidingtop=0 //ȸé À§ÂÊÀ¸·Î ºÎÅÍÀÇ À§Ä¡ ¼³Á¤°¡´É
var dropspeed=10 //³»·Á¿À´Â ¼Óµµ (°ªÀÌ Å¬¼ö·Ï ºü¸¨´Ï´Ù.)
//¾Æ·¡ displaymode °ªÀÌ always ÀÏ °æ¿ì, ÆäÀÌÁö ·Îµù½Ã ¸¶´Ù Ç¥½ÃµÇ°í
//¾Æ·¡ displaymode °ªÀÌ onlyOne ÀÏ °æ¿ì, ºê¶ó¿ìÀú¸¦ »õ·Î ¶ç¿ï¶§¸¸ Ç¥½Ã
var displaymode="always";
if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
var ie=document.all
var dom=document.getElementById
function initboxv2(){
if (!dom&&!ie)
return
crossboxcover=(dom)?document.getElementById("outline1") : document.all.outline1
crossbox=(dom)?document.getElementById("outline2"): document.all.outline2
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossbox.height=crossbox.offsetHeight
crossboxcover.style.height=parseInt(crossbox.height)+"px"
crossbox.style.top=crossbox.height*(-1)+"px"
crossboxcover.style.left=slidingleft+"px"
crossboxcover.style.top=slidingtop+"px"
crossboxcover.style.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropinv2()",50)
}
function dropinv2(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossbox.style.top)<0){
crossboxcover.style.top=scroll_top+slidingtop+"px"
crossbox.style.top=parseInt(crossbox.style.top)+dropspeed+"px"
}
else{
clearInterval(dropstart)
crossbox.style.top=0
}
}
function fadeDownLayer(){
if (window.dropstart) clearInterval(dropstart)
crossboxcover.style.visibility="hidden"
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
if (displaymode=="onlyOne" && get_cookie("droppedinv2")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initboxv2, false)
else if (window.attachEvent)
window.attachEvent("onload", initboxv2)
else if (document.getElementById || document.all)
window.onload=initboxv2
if (displaymode=="onlyOne")
document.cookie="droppedinv2=yes"
}
//-->
</script>
</head>
<body>
<div id="outline1">
<div id="outline2">
<table align=center>
<tr><td align=center>¾È³çÇϼ¼¿ä</td></tr>
<tr><td align=center><a href="#" onClick="fadeDownLayer();return false">´Ý±â</a></td></tr>
</table>
</div>
</div>
</body>
</html>
|
|
 |
| | |  | |  |
|
|
|
|
|
|