求解决js打开关闭框架不能兼容ff的问题
时间:2010-08-19 来源:设计源
<script language="JavaScript" type="text/JavaScript"> function preloadImg(src) { var img=new Image(); img.src=src } preloadImg("images/f_bar.gif"); var displayBar=true; function switchBar(obj) { if (displayBar) { parent.frame.cols="0,7,*"; displayBar=false; obj.src="images/e_bar.gif"; obj.alt="打开左边管理导航菜单"; } else{ parent.frame.cols="160,7,*"; displayBar=true; obj.src="images/f_bar.gif"; obj.alt="关闭左边管理导航菜单"; } } </script>
<table width="7" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" onmouseover="this.style.backgroundColor='#C8F2FB'" onmouseout="this.style.backgroundColor='#ffffff'" style="cursor:pointer;background-color:#ffffff;"><a href="javascript:void(0);"><img src="images/f_bar.gif" width="6" style="cursor:pointer;" alt="关闭左边管理导航菜单" onClick="switchBar(this)"></a></td> </tr> </table>
在ie测试通过,可是不能兼容ff,不能触发鼠标事件,望高手指教,有能兼容ff和ie的源码,最好,谢谢
相关阅读 更多 +
- 系统休眠文件删除后果 如何删除计算机的休眠文件 2025-04-22
- 站群服务器是什么意思 站群服务器的作用 站群服务器和普通服务器的区别 2025-04-22
- jQuery插件有何作用 jQuery插件的使用方法 2025-04-22
- jQuery插件有哪些种类 简单的jQuery插件实例 2025-04-22
-