阅读:4410回复:3
打开收缩框架的问题:Mozilla不支持document.all
<frameset id="main" rows="22,*" frameborder="no" border="0" framespacing="0">
<frame name="top" id="top" scrolling="no" src="top.html" > <frameset name="content" id="content" border="0" rows="*,150" frameborder="0" framespacing="0"> <frame name="main" id="main" marginheight="0" marginwidth="0" scrolling="auto" src="main.html"> <frame name="bottom" id="bottom" marginheight="0" marginwidth="0" scrolling="no" src="bottom.html"> </frameset> </frameset> ======================================= bottom.html里的JS: <SCRIPT language="javascript" type="text/javascript"> function switchSysBar3(){ if (document.all){ top.content.rows="*,21" } } function switchSysBar2(){ if (document.all){ top.content.rows="*,150" } } </SCRIPT> <a href="javascript:switchSysBar()">switchSysBar</a>|<a href="javascript:switchSysBar2()">switchSysBar2</a> ========================================== 在Mozilla失效了,对JS不大懂 网上找了一天说用getElementById 可怜自己不会写,请指点一下,谢谢! |
|
1楼#
发布于:2005-09-07 23:40
document.all 是 IE 的私有属性.
js 不大懂就找本书看一看, o'reilly 的 <JavaScript 权威指南> 就挺不错. |
|
2楼#
发布于:2005-09-07 23:40
看见一本书名了...
有时间去看看 |
|
3楼#
发布于:2005-09-07 23:40
http://bbs.chinahtml.com/announcement.php?f=4
这里的 FTP 资源有较多教程。 另外手头有 Wrox.Professional.JavaScript.For.Web.Developers.Apr.2005.eBook-DDU.pdf 需要的话可以发邮件给我 fenguly#gmail.com |
|