分享

同一页面通过链接显示不同数据(非iframe) TabPage

 WindySky 2007-09-21
<script>
var content = new Array();  //定义一个数组来预先保存内容
content[0] = "<img src='http://www./images/51js/profile.gif'><br>内容一";
content[1] = "<img src='http://www./images/51js/email.gif'><br>内容二";
content[2] = "<img src='http://www./images/51js/find.gif'><br>内容三";
</script>
<table border=1 width="300" height="150">
<tr height="20">
<td onclick="div1.innerHTML=content[0]" bgcolor="orange">1</td>
<td onclick="div1.innerHTML=content[1]" bgcolor="orange">2</td>
<td onclick="div1.innerHTML=content[2]" bgcolor="orange">3</td>
</tr>
<tr><td colspan="3">
<div id="div1" style="width:100%;height:100%">显示的层</div>
</td></tr>
</table>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约