묻고답하기
상자위젯 속에 관리자버튼이 들어가는 문제점(소스)
2015.06.20 12:37
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language=javascript>
function ShowTab(val)
{
for (i=1; i<4; i++) {
var tb = document.getElementById('tab_' + i);
if (i != val) tb.style.display = "none";
else tb.style.display = "block";
}
}
function fncClick( obj )
{
//var fm = document.frm;
//var img = fm.menu;
var img = document.getElementsByName('menu');
obj.stus= 'on';
for( var i=0; i<img.length; i++ )
{
if( img[i] == obj )
{
if( img[i].src.indexOf('_on') == -1 )
{
img[i].src = img[i].src.replace('.jpg','_on.jpg');
}
}
else
{
img[i].src = img[i].src.replace('_on','');
img[i].stus= 'off';
}
}
}
</script>
<style>
#menu1 {float:left}
#menu2 {float:left}
#menu3 {float:left}
</style>
</HEAD>
<BODY >
<form name='frm'>
<div width="300" height="200" cellpadding="1" cellspacing="0" border="0">
<div>
<div id="menu1" width="130" height="30"><img id="menu" name="menu" src='./image/tab_molcalculator.jpg' stus='off' style='cursor:pointer;' border="0" onClick="fncClick(this), ShowTab(1)" width="130px" height="30px" /></div>
<div id="menu2" width="130" height="30"><img id="menu" name="menu" src='./image/tab_dilcalculator.jpg' stus='off' style='cursor:pointer;' border="0" onClick="fncClick(this), ShowTab(2)" width="130px" height="30px" /></div>
<div width="90"></div>
</div>
<div style="clear:both;"></div>
<div>
<div>
<iframe src="http://www.thecalculator.co/others/Molarity-Calculator-408.html" id="tab_1" width="285px" height="865px" frameborder="0" scrolling="no" style="DISPLAY: block;"></iframe>
<iframe src="http://www.thecalculator.co/others/Dilution-Calculator-422.html" id="tab_2" width="285px" height="865px" frameborder="0" scrolling="no" style="DISPLAY: none;"></iframe>
</div>
</div>
</div>
</form>
</BODY>
</HTML>
위에 소스를 내용직접추가 기능을 이용하여 넣어주면 계속 관리자버튼(캐시파일 재생성, 설정, 페이지수정, 모바일)이
자꾸 상자 위젯속으로 들어가 버리고 위젯이 더이상 추가가 안되는데 왜이러는 걸까요?ㅠㅠ