<html>
<head>
<title>책갈피</title>
<style type='text/css'>
A:link {color="#5F7BB3"; text-decoration:none;}
A:visited {color="#5C5C5C"; text-decoration:none;}
A:active {color="#5F7BB3"; text-decoration:none;}
A:hover {color="#5F7BB3"; text-decoration:none;}
</style>
<script language="javascript">
<!--
function load() {
var div = eval("document.all._top");
if (navigator.appName.charAt(0) == "M") {
div.style.display = '';
div.style.pixelLeft = document.body.scrollWidth - 30;
div.style.pixelTop = 555;
action = window.setInterval("heartBeat()",1);
}
}
function remoteMenu() {
// if (navigator.appName.charAt(0) != "M") return
// var div = eval("document.all._top");
// var posY = 480;
// div.style.pixelTop = posY + document.body.scrollTop;
}
self.onError = null;
lastScrollX = 0;
lastScrollY = 0;
function heartBeat() {
diffY = document.body.scrollTop;
diffX = document.body.scrollLeft;
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
document.all._top.style.pixelTop += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
document.all._top.style.pixelLeft += percent;
lastScrollX = lastScrollX + percent;
}
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" leftmargin="15" topmargin="0" marginwidth="0" onLoad="load()" style="overflow-x:hidden">
<a name="top"></a>
- 과일 -
<br><br>
<a href="#1">1.사과</a> <br>
<a href="#2">2.바나나</a> <br>
<a href="#3">3.레몬</a> <br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<a name="#1">1.사과</a> <br>
사과는........
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<a name="#2">2.바나나</a> <br>
바나나는........
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<a name="#3">3.레몬</a> <br>
레몬은........
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<div id="_top" style="display:none;position:absolute;border:1px solid black;z-index:10;">
<a href="#top">Top</a>
</div>
</body>
</html>
'JavaScript' 카테고리의 다른 글
[JavaScript] frame설정 (0) | 2011.07.29 |
---|---|
[JavaScript] JavaScript 클래스 정리 (0) | 2011.07.01 |
[JavaScript][dhtml] 반복문 문자열 처리 방법 (0) | 2011.06.09 |
[JavaScript] [css] style display : none vs visibility : hidden (0) | 2011.06.09 |
[JavaScript] event 적용 setAttribute (0) | 2011.06.02 |