링크 오류입니다.

아래 첨부화일인 js.js 파일을 이용하여 우측에 움직이는 배너를 달았놓았습니다.
그런데 현재 head파일에 링크주소를에 해당 문서를 다운로드 받도록 예)xxx.hwp
이렇게 걸어 놓았는데 해당 메뉴를 클릭하면 아래 상태바에 에러가 나네요.
메뉴는 나모웹이디터로 롤오브를 했는데...
대략 var top = document.preloadlist.length;  라인이 에러가 납니다.
tail.php 에 js 관련.... 에...  document. 이름이 충돌하는듯 합니다만...
조언을 부탁드립니다.

첨부파일

js.js (1.1 KB) 1회 2007-02-22 14:50
tail.php (2 KB) 1회 2007-02-22 14:50
|

댓글 3개

js.js를 바꾸어 보세요...

var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function JSFX_FloatDiv(id, sx, sy)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
var px = document.layers ? "" : "px";
window[id + "_obj"] = el;
if(d.layers)el.style=el;
el.cx = el.sx = sx;el.cy = el.sy = sy;
el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

el.floatIt=function()
{
var pX, pY;
pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
document.documentElement && document.documentElement.clientWidth ?
document.documentElement.clientWidth : document.body.clientWidth;
pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
document.documentElement.scrollTop : document.body.scrollTop;
if(this.sy<0)
pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
document.documentElement.clientHeight : document.body.clientHeight;
this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
this.sP(this.cx, this.cy);
setTimeout(this.id + "_obj.floatIt()", 40);
}
return el;
}
위소스가 충돌나는것은 알고 있습니다.구체적으로 js.js를 어떻게 바꿔야할지요.
위에 오려드린 부분은 첨부화일을 약간(?) 손본 것입니다...

적용을 한 번 해 보시고 에러 발생시 댓글 주세요...
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 1,523
18년 전 조회 1,564
18년 전 조회 1,676
18년 전 조회 1,507
18년 전 조회 1,428
18년 전 조회 1,518
18년 전 조회 1,523
18년 전 조회 1,544
18년 전 조회 1,793
18년 전 조회 1,517
18년 전 조회 1,481
18년 전 조회 1,628
18년 전 조회 1,988
18년 전 조회 1,765
18년 전 조회 1,545
18년 전 조회 1,524
18년 전 조회 1,860
18년 전 조회 1,533
18년 전 조회 1,961
18년 전 조회 1,511
🐛 버그신고