점프메뉴로 iframe 안으로 링크걸기 방법
본문
head사이에----------------------------------
<script language="Javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
body 밑에 --------------------
<form name="form1">
<select name="menu1" onChange="MM_jumpMenu('parent.frames[\'hot\']',this,0)">
<option selected>선택하세요</option>
<option value="http://www.aircon1004.com">에어컨천사닷컴</option>
</select>
</form>
<iframe src="test.htm" width=600 height=450 name=hot></iframe>
출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=172
관련링크
댓글목록
등록된 댓글이 없습니다.