用途:在codebehind寫txterrmsg.Text = "..."; 就會有即時的alert彈出來!
要放在$(function(){})裡用唷!
setInterval(function () {
var err = $('#<%=txterrmsg.ClientID%>').val();
if (err != '') {
myalert(err);
$('#<%=txterrmsg.ClientID%>').val('');
hidenowpop();
}
var topoffset = 0;
if (detectDevice()) {
topoffset = 0;
} else
topoffset = 60;
$('#pop').css('top', topoffset + parseInt($('body').scrollTop()) + 'px');
}, 200);文章標籤
全站熱搜
