Jquery:
<script language="javascript" type="text/javascript">
$(function() {
$(".shName").hover(function() {
var name = $(this).text()
var year = $("#DpYear").val();
var mo = $("#DpTime").val();
var d = document.getElementById("s");
d.style.left = window.event.clientX + 35;
d.style.top = window.event.clientY + $(window).scrollTop();
$.post("JF_SH.aspx", { f: "find", noticeName: escape(name), noticeYear: escape(year), noticeMonth: escape(mo) }, function(data, status) {
if (status = "success") {
if (parseInt(data) >= 0) {
d.style.display = "block";
d.innerHTML = name + ":" + year + "年" + mo + "月共审核[" + data + "]条";
}
}
})
},
function() {
document.getElementById("s").style.display = "none";
})
})
</script>
代码:
<asp:DropDownList ID="DpYear" runat="server" asp:DropDownList>
后台:
if (Request.Form["f"] == "find")
{
if (RequestUtility.GetFormString("noticeName") != "")
{
// 处理程序
}
}