묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
겟판이나 외부로그인등 여러가지요인떄문에 글자색이 변경되요
2004.05.24 22:36
http://wonzien.made.com/test.html
↑ 아래 복잡한 메뉴판 볼수있는곳
<script>
table_height = 20; // 테이블 높이를 정한다.
xmenu = new Array;
xsubmenu = new Array;
//타이틀 제목을 써준다
xmenu[0] = '홈페이지';
xmenu[1] = '스크립트';
xmenu[2] = '애플릿';
xmenu[3] = '컴퓨터';
xmenu[4] = '윈도우';
xmenu[5] = '공부방';
xmenu[6] = '음악방';
//기본값을 위해 해당 메뉴만큼 null값을 채워준다
xsubmenu[0] = ''
xsubmenu[1] = '+ '+ ''
xsubmenu[2] = ''
xsubmenu[3] = ''
xsubmenu[4] = ''
xsubmenu[5] = ''
xsubmenu[6] = ''
xsubmenu[0] += '<a HREF="" CLASS=menudyn3>홈페이지</a>';
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>스크립트</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>애플릿</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>컴퓨터</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>윈도우</a>';
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[3] += '<a HREF="#" CLASS=menudyn3>하드웨어</a>';
xsubmenu[3] += '+ ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[3] += '<a HREF="#" CLASS=menudyn3>소프트웨어</a>';
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>질문과 답변</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 버그</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 강좌</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 사용기</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 스샷</a>';
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>사과향기</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>FreeBSD</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>PHP + MySql</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>E365</a>';
xsubmenu[6] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[6] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[6] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
//메뉴에 스타일 시트 적용
document.write('<STYLE TYPE="text/css">nA.menudyn3 {color:#FFFFFF; text-decoration:none;}nA:hover.menudyn3 {color:#FFFFFF;text-decoration:none;}n</STYLE>');
// 테이블 시작
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xsubmenu.length*100)+' BGCOLOR=#000000> <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%> <TR>');
for(i=0;i<xsubmenu.length;i++)
{
document.write('<TD BGCOLOR=#006699 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><font SIZE=-1 FACE="돋움"><b><a HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</a></b></font></TD>');
}
document.write('</TR> <TR> <TD COLSPAN='+(xsubmenu.length)+' BGCOLOR=#6699CC HEIGHT='+table_height+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+table_height+'><layer id="dynamenu32" width=100% height='+table_height+'><div id="dynamenu33"> </div></layer></ilayer></TD> </TR></TABLE></TD></TR></TABLE>');
// 테이블 끝
// 테이블 백그라운드 컬러 시작
function colorIt(tditem)
{
if(document.all)
{ // 메뉴가 늘어나면 추가한다
document.all.td0.style.background='#006699';
document.all.td1.style.background='#006699';
document.all.td2.style.background='#006699';
document.all.td3.style.background='#006699';
document.all.td4.style.background='#006699';
document.all.td5.style.background='#006699';
document.all.td6.style.background='#006699';
tditem.style.background='#6699CC';
}
else if(document.getElementById)
{ // 메뉴가 늘어나면 추가한다
document.getElementById("td0").style.background='#006699';
document.getElementById("td1").style.background='#006699';
document.getElementById("td2").style.background='#006699';
document.getElementById("td3").style.background='#006699';
document.getElementById("td4").style.background='#006699';
document.getElementById("td5").style.background='#006699';
document.getElementById("td6").style.background='#006699';
tditem.style.background='#6699CC';
}
}
//테이블 백그라운 컬러 끝
function MajMenu(menu) //타이틀 메뉴를 제어한다
{
which = xsubmenu[menu];
if (document.layers){
document.dynamenu31.document.dynamenu32.document.write('+ '<font SIZE=-1 FACE="돋움"><b>'+which+'</b></font>')
document.dynamenu31.document.dynamenu32.document.close()
}
else if (document.getElementById) // 서브메뉴를 제어한다
{
document.getElementById("dynamenu33").innerHTML = '<center><font SIZE=-1 FACE="돋움"><b>'+which+'</b></font></center>';
}
else if (document.all){
dynamenu33.innerHTML=' '
dynamenu33.innerHTML='<font SIZE=-1 FACE="돋움"><b>'+which+'</b></font>';
}
}
if (document.getElementById)
colorIt(document.getElementById("td0"));
else if (document.all){
colorIt(document.all.td0);
}
MajMenu(0);
</script>
이 메뉴가요 게시판이나 외부로그인등의 영향을 받아서 글자색이 바구잡이로 변경됩니다.
지금 이 메뉴의 상태 글자색이 딱 마음에 드는데 어떻게 이 글자색을 고정시킬수없을까요?
↑ 아래 복잡한 메뉴판 볼수있는곳
<script>
table_height = 20; // 테이블 높이를 정한다.
xmenu = new Array;
xsubmenu = new Array;
//타이틀 제목을 써준다
xmenu[0] = '홈페이지';
xmenu[1] = '스크립트';
xmenu[2] = '애플릿';
xmenu[3] = '컴퓨터';
xmenu[4] = '윈도우';
xmenu[5] = '공부방';
xmenu[6] = '음악방';
//기본값을 위해 해당 메뉴만큼 null값을 채워준다
xsubmenu[0] = ''
xsubmenu[1] = '+ '+ ''
xsubmenu[2] = ''
xsubmenu[3] = ''
xsubmenu[4] = ''
xsubmenu[5] = ''
xsubmenu[6] = ''
xsubmenu[0] += '<a HREF="" CLASS=menudyn3>홈페이지</a>';
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>스크립트</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>애플릿</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>컴퓨터</a>';
xsubmenu[1] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[1] += '<a HREF="#" CLASS=menudyn3>윈도우</a>';
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[2] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[2] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[3] += '<a HREF="#" CLASS=menudyn3>하드웨어</a>';
xsubmenu[3] += '+ ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[3] += '<a HREF="#" CLASS=menudyn3>소프트웨어</a>';
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>질문과 답변</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 버그</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 강좌</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 사용기</a>';
xsubmenu[4] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[4] += '<a HREF="#" CLASS=menudyn3>윈도우 스샷</a>';
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>사과향기</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>FreeBSD</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>PHP + MySql</a>';
xsubmenu[5] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[5] += '<a HREF="#" CLASS=menudyn3>E365</a>';
xsubmenu[6] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
xsubmenu[6] += ' <font COLOR=#FFFFFF>|</font> '
xsubmenu[6] += '<a HREF="#" CLASS=menudyn3>메뉴넣기</a>';
//메뉴에 스타일 시트 적용
document.write('<STYLE TYPE="text/css">nA.menudyn3 {color:#FFFFFF; text-decoration:none;}nA:hover.menudyn3 {color:#FFFFFF;text-decoration:none;}n</STYLE>');
// 테이블 시작
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xsubmenu.length*100)+' BGCOLOR=#000000> <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%> <TR>');
for(i=0;i<xsubmenu.length;i++)
{
document.write('<TD BGCOLOR=#006699 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><font SIZE=-1 FACE="돋움"><b><a HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</a></b></font></TD>');
}
document.write('</TR> <TR> <TD COLSPAN='+(xsubmenu.length)+' BGCOLOR=#6699CC HEIGHT='+table_height+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+table_height+'><layer id="dynamenu32" width=100% height='+table_height+'><div id="dynamenu33"> </div></layer></ilayer></TD> </TR></TABLE></TD></TR></TABLE>');
// 테이블 끝
// 테이블 백그라운드 컬러 시작
function colorIt(tditem)
{
if(document.all)
{ // 메뉴가 늘어나면 추가한다
document.all.td0.style.background='#006699';
document.all.td1.style.background='#006699';
document.all.td2.style.background='#006699';
document.all.td3.style.background='#006699';
document.all.td4.style.background='#006699';
document.all.td5.style.background='#006699';
document.all.td6.style.background='#006699';
tditem.style.background='#6699CC';
}
else if(document.getElementById)
{ // 메뉴가 늘어나면 추가한다
document.getElementById("td0").style.background='#006699';
document.getElementById("td1").style.background='#006699';
document.getElementById("td2").style.background='#006699';
document.getElementById("td3").style.background='#006699';
document.getElementById("td4").style.background='#006699';
document.getElementById("td5").style.background='#006699';
document.getElementById("td6").style.background='#006699';
tditem.style.background='#6699CC';
}
}
//테이블 백그라운 컬러 끝
function MajMenu(menu) //타이틀 메뉴를 제어한다
{
which = xsubmenu[menu];
if (document.layers){
document.dynamenu31.document.dynamenu32.document.write('+ '<font SIZE=-1 FACE="돋움"><b>'+which+'</b></font>')
document.dynamenu31.document.dynamenu32.document.close()
}
else if (document.getElementById) // 서브메뉴를 제어한다
{
document.getElementById("dynamenu33").innerHTML = '<center><font SIZE=-1 FACE="돋움"><b>'+which+'</b></font></center>';
}
else if (document.all){
dynamenu33.innerHTML=' '
dynamenu33.innerHTML='<font SIZE=-1 FACE="돋움"><b>'+which+'</b></font>';
}
}
if (document.getElementById)
colorIt(document.getElementById("td0"));
else if (document.all){
colorIt(document.all.td0);
}
MajMenu(0);
</script>
이 메뉴가요 게시판이나 외부로그인등의 영향을 받아서 글자색이 바구잡이로 변경됩니다.
지금 이 메뉴의 상태 글자색이 딱 마음에 드는데 어떻게 이 글자색을 고정시킬수없을까요?
<head>
<style>
<!--
body { font-size:10px; }
-->
</style>
</head>
<body>
<p>저는태스트용글입니다</p>
<p>저는태스트용글입니다</p>
</body>
</html>
랑요
<html>
<head>
<style>
<!--
#body { font-size:10px; }
-->
</style>
</head>
<body>
<p id=body>저는태스트용글입니다</p>
<p>저는태스트용글입니다</p>
</body>
</html>
이거 보시구요.............................