代码之家  ›  专栏  ›  技术社区  ›  menardmam

jQuery事件捕获

  •  0
  • menardmam  · 技术社区  · 16 年前

    在检查事件之前,我找不到确保功能完整的方法

    <script type="text/javascript">
     jQuery(document).ready( function() {
    
    var cesc = new flickrshow('flickrbox', {
       'autoplay':true,
       'hide_buttons':false,
       'interval':3500,
       'page':1,
       'per_page':10,
       'user':'53335537@N04' });
    
    jQuery('li').hover(function(){ console.log (jQuery(this)); }); 
    
    });
    </script>
    

    此脚本运行于: http://www.notrepanorama.com/

    创建框,然后填充图像,如果我将鼠标悬停在图像上,

  • 不要登录控制台,但是
  • 菜单中有…所以我认为这是因为当函数执行时,这个框没有被填充….

    有什么解决办法吗?

  • 1 回复  |  直到 16 年前
        1
  •  0
  •   David Thomas    16 年前
        jQuery('li').bind('mouseover',function(){
           // code for mouser over
        }).bind('mouseout',function (){
           // code for mouse out
        });
    
    whatever i understood from your question(which is unclear), this is my solution.