테스트 사이트 - 개발 중인 베타 버전입니다

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

· 13년 전 · 891
오류 주소 : 오류 사이트 이동 !!

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

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

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

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

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

스크립트 오류가 나는데요



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(i<10){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"; }
}


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

아시는분 계신가요..?

아니면 비슷한 형식의 소스를 아시는분 .. 알려주세요 흑흑

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440