| |
Iframe的隐藏和显示
|
日期:2008年11月4日 作者:清风网络学院
查看:[大字体 中字体
小字体]
|
在<body>...</body>之间加入下列代码: <div id="bodyframe" style="VISIBILITY: hidden"> <IFRAME frameBorder=1 id=heads src="framepage.htm" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px"> </IFRAME> </div> <div onclick="document.all.bodyframe.style.visibility='visible'" style="background-color: red; cursor: hand; height: 22; left: 300; position: absolute; top: 137; width: 74; z-index: 1"> <font color="#ffffff">显示iFrame</font></p> </div> <div onclick="document.all.bodyframe.style.visibility='hidden'" style="background-color: red; cursor: hand; height: 22; left: 400; position: absolute; top: 137; width: 74; z-index: 1"> <font color="#ffffff">隐藏iFrame</font> </div>
上一篇:删除字符串中间的空格
下一篇:有效地控制表单元素的选择方式
|
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.abcdown.net
| |