按钮只能工作一次

时间:2013-09-06 18:55:33

标签: jquery button menu click fadein

  1. 你。点击菜单按钮.fade在<img>菜单列表中<map>
  2. 反过来.fade在幻灯片放映和返回菜单按钮和.fadeOut <img>菜单列表
  3. 然后返回菜单按钮。隐藏幻灯片
  4. 问题:我们应该回到1.但菜单按钮现在不起作用。

    $(document).ready(function(){
        $(".slide").hide(); /* the < imgs > in the slideshow */
        $(".menuList").hide(); /*Menu List is an < img >*/
        $(".backToMenu").hide();
    1)  $(".menuButton").on("click", function(){
            $(".menuList").fadeIn(1000);    
        });
    2)  $("#photoshop").on("click",function(){ /*one of the menu list < map > < areas >*/
            $(function(){ /* slideshow */
                $(".slideshowPhotoshop img:gt(0)").hide();
                setInterval(function(){
                $(".slideshowPhotoshop :first-child").fadeOut()
                .next('img').fadeIn()
                .end().appendTo(".slideshowPhotoshop");},
                4000);
            });
        });
        $(".backToMenu").on("click",function(){
            $(".slideshowPhotoshop").hide();
        });
    });
    

0 个答案:

没有答案
相关问题