2012/06/10
me iframe 코드
코드:
<script>
function go1()
{
document.all.content.src = "http://www.bloomberg.com/quote/NAPHJPNC:IND/chart";
}
function go2()
{
document.getElementById("content").src = "http://www.sunsirs.com/";
}
function go3()
{
document.getElementById("content").src = "http://www.maximkorea.net/main2/";
}
function go4()
{
document.getElementById("content").src = "http://www.hankyung.com/";
}
function go5()
{
document.getElementById("content").src = "http://cn.reuters.com/";
}
</script>
<iframe onClick="alert('ddd');" id="content" name="content" marginwidth="0" marginheight="0" frameBorder=1 src="test5.php" width="600" height="200" scrolling=yes></iframe>
<input type="button" value="블룸버그" onClick="go1();">
<input type="button" value="sunsirs" onClick="go2();">
<input type="button" value="맥심코리아" onClick="go3();">
<input type="button" value="한국경제" onClick="go4();">
<input type="button" value="로이터중국" onClick="go5();">
피드 구독하기:
댓글 (Atom)

댓글 없음:
댓글 쓰기
참고: 블로그의 회원만 댓글을 작성할 수 있습니다.