jQuery GalleryView Wordpress 插件给了我“不是一个函数”错误

发布于 2024-09-28 19:04:21 字数 545 浏览 4 评论 0原文

我正在尝试将 NextGen Gallery 插件与新的 jquery 幻灯片插件 GalleryView 一起使用。这些应该可以很好地协同工作。

如果我只使用默认的 Flash 播放器,NGG 就可以在我的网站上运行,但这对我来说不起作用。因此,我安装了新的 GalleryView 插件,并根据需要输入了短代码,但正如您在此页面上看到的

http://www.blissyfit.com/2010/07/find-your-wedding-dress-at-the-mall/

缩略图出现,但幻灯片不显示't 并且抛出一个 javascript 错误“galleryView 不是函数”,

尽管我看到 galleryview 在包含的 js 文件中定义。

我尝试联系插件创建者并在 WordPress 论坛上发帖,但两个地方都没有回复。我希望这里有人可以提供一些见解。

谢谢!

I'm attempting to use NextGen Gallery plugin with the new jquery slideshow plugin GalleryView. These are supposed to work lovely together.

NGG works on my site if I just go with the default Flash player but that's not going to work for me. So I installed the new GalleryView plugin and put the short code as needed but as you can see on this page

http://www.blissyfit.com/2010/07/find-your-wedding-dress-at-the-mall/

thumbnails appear but the slideshow doesn't and a javascript error is being thrown "galleryView is not a function"

Though I see galleryview defined in an included js file.

I've tried contacting the plugin creator and posting at the wordpress forum but no replies either place. I'm hoping someone here can offer some insight.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

—━☆沉默づ 2024-10-05 19:04:21

您的最后一个包含内容:

http://www.blissyfit.com/wp-content/themes/yamidoo_12/js/slider.js

在文件中包含 jQuery 1.3.2,因此它会覆盖 jQuery 对象和所有插件。

要获取未嵌入 jQuery 库的版本:在 jQuery 工具下载页面 上,请务必取消选中顶部的 jQuery 选择,因为页面中已经有它了。


请注意,除了这个包含之外,您在出现上述问题之前已经包含了 jQuery 两次,因此它实际上被加载了 3 次。 1.3.2 正在此处加载:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=3.0.1'></script> 

然后 1.4.2 正在此处加载::

<script type='text/javascript' src='http://www.blissyfit.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script> 

由于这也会破坏 jQuery UI 包含内容,因此我将删除这两个脚本元素:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=3.0.1'></script> 
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js?ver=3.0.1'></script> 

目前,它们只是减慢页面速度并被覆盖。

Your last include here:

http://www.blissyfit.com/wp-content/themes/yamidoo_12/js/slider.js

Also contains jQuery 1.3.2 inside the file, so it's overwriting the jQuery object and all your plugins.

To get a version without the jQuery library embedded: On the jQuery Tools download page be sure to uncheck the jQuery selection at the top, since you already have it in the page.


Note that besides this include, you already including jQuery twice before the above problem, so it's actually being loaded 3 times. 1.3.2 is being loaded here:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=3.0.1'></script> 

Then 1.4.2 is being loaded here::

<script type='text/javascript' src='http://www.blissyfit.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script> 

Since this destroys the jQuery UI includes as well, I'd remove these two script elements:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=3.0.1'></script> 
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js?ver=3.0.1'></script> 

Currently, they're just slowing down the page and being overwritten anyway.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文