사이트 내 전체검색
스크롤 매뉴
로빈아빠
https://cmd.kr/javascript/145 URL이 복사되었습니다.

본문

<?
<html>
<head>
<title>[test]</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">


</head>

<body  style="background-attachment: fixed"  onLoad="Init();loadClickMe();" onUnload="saveClickMe();">
<div id=divMenu style="display:block; position:absolute; width:25; right:0; top:7px; left: 10px;">
</td>
<a href="/"><img src="../../../Apache/htdocs/bo/img/home.gif" width="28" height="28" border="0"></a></div>

 



  <p>
    <script language=javascript>
  // Firefox에서 지원되는 ,,
function Init() {
// 스크롤
ScrollMenu();
}

function ScrollMenu(){

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

var menuFrom, menuTo, timerCheck, offset;
var iMenu;

if ( bNetscape4plus ) {
iMenu = document.getElementById("divMenu");
}
else if ( bExplorer4plus ) {
iMenu = divMenu;
}

menuFrom = parseInt (iMenu.style.top, 10);
menuTo = document.body.scrollTop + 236;

timerCheck = 500;

if ( menuFrom != menuTo ) {
offset = Math.ceil( Math.abs( menuTo - menuFrom ) / 10 );
if ( menuTo < menuFrom )
offset = -offset;

iMenu.style.top = parseInt (iMenu.style.top, 10) + offset;

timerCheck = 10;
}

setTimeout ("ScrollMenu()", timerCheck);
}
    </script>
 
</body>
</html>
?>

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=jt&wr_id=88

댓글목록

등록된 댓글이 없습니다.

831 (16/17P)

Search

Copyright © Cmd 명령어 18.219.231.197