奇怪的 JS 脚本 ,后台代码事件 调用和前台的 奇怪现象?? 求助高人
同一个JS脚本 在前台就可以触发鼠标事件 接受字符串 输出,在后台 只能触发事件接受 数字输出 ,字符串就报错 ,太奇怪了,请各位高人指点啊!!!
前台 代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="SuperMap.IS.WebControls" Namespace="SuperMap.IS.WebControls"
TagPrefix="SMIS" %>
<!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>
<script src="scripts/ToolTip.js" type="text/javascript"></script>
</head>
<body>
<div id="show" style="BORDER-RIGHT: #cccccc 3px solid;PADDING-RIGHT: 10px; BORDER-TOP: #cccccc 3px solid; PADDING-LEFT: 10px; Z-INDEX: 100; LEFT: 528px; VISIBILITY: hidden; PADDING-BOTTOM: 10px; BORDER-LEFT: #cccccc 3px solid; WIDTH: 100px;HEIGHT: 150px; COLOR: #666666; PADDING-TOP: 10px; BORDER-BOTTOM: #cccccc 3px solid; POSITION: absolute; TOP: 296px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: left"></div>
<form id="form1" runat="server">
<div style="text-align: center">
<SMIS:ToolbarControl ID="ToolbarControl1" runat="server" BackColor="WhiteSmoke" BorderColor="Gray"
BorderStyle="Dashed" BorderWidth="1px" Height="25px" MapControlID="MapControl1"
Width="222px">
<SMIS:ViewEntireToolControl ID="ToolbarControl1_ViewEntireToolControl1" runat="server"
Height="22px" MapControlID="MapControl1" Width="24px" />
<SMIS:QuickZoomInToolControl ID="ToolbarControl1_QuickZoomInToolControl1" runat="server"
Height="22px" MapControlID="MapControl1" Width="24px" />
<SMIS:QuickZoomOutToolControl ID="ToolbarControl1_QuickZoomOutToolControl1" runat="server"
Height="22px" MapControlID="MapControl1" Width="24px" />
<SMIS:PanToolControl ID="ToolbarControl1_PanToolControl1" runat="server" MapControlID="MapControl1" />
<SMIS:ZoomInToolControl ID="ToolbarControl1_ZoomInToolControl1" runat="server" MapControlID="MapControl1" />
<SMIS:ZoomOutToolControl ID="ToolbarControl1_ZoomOutToolControl1" runat="server"
MapControlID="MapControl1" />
<SMIS:ViewPreviousToolControl ID="ToolbarControl1_ViewPreviousToolControl1" runat="server"
Height="22px" MapControlID="MapControl1" Width="24px" />
<SMIS:ViewNextToolControl ID="ToolbarControl1_ViewNextToolControl1" runat="server"
Height="22px" MapControlID="MapControl1" Width="24px" /></SMIS:ToolbarControl>
<br />
<%-- 加到这里 是有效的 ,在 CustomLayer 生成的标注 触发 js 事件 onmouseover="showTip(8);" onmouseout="hideTip();" 只能输出数字,字符串报错 “未定义”--%>
<SMIS:MapControl ID="MapContro