에

자바 고수님들 한번 봐주세요 ..

· 2012-11-07 (수) 05:40:15 · 1062
오류 주소 : 오류 사이트 이동 !!

현재 메인 화면 이미지가 바뀌는데요

큰이미지가 바뀔때 아래에 작은 이미지도 같이 바뀌고 하나는 흑백?이미지로 변하는건데여

클릭했을때에는 이미지가 서로 잘 맞게 돌아갑니다.

가만히 냅두어도 정해진 시간에 맞춰서 이미지가 돌아가는데요

큰 이미지만 돌아가고 아래 이미지는 돌지 않습니다..

스크립트 오류가 나는데요



function top2menuHideAll() //2차메뉴모두감추기
{
top1menuEl = document.getElementById("top1menu"). childNodes;
for (i=1;i=top1menuEl.length;i++)
{
top1Menu = document.getElementById("top1m"+i);
top2Menu = document.getElementById("top2m"+i);
if(i10){inn='0'+i;} else {inn=''+i;}
if (top1Menu) {
top1Menu.getElementsByTagName("img")[0].src="/img/btn/top1m" + inn + ".gif";
// top1Menu.style.textDecoration="none"; //텍스트일때
// top1Menu.style.fontWeight="normal"; //텍스트일때
// top1Menu.style.letterSpacing="0"; //텍스트일때
if (top2Menu) { top2Menu.style.display = 'none'; }
}
}
}
function initTopMenu() {
top1menuEl = document.getElementById("top1menu"). childNodes;
// alert(top1menuEl.length);
for (i=1;i=top1menuEl.length;i++)
{
top1Menu = document.getElementById("top1m"+i);
top2Menu = document.getElementById("top2m"+i);
if (top1Menu) {
top1Menu.onmouseover = top1Menu.onfocus = top2menuView;
top1Menu.onmouseout = top2menuHide;
if (top2Menu) {
top2Menu.onmouseover = top2Menu.onfocus = top2menuView;
top2Menu.onmouseout = top2menuHide;
}
}
}
//2차메뉴가 텍스트일때만 사용
//top2MenuCurrAct = document.getElementById("top2m"+sMenuTopMain+"m"+sMenuTopSub);
//if (top2MenuCurrAct) { top2MenuCurrAct.getElementsByTagName("a")[0].style.color="#ffffff"; }
//if (top2MenuCurrAct) { top2MenuCurrAct.getElementsByTagName("a")[0].style.fontWeight="bold"; }
//if (top2MenuCurrAct) { top2MenuCurrAct.getElementsByTagName("a")[0].style.backgroundColor ="#999999"; }
}


이 소스에서 저 부분이 에러가 납니다.

아시는분 계신가요..?

아니면 비슷한 형식의 소스를 아시는분 .. 알려주세요 흑흑
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-11-07 조회 1,853
12-11-07 조회 942
12-11-07 조회 1,757
12-11-07 조회 1,063
12-11-07 조회 3,026
12-11-07 조회 900
12-11-07 조회 1,656
12-11-06 조회 1,099
12-11-06 조회 978
12-11-06 조회 1,663
12-11-06 조회 1,628
12-11-06 조회 1,969
12-11-06 조회 656
12-11-06 조회 873
12-11-06 조회 1,058
12-11-06 조회 1,111
12-11-06 조회 931
12-11-06 조회 1,485
12-11-06 조회 824
12-11-06 조회 871