퀵메뉴(중앙정렬틀에서 오른쪽) 파이어폭스에서의 동작??? 정보
퀵메뉴(중앙정렬틀에서 오른쪽) 파이어폭스에서의 동작???본문
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
선언시에
파이어폭스에서는 스크립트 동작없이 고정이되어있습니다.
위 부분 생략하고
그냥
<html>~로 나가면 동작합니다.
좋은 방법없을까요?
꼭 이방법이 아니더라도
오른쪽 퀵메뉴(중앙정렬 홈페이지에서...)
소스정보 있음 알려주세요
부탁드립니다.
============================================
<!--퀵메뉴시작 -->
<div id="q_menuArea">
<div id="floater" style="top: 150px; left: 0px; position: relative; z-index:1;">
<div style="border:1px dotted blue">
메뉴1<br />
메뉴2<br />
메뉴3
</div>
</div>
<script language="javascript" type="text/javascript">
//기본 세팅 부분
var Ly = document.getElementById("floater"); //따라댕길 레이어
var fixX = 0; //레이어 가로 위치 (위 div 의 style 에서 left 와 값을 같게...)
var fixY = 150; //레이어 세로 위치 (위 div 의 style 에서 top 과 값을 같게...)
var scrollDelay = 10; // y축 스크롤 바가 움직인후 0.01초후에 작동합니다.
var movingSpeed = 40; // 1/40 의 속도로 움직입니다.
function scrollLayer(){
var movingDistc;
var destY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) + fixY;
var LyTop = parseInt(Ly.style.top);
if(destY > LyTop) {
movingDistc = ((destY - LyTop + fixY)/movingSpeed);
} else {
movingDistc = ((destY - LyTop)/movingSpeed);
}
Ly.style.top = LyTop + movingDistc ;
Ly.style.left = fixX;
setTimeout("scrollLayer()",scrollDelay);
}
scrollLayer(); //함수 호출
</script>
</div>
<!--퀵메뉴끝 -->
=================================================
댓글 전체
02.<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
03.<head>
04.<meta http-equiv="content-type" content="text/html; charset=ecu-kr" />
05.<title>보짱넷::vozzang.net</title>
06.<script type="text/javascript">
07.//----------------------------------------------
08.//Floating v1.1 Source By Bermann
09.//http://www.vozzang.net/431 ]