자바 고수님들 한번 봐주세요 .. 정보
자바 고수님들 한번 봐주세요 ..본문
오류 주소 : 오류 사이트 이동 !!
현재 메인 화면 이미지가 바뀌는데요
큰이미지가 바뀔때 아래에 작은 이미지도 같이 바뀌고 하나는 흑백?이미지로 변하는건데여
클릭했을때에는 이미지가 서로 잘 맞게 돌아갑니다.
가만히 냅두어도 정해진 시간에 맞춰서 이미지가 돌아가는데요
큰 이미지만 돌아가고 아래 이미지는 돌지 않습니다..
스크립트 오류가 나는데요
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"; }
}
이 소스에서 저 부분이 에러가 납니다.
아시는분 계신가요..?
아니면 비슷한 형식의 소스를 아시는분 .. 알려주세요 흑흑
현재 메인 화면 이미지가 바뀌는데요
큰이미지가 바뀔때 아래에 작은 이미지도 같이 바뀌고 하나는 흑백?이미지로 변하는건데여
클릭했을때에는 이미지가 서로 잘 맞게 돌아갑니다.
가만히 냅두어도 정해진 시간에 맞춰서 이미지가 돌아가는데요
큰 이미지만 돌아가고 아래 이미지는 돌지 않습니다..
스크립트 오류가 나는데요
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"; }
}
이 소스에서 저 부분이 에러가 납니다.
아시는분 계신가요..?
아니면 비슷한 형식의 소스를 아시는분 .. 알려주세요 흑흑
댓글 전체