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事件的代码
解决方案 »
- html input输入框元素onblur事件问题
- 如何计算首屏时间?
- excel下载时,怎样不让ie出现信息栏安全提示
- 关于Aptana过滤中文字符的问题
- [.\n]是匹配所有字符包括换行符吗,测试不通过吗?
- 如何在iframe中的 document 空间获得,该iframe的属性,内详!
- 有关onclick 的问题,请教大家~
- 如何让一个页面不显示传值的参数(标题栏处不显示)
- 关于一个下拉列表的问题,请大侠们帮帮忙呀
- 在IE6.0中如何使用Microsoft Script Debugger工具调试javascript代码?
- 大家帮帮个忙!!!!
- JS 如何把div里面面的内容生成 快照呢?
直接获取来然后再传入ajax不是更好么?