大家好,我写了一段javascript代码 ,在IE7浏览器运行真的太慢了,但在TT和The world运行却很正常,烦请大家帮我分析一下原因.谢谢.以下是原代码:
<script language="javascript">function dispData(ycName1,ycName2,ycName3,ycName4,curTime,ycValue1,ycValue2,ycValue3,ycValue4)
{ document.getElementById("<%= dataTime.ClientID %>").innerHTML='时间:'+curTime;
if(ycName1!="请选择遥测数据")
{
    document.getElementById("<%= dataName1.ClientID %>").innerHTML = ycValue1;
    
}


if(ycName2!="请选择遥测数据")
{
    document.getElementById("<%= dataName2.ClientID %>").innerHTML = ycValue2;
    
}


if(ycName3!="请选择遥测数据")
{
    document.getElementById("<%= dataName3.ClientID %>").innerHTML = ycValue3;
    
}


if(ycName4!="请选择遥测数据")
{
    document.getElementById("<%= dataName4.ClientID %>").innerHTML = ycValue4;
    
}
}function hideData()
{
// dispData( '请选择遥测数据', '请选择遥测数据', '请选择遥测数据','请选择遥测数据', '&nbsp;', '&nbsp;', '&nbsp;', '&nbsp;', '&nbsp;');
// document.getElementById("dataTime").innerHTML='&nbsp;';
}function SetChartWidth()
{
    return document.getElementById("dataTable").style.width;
}
</script>
<table id="dataTable" runat="server" cellspacing="1" cellpadding="1" align="left" width="100%" border="0" bgcolor="#e5e9f0">
<tr style="height:15px;">
<td id="dataTime" width="90"></td>

<td><asp:TextBox ID="LegendsColor1" runat="server" Height="3px" width="50"></asp:TextBox></td>
<td id="dataName1" width="80"></td>
<td><asp:TextBox ID="LegendsColor2" runat="server" Height="3px" width="50"></asp:TextBox></td>
<td id="dataName2" width="80"></td>

<td><asp:TextBox ID="LegendsColor3" runat="server" Height="3px" width="50"></asp:TextBox></td>
<td id="dataName3" width="80"></td>
<td><asp:TextBox ID="LegendsColor4" runat="server" Height="3px" width="50"></asp:TextBox></td>
<td id="dataName4" width="80"></td>

<td width="20">
                                                            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                                            <ProgressTemplate>
                                                            <img src="Images/ajax-loader.gif" />
                                                            </ProgressTemplate>
                                                            </asp:UpdateProgress>
                                                        </td>
</tr>
</table>
我用的是VS2005(C#),我在后台把javascript的onmouse属性绑定到一个Dundas控件了PortfolioChart.Series[4].Points[pidx].MapAreaAttributes = String.Format("onmouseover=\"dispData('{0}','{1}','{2}','{3}','{4:T}','{5:#0.00}','{6:#0.00}','{7:#0.00}','{8:#0.00}')\" onmouseout=\"hideData()\"", ddlYCName1.SelectedItem.Text, ddlYCName2.SelectedItem.Text, ddlYCName3.SelectedItem.Text, ddlYCName4.SelectedItem.Text, DateTime.FromOADate(PortfolioChart.Series[4].Points[i].XValue), PortfolioChart.Series[0].Points[i].YValues[0], PortfolioChart.Series[1].Points[i].YValues[0], PortfolioChart.Series[2].Points[i].YValues[0], PortfolioChart.Series[3].Points[i].YValues[0]);另外说明一下,我的其它页面还有updatepanel控件