Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquerypluginsupersized:单击外部缩略图包装器以关闭它_Jquery_Wordpress_Supersized - Fatal编程技术网

jquerypluginsupersized:单击外部缩略图包装器以关闭它

jquerypluginsupersized:单击外部缩略图包装器以关闭它,jquery,wordpress,supersized,Jquery,Wordpress,Supersized,我正在使用WP Supersized(/),我想修改它: 有一个托盘按钮,用于打开/关闭包含缩略图的div。 到目前为止还不错,但我需要一个额外的功能:如果用户点击这个div,它应该会消失。移到底部 以下是相关代码: a(vars.thumb_tray).animate({ bottom: -a(vars.thumb_tray).height() }, 0); a(vars.tray_button).toggle(function () {

我正在使用WP Supersized(/),我想修改它: 有一个托盘按钮,用于打开/关闭包含缩略图的div。 到目前为止还不错,但我需要一个额外的功能:如果用户点击这个div,它应该会消失。移到底部

以下是相关代码:

a(vars.thumb_tray).animate({
            bottom: -a(vars.thumb_tray).height()
        }, 0);
        a(vars.tray_button).toggle(function () {
            a(vars.thumb_tray).stop().animate({
                bottom: 0,
                avoidTransforms: true
            }, 300);
            if (a(vars.tray_arrow).attr("src")) a(vars.tray_arrow).attr("src", vars.image_path + "button-tray-down.png");
            return false
        }, function () {
            a(vars.thumb_tray).stop().animate({
                bottom: -a(vars.thumb_tray).height(),
                avoidTransforms: true
            }, 300);
            if (a(vars.tray_arrow).attr("src")) a(vars.tray_arrow).attr("src", vars.image_path + "button-tray-up.png");
            return false
        });
我是一名javascript初学者,因此任何帮助都将非常有用。:)