레이어/롤오버
[List][Prev][Next]
스크롤되는 레이어 중간에 멈추는것 [ Preview ]

의외로 찿는사람이 많은것 같아 이곳에 올려놓읍니다

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</script>
</head>
<body bgcolor="#FFFFFF" topmargin="0" marginheight="0">

<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="769" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=10></td>
</tr>
</table>
</td>
</tr>
</table>
<div id=end>
<p id="end"> </div>

<div id="ss" style="background-color:rgb(204,204,204); width:160px; height:518px; position:absolute; left:790px; top:111px; z-index:4; layer-background-color:rgb(204,204,204); ">
<table width="160" border="0" cellspacing="1" cellpadding="0" height="500">
<tr align="center" valign="top">
<td> </td>
</tr>
</table>
</div><script language=javascript>
<!--
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}

var isNS = navigator.appName == "Netscape";

function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

if (isNS4) {
yMenuFrom = ss.top;
yMenuTo = windows.pageYOffset + 111;
} else if (isDOM) {
yMenuFrom = parseInt (ss.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 111;

if(end.offsetTop-ss.style.posHeight<=yMenuFrom){
if(yMenuFrom<=111){
yMenuTo=111;
}
else if(yMenuFrom>yMenuTo){
}
else{
yMenuTo=end.offsetTop-ss.style.posHeight;
}
}
}
timeoutNextCheck = 30;

if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
ss.top += yOffset;
else if (isDOM)
ss.style.top = parseInt (ss.style.top, 10) + yOffset;
timeoutNextCheck = 5;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}

if (isNS4) {
var ss = document["ss"];
ss.top = top.pageYOffset + 111;
ss.visibility = "visible";
moveRightEdge();
} else if (isDOM) {
var end = getRef('end');

var ss = getRef('ss');
ss.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 111;
ss.style.visibility = "visible";
moveRightEdge();
}
//-->
</script></body>
</html><script>window.focus()</script>
<%//# DataBinder.Eval(Container.DataItem, "album_title") %>
<%//# DataBinder.Eval(Container.DataItem, "contenttype") + " views" %>
link list for hairwigbeautyshop.com ::
Javascript Source List :