iframe隐藏

 

<script language="javascript" type="text/javascript">

function myHref(url)

{

document.getElementById("myFrame").src=url;

}

</script>

<title>无标题文档</title>

 

</head>

 

<body>

<table width="100" border="0" cellspacing="1" cellpadding="0">

  <tr>

    <td width="100" align="center"><a href="#" onclick="myHref('http://www.baidu.com')">百度</a></td>

  </tr>

  <tr>

    <td align="center"><a href="#" onclick="myHref('http://www.sohu.com.cn')">新浪</a></td>

  </tr>

  <tr>

    <td align="center"><a href="#" onclick="myHref('http://www.sohu.com')">搜狐</a></td>

  </tr>

</table>

 

 

<iframe name="myFrame" id="myFrame" frameborder="1" width="500" height="500"></iframe>

</body>

</html>

 

 

posted @ 2013-06-11 16:03  廖世勇  阅读(854)  评论(0编辑  收藏  举报