jquery datepicker 当鼠标点击了日立或者下一月的按钮时,日期的hover事件和onmourseover事件都不能用了?谁能帮下忙,在线等
$( "#datepicker" ).datepicker(
{
monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
dayNamesMin: ['日','一', '二', '三', '四', '五', '六', ],
autoSize: true,
showWeek: true,
weekHeader: '',
firstDay:1,
hideIfNoPrevNext: false
});
datepicker 的代码
$("#datepicker td").attr("class","datetimetd");
$(".datetimetd a").hover(
function () {
// alert("here");
needmove=0;
$(this).addClass("hover");
var year=$(".ui-datepicker-year").html();
var month=$(".ui-datepicker-month").html();
// alert($(this:first).html());
// var day=$(this).find("a").html();
var day=$(this).html();
var date=year+"-"+month.replace("月","")+"-"+day;
var webUrl=$("#url").val();
var currentUser=$("#currentUser").val(); $.ajax({
type:"POST",
url:"http://zengjf/RainLanderWeb/GetEventList.aspx/GetEventList.aspx",
data:{key:date,webUrl:webUrl,currentUser:currentUser},
success:function(msg)
{
// if(msg!=""){
$("#enventList").html(msg);
$("#Control").css("position","absolute");
$("#Control").css("left",x);
$("#Control").css("top",y);
$("#Control").css("display","block");
needmove=1;
// }
// else
// {
// needmove=1;
// }
// alert("success");
}
}); },
function () {
// $("#Control").css("display","none");
});
});这是hover事件的代码
$( "#datepicker" ).datepicker(
{
monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
dayNamesMin: ['日','一', '二', '三', '四', '五', '六', ],
autoSize: true,
showWeek: true,
weekHeader: '',
firstDay:1,
hideIfNoPrevNext: false
});
datepicker 的代码
$("#datepicker td").attr("class","datetimetd");
$(".datetimetd a").hover(
function () {
// alert("here");
needmove=0;
$(this).addClass("hover");
var year=$(".ui-datepicker-year").html();
var month=$(".ui-datepicker-month").html();
// alert($(this:first).html());
// var day=$(this).find("a").html();
var day=$(this).html();
var date=year+"-"+month.replace("月","")+"-"+day;
var webUrl=$("#url").val();
var currentUser=$("#currentUser").val(); $.ajax({
type:"POST",
url:"http://zengjf/RainLanderWeb/GetEventList.aspx/GetEventList.aspx",
data:{key:date,webUrl:webUrl,currentUser:currentUser},
success:function(msg)
{
// if(msg!=""){
$("#enventList").html(msg);
$("#Control").css("position","absolute");
$("#Control").css("left",x);
$("#Control").css("top",y);
$("#Control").css("display","block");
needmove=1;
// }
// else
// {
// needmove=1;
// }
// alert("success");
}
}); },
function () {
// $("#Control").css("display","none");
});
});这是hover事件的代码
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货