日期:2014-05-16  浏览次数:20424 次

onclick事件在firefox中失效
页面如下 在IE中可以执行,在FireFox中执行不了,要怎么修改一下。

C# code

Page Language="C#" AutoEventWireup="true" CodeFile="Tab.aspx.cs" Inherits="Tab" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
    
    <link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
    <form id="form1" runat="server">
    
<div id="Center">    

<table width="400" border="0" cellpadding="0" cellspacing="0" class="solid-bottom">
  <tr>
    <td width="383" height="19"><table  border="0"  cellpadding="0"  cellspacing="0"  id="secTable">
      <tr>
        <td  width="70" align="center"  class="sec2"  onclick="secBoard(0)" style="height: 17px">工艺技术</td>
        <td  width="120" align="center"  class="sec1"  onclick="secBoard(1)" style="height: 17px">生产制造</td>
        <td  width="110" align="center"  class="sec1"  onclick="secBoard(2)" style="height: 17px">设计服务</td>
        <td  width="110" align="center"  class="sec1"  onclick="secBoard(3)" style="height: 17px">人力资源</td>
      </tr>
    </table></td>
    <td width="17">
<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></td>
  </tr>
</table>
<table  border="0"  cellspacing="5"  cellpadding="0"  width="400"  height="120"  id="mainTable">
  <tbody  style="display:block;">
    <tr>
      <td height="120"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="72"><img src="images/ASDF.jpg" width="180" height="41" align="left" />ASDF 是一个小巧的 ICO/PNG 互转小工具,有了它你就不用再打开庞大的 Axialis IconWorkshop   了,而且它界面超简洁,只需拖动图片到窗口中再拖动回来,整个转换过程就算完成了。 </td>
        </tr>
        <tr>
          <td height="22" align="right"><a href="AA" target="_blank">立刻下载 ASDF</a></td>
        </tr>
      </table></td>
    </tr>
  </tbody>
  <tbody  style="display:none;">
    <tr>
      <td height="120"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="72"><img src="images/SWFDecompiler_icon.jpg" width="51" height="53" align="right" />用于浏览和解析Flash动画.swf文件的工具。它能够将flash动画中的图片、矢量图、字体、文字、按钮、影片片段、帧等基本元素完全分解,还可以对flash影片动作Action进行解析,清楚的显示其动作的代码,让您对Flash动画的构造一目了然。</td>
        </tr>
        <tr>
          <td height="22" align="right">&