【发布时间】:2011-01-18 22:18:14
【问题描述】:
我一直在尝试在我的 wordpress 主题中包含 jquery ui 效果(更具体地说是抖动效果)。到目前为止,我只能包含 jQuery 脚本,但我真的不知道在哪里放置 ui 脚本以及如何将它们排入队列。
这是我的代码。它显然不起作用:
<?php wp_enqueue_script("jquery"); ?>
<?php wp_enqueue_script("jquery-ui-core"); ?>
<?php wp_head(); ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function() {
$j("#manita-imagen").mouseover(function(){
//$j(this).animate({ opacity: "hide" })
// alert('asd');
$j(this).effect("shake", { times:3 }, 300);
});
});
</script>
感谢您的帮助!
【问题讨论】:
-
我无法回答您的问题(因此发表评论),但您可以在 Wordpress Stack Exchange site 上找到特定于 Wordpress 的帮助。
-
我也会把这个问题加在那里,谢谢!
-
没问题,我很抱歉我不能提供更多帮助 =)
标签: jquery wordpress jquery-ui