JScript code$(document).ready(function () {
$("#imgdenglu").click(function () {
var uns = $("#txtLoginname").val();
var pws = $("#txtLoginpassword").val();
var cks = $("#ckbcookie").attr("checked");
$.ajax({
type: "get",
url: "ajax/Login.aspx",
data: "un=" + uns + "&pw=" + pws + "&ck=" + cks + "",
dataType: "text",
beforeSend: function () {
$("#prompt").html('请稍后。。。');
},
success: function (result) {
// $("#prompt").html(result);
var v = $(result.d).text();
if (v != '2') {
$("#prompt").html(v);
}
else {
$("#prompt").html('nima');
setTimeout("myrefresh()", 2000);
}
}
})
});
});