【发布时间】:2012-07-17 00:27:42
【问题描述】:
我正在使用这个插件:http://wordpress.org/extend/plugins/wpmbytplayer/ 但是,当我运行以下 jQuery 来为标题中的框设置动画时,背景视频会停止并冻结。有谁知道为什么?
jQuery(function($) {
jQuery('#open').click(function(){
jQuery('#pull_down_content').animate({'top':'-25px'},1000);
jQuery('#open').fadeTo('slow', 0);
});
jQuery('#close').click(function(){
jQuery('#pull_down_content').animate({'top':'-800px'},1000);
jQuery('#open').fadeTo('slow', 1);
});
});
【问题讨论】:
-
将
$传递到您的函数中的想法是您不必必须使用冗长的jQuery。
标签: jquery jquery-plugins wordpress