<div class="move_center">
<img id="imgMyImage" runat="server" alt="" src="" width="100" />
<p class="mp_top">
<asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>
</p>
<asp:Label ID="lblEdit" runat="server" Text="Change picture" Style="cursor: hand; text-decoration: underline;">
</asp:Label> </div><script type="text/javascript">
SetActivityDataStyle(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler() {
$('#<%=lblEdit.ClientID %>').click(function () {
$.open({
id: 'b_open',
url: '../Common/ChangePicture.aspx',
title: '',
width: 440,
height: 510
});
}); UnLockPage();
}
</script>
在IE中没有问题。
<img id="imgMyImage" runat="server" alt="" src="" width="100" />
<p class="mp_top">
<asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>
</p>
<asp:Label ID="lblEdit" runat="server" Text="Change picture" Style="cursor: hand; text-decoration: underline;">
</asp:Label> </div><script type="text/javascript">
SetActivityDataStyle(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler() {
$('#<%=lblEdit.ClientID %>').click(function () {
$.open({
id: 'b_open',
url: '../Common/ChangePicture.aspx',
title: '',
width: 440,
height: 510
});
}); UnLockPage();
}
</script>
在IE中没有问题。
jQuery(function() {
$('#<%=lblEdit.ClientID %>').click(function () {
alert("a");
});
});放在这里面 。
在IE里面alert了。但是在firefox里面根本没有alert了。
SetActivityDataStyle(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
建议你就像2楼那么做好了 firefox也是可以的ps:提醒下楼主 该结贴就结贴 你这结贴率有点点的惊人