码迷,mamicode.com
首页 > 其他好文 > 详细

鼠标移上与移出事件

时间:2017-06-17 15:56:29      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:hover   css   ide   mouseover   opd   out   bsp   鼠标   sel   

$(‘#newcl‘).hover(function(){                     $("#newcl").hide();                     $("#popDiv").show(                         function(){                             $("#popDiv").hover(function(){                                 $("#newcl").hide();                                 $("#popDiv").show();

                            },function(){                                 $("#newcl").show();                                 $("#popDiv").hide();                             });                         }                     );             });       

      /*$("#newcl").mouseover(function()              {                 $("#newcl").hide();                 $("#popDiv").show(1000);

             }).mouseout(function()              {                  $("#newcl").show();                 $("#popDiv").hide(1000);

             });*/              /*$("#newcl").mouseenter(function()              {                 $("#newcl").hide();                 $("#popDiv").show();

             });              $("#popDiv").mouseleaver(function()              {                 $("#newcl").show();                 $("#popDiv").hide();

             });*/              /*$(‘#popDiv‘).mouseout(function(){                 //if($("#popDiv").css("display","none")){                     //$(‘#newcl‘).css("display","none");                    // $("#popDiv").css("display","block");                 //}else{                     $(‘#newcl‘).css("display","block");                     $("#popDiv").css("display","noen");                 //}             });*/             /*$(‘#newcl‘).mouseover(function(){                 //if($("#popDiv").css("display","none")){                     $(‘#newcl‘).css("display","none");                     $("#popDiv").css("display","block");                 //}else{                   //  $(‘#newcl‘).css("display","block");                    // $("#popDiv").css("display","noen");                 //}             });              $(‘#popDiv‘).mouseout(function(){                 //if($("#popDiv").css("display","none")){                     //$(‘#newcl‘).css("display","none");                    // $("#popDiv").css("display","block");                 //}else{                     $(‘#newcl‘).css("display","block");                     $("#popDiv").css("display","noen");                 //}             });*/

鼠标移上与移出事件

标签:hover   css   ide   mouseover   opd   out   bsp   鼠标   sel   

原文地址:http://www.cnblogs.com/ZJiao/p/7040282.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!