一段javascript代码在IE里正常,火狐里失效,求高手帮忙
<script language="javascript" type="text/javascript">
function secBoard(n)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
</script>
<table id="secTable"; border="0" cellspacing="0" cellpadding="0" width="630px">
<tr height="32px" align="center">
<td class="sec2" width="10%" onmousedown="secBoard(0)">公司新闻</td>
<td class="sec1" width="10%" onmousedown="secBoard(1)">行业新闻</td>
<td class="sec1" width="10%" onmousedown="secBoard(2)">公告信息</td>
<td class="sec1" width="10%" onmousedown="secBoard(3)">用水须知</td>
</tr>
</table>
相关推荐
js浏览器判断,火狐,谷歌,IE等五大浏览器判断
js浏览器判断,火狐,谷歌,IE等五大浏览器判断,浏览器的判断有助于您的JSP页面的图片能正常显示
web前端,pdf预览功能兼容火狐,IE,谷歌等浏览器,pdf.js
1. 解压 PDF前端预览功能.zip 压缩包,复制到网站开发目录; 2. 调用方式:window.open("Scripts/lib/PDF/web/viewer.html?file=" + window.location.protocol + "//" + window.location.host + "/test.pdf"); 3. 能支持多种浏览,火狐、IE、谷歌、360等,能支持本地文件直接浏览。
js复制文本(兼容IE、火狐)
NULL 博文链接:https://curtain.iteye.com/blog/1328750
wdatePicker 解决火狐和IE兼容
含有时分秒的设置,解决了火狐和IE兼容的问题。 在火狐中不会出现$dp is not defined错误
js实现保存文本框内容为本地文件兼容IE,chrome,火狐浏览器 原创
很多网站实现了利用JS保存页面中文本框内容到本地,并另存为指定文件扩展名与编码类型的功能,特别是一些代码教程,JS特效站上更是长见。如何利用JS实现这种功能的呢,下面给出了具体的实现代码 首先建立HTML文件,具体代码如下 <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head> <body> <textarea id="code"> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text


