부디 알려주시길 바랍니다. 어떻게 접그해야 할지 난갑하네요
계속 에러라.. ㅜ.ㅜ
고수님들 부탁드립니다.
<html>
<script language="text/javascript">
// 이미지 바꾸기
function getBoxstyle(num) {
var doc = window.frames["mini"];
//var doc = document.frames["mini"];
doc.document.getElementById("p_top").src = "/minihome/center/main/images/c_top_none"+num+".gif";
}
</script>
<body>
<form ......>
........
<input type=radio name="m_boxallow" value="1" onclick="getBoxstyle(1)" style="border:0">윗쪽
<input type=radio name="m_boxallow" value="2" onclick="getBoxstyle(2)" style="border:0">아래쪽
<iframe name="mini" src="파일경로"></iframe>
........
</form>
</body>
</html>
iframe 내의 객체 접근방법
-
- Posts: 40
- Joined: 2004 11 30 15:19 45
- Contact:
iframe 안의 html 소스를 올려드립니다
<table border=0 width="269" height="186" >
<tr>
<td><img id="bgimage" src="/minihome/center/main/images/images_01.gif" width="269" height="186">
<div id="popup" style="position:absolute; left:150px; top:45px; z-index:5; cursor:move;" onmouseover="dragObj=popup; drag=1;move=0" onmouseout="drag=0">
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"></td>
<td width="98" align="center"><img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9"></td>
<td width="6"></td>
</tr>
<tr>
<td align="right" background="/minihome/center/main/images/c_left_none.gif"><img id="p_left" src="/minihome/center/main/images/c_left_none.gif" width="6" height="9"></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="word-break:break-all"><div id="state" style="filter:alpha(opacity=99)">미니룸에
풍선말을 남겨주세요</div></td>
</tr>
</table></td>
<td background="/minihome/center/main/images/c_right_none.gif"><img id="p_right" src="/minihome/center/main/images/c_right_none.gif" width="6" height="9"></td>
</tr>
<tr>
<td></td>
<td align="center"><img id="p_btm" src="/minihome/center/main/images/c_btm.gif" width="98" height="9"></td>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<tr>
<td><img id="bgimage" src="/minihome/center/main/images/images_01.gif" width="269" height="186">
<div id="popup" style="position:absolute; left:150px; top:45px; z-index:5; cursor:move;" onmouseover="dragObj=popup; drag=1;move=0" onmouseout="drag=0">
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"></td>
<td width="98" align="center"><img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9"></td>
<td width="6"></td>
</tr>
<tr>
<td align="right" background="/minihome/center/main/images/c_left_none.gif"><img id="p_left" src="/minihome/center/main/images/c_left_none.gif" width="6" height="9"></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="word-break:break-all"><div id="state" style="filter:alpha(opacity=99)">미니룸에
풍선말을 남겨주세요</div></td>
</tr>
</table></td>
<td background="/minihome/center/main/images/c_right_none.gif"><img id="p_right" src="/minihome/center/main/images/c_right_none.gif" width="6" height="9"></td>
</tr>
<tr>
<td></td>
<td align="center"><img id="p_btm" src="/minihome/center/main/images/c_btm.gif" width="98" height="9"></td>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
이미지 테그 p_top 부분이 빠져서 다리올립
중간에 이미지테그가 빠져서 올라가네요 ㅡㅡ; 다시올립니다.
빠진부분
<img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9">
-----------------------------------------------------------------
<table border=0 width="269" height="186" >
<tr>
<td><img id="bgimage" src="/minihome/center/main/images/images_01.gif" width="269" height="186">
<div id="popup" style="position:absolute; left:150px; top:45px; z-index:5; cursor:move;" onmouseover="dragObj=popup; drag=1;move=0" onmouseout="drag=0">
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"></td>
<td width="98" align="center"><img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9"></td>
<td width="6"></td>
</tr>
<tr>
<td align="right" background="/minihome/center/main/images/c_left_none.gif"><img id="p_left" src="/minihome/center/main/images/c_left_none.gif" width="6" height="9"></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="word-break:break-all"><div id="state" style="filter:alpha(opacity=99)">미니룸에
풍선말을 남겨주세요</div></td>
</tr>
</table></td>
<td background="/minihome/center/main/images/c_right_none.gif"><img id="p_right" src="/minihome/center/main/images/c_right_none.gif" width="6" height="9"></td>
</tr>
<tr>
<td></td>
<td align="center"><img id="p_btm" src="/minihome/center/main/images/c_btm.gif" width="98" height="9"></td>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
빠진부분
<img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9">
-----------------------------------------------------------------
<table border=0 width="269" height="186" >
<tr>
<td><img id="bgimage" src="/minihome/center/main/images/images_01.gif" width="269" height="186">
<div id="popup" style="position:absolute; left:150px; top:45px; z-index:5; cursor:move;" onmouseover="dragObj=popup; drag=1;move=0" onmouseout="drag=0">
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"></td>
<td width="98" align="center"><img id="p_top" src="/minihome/center/main/images/c_top_none.gif" width="98" height="9"></td>
<td width="6"></td>
</tr>
<tr>
<td align="right" background="/minihome/center/main/images/c_left_none.gif"><img id="p_left" src="/minihome/center/main/images/c_left_none.gif" width="6" height="9"></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="word-break:break-all"><div id="state" style="filter:alpha(opacity=99)">미니룸에
풍선말을 남겨주세요</div></td>
</tr>
</table></td>
<td background="/minihome/center/main/images/c_right_none.gif"><img id="p_right" src="/minihome/center/main/images/c_right_none.gif" width="6" height="9"></td>
</tr>
<tr>
<td></td>
<td align="center"><img id="p_btm" src="/minihome/center/main/images/c_btm.gif" width="98" height="9"></td>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
-
- Posts: 40
- Joined: 2004 11 30 15:19 45
- Contact:
소스 상으로는 문제가 없어보이는군요.
viewtopic.php?t=578
의 설명처럼 에러메시지를 보여주시면 답변을 드리는데 더 도움이 되겠네요.
참.. 그리고..
예전 브라우저들을 위해서는
표준은
viewtopic.php?t=578
의 설명처럼 에러메시지를 보여주시면 답변을 드리는데 더 도움이 되겠네요.
참.. 그리고..
이것은 잘못된 표현입니다.<script language="text/javascript">
예전 브라우저들을 위해서는
Code: Select all
<script language="javascript">
Code: Select all
<script type="text/javascript">
오타 였습니다. ㅜ.ㅜ
<script language="text/javascript">
이부분이 문제였습니다. 표준으로 한답시고 제대로 안봤네요 ㅡㅡ;
language 를 type 로 안바꾼게 문제였던것 같습니다.
답변 감사드립니다. 좋은하루 되세요
<script type="text/javascript">
이부분이 문제였습니다. 표준으로 한답시고 제대로 안봤네요 ㅡㅡ;
language 를 type 로 안바꾼게 문제였던것 같습니다.
답변 감사드립니다. 좋은하루 되세요
<script type="text/javascript">
Who is online
Users browsing this forum: No registered users and 1 guest