如题:<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="/SWebHQ/Css/Style1/webhq.css" type="text/css">
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/webhq.js">
</script>
<script language="JavaScript1.2" src="/SWebHQ/JScript/Style1/daydata.js">
</script>
<script language="JavaScript" src="<#ModuleName>/DayData?Stkcode=<#Stkcode>&Style=<#Style>&ZBKind=<#ZBKind>&LNKind=<#LNKind>&Count=<#Count>&Start=<#Start>&CodeIndex=<#CodeIndex>">
</script>
</head>
<body bgcolor="#000000" text="#FFFFFF" leftmargin="0" topmargin="0" onkeydown="key();" onLoad="Calc();cmdfocus();" onhelp="javascript:return false">
<div id="Line" style="position:absolute; left:0px; top:0px; width:1px; height:379px; z-index:1; background-color: #FF0000; border: 1px none #000000; display: none"></div>
<div id="LayData" style="position:absolute; left:231px; top:90px; width:85px; height:94px; z-index:2; display: none"> 
  <table width="100%" border="1" cellspacing="1" cellpadding="3" height="94" id="TableData" bgcolor="#FFFFFF" bordercolor="#000000">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>
<div id="test">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/DayGif?Stkcode=<#Stkcode>&Style=<#Style>&ZBKind=<#ZBKind>&LNKind=<#LNKind>&Count=<#Count>&Start=<#Start>&pma1=<#pma1>&pma2=<#pma2>&pma3=<#pma3>&pma4=<#pma4>&pma5=<#pma5>&CodeIndex=<#CodeIndex>"></td>
<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>
  </tr>
</table>
</div>
<script language="JavaScript1.2">setTimeout("SetString()",2000)  var content = '<table border="0" cellspacing="0" cellpadding="0">';
   content += '<tr>';
content += '<td><img id="Img" onMouseMove="ImgMove();" onMouseOut="ImgOut();" src="<#ModuleName>/DayGif?Stkcode=<#Stkcode>&Style=<#Style>&ZBKind=<#ZBKind>&LNKind=<#LNKind>&Count=<#Count>&Start=<#Start>&pma1=<#pma1>&pma2=<#pma2>&pma3=<#pma3>&pma4=<#pma4>&pma5=<#pma5>&CodeIndex=<#CodeIndex>"></td>';
content += '<td><img src="<#ModuleName>/RealHQGif?Stkcode=<#Stkcode>&Style=<#Style>&CodeIndex=<#CodeIndex>&W=170&H=400&L=5"></td>';
   content += '</tr>';
content += '</table>';
function SetString()

document.getElementById["test"].innerHTML=content;
}</script>
</body>
</html>

解决方案 »

  1.   

    这是自动刷新的页面,在IE可以刷新,在FF不可以刷新
      

  2.   

    浏览器不兼容,这样的话也可以修改好的,只要你改改样式就应该没什么问题的,上次我碰到了类似的问题,是gridview控件兼容,最后加了几个样式就可以了,不知道你这是不是这样的原因
      

  3.   

    用firebug看下有什么错误没。innerHTML是ie和FF共用的,innerText才会出现不兼容
      

  4.   

    首先,你要清楚服务器端和客户端程序的执行顺序
    再次,没有刷新指的是什么?你要是采用的ajax 请求数据,则是缓存的问题,在url加随机数即可
    如果不是ajax取数据,而只是简单刷新一部分内容,那么,在firefox里,如果内容没有变化,浏览器渲染引擎可以不用重新渲染的, 
      

  5.   

    ff中不支持innerText但支持innerHTML