87,989
社区成员
发帖
与我相关
我的任务
分享var last='';
$(document).ready(function(){
for (i=04;i<13;i++)
{
if(!document.getElementById("remind"+i).value)
{
$("#a"+i).mouseover(function(){$("#remind"+i).show()});
$("#a"+i).mouseout(function(){$("#remind"+i).hide()});
}
$("#remind"+i).focus(function()
{$("#a"+i).mouseout(function(){$("#remind"+i).show()});});
$("#remind"+i).blur(function(){
if(!document.getElementById("remind"+i).value&&!last)
{
$("#remind"+i).hide();
$("#a"+i).mouseover(function(){$("#remind"+i).show()});
$("#a"+i).mouseout(function(){$("#remind"+i).hide()});
}
else if(!document.getElementById("remind"+i).value&&last)
{
$.post("updatet.php", { m:"NULL",n:"remind"+i});
$("#remind"+i).hide();
$("#a"+i).mouseover(function(){$("#remind"+i).show()});
$("#a"+i).mouseout(function(){$("#remind"+i).hide()});
}
else if(document.getElementById("remind"+i).value && document.getElementById("remind"+i).value!=last)
{
$.post("updatet.php", { m:document.getElementById("remind"+i).value,n:"remind"+i});
}
});
}