jQuery GalleryView Wordpress 插件给了我“不是一个函数”错误
我正在尝试将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的最后一个包含内容:
还在文件中包含 jQuery 1.3.2,因此它会覆盖
jQuery
对象和所有插件。要获取未嵌入 jQuery 库的版本:在 jQuery 工具下载页面 上,请务必取消选中顶部的 jQuery 选择,因为页面中已经有它了。
请注意,除了这个包含之外,您在出现上述问题之前已经包含了 jQuery 两次,因此它实际上被加载了 3 次。 1.3.2 正在此处加载:
然后 1.4.2 正在此处加载::
由于这也会破坏 jQuery UI 包含内容,因此我将删除这两个脚本元素:
目前,它们只是减慢页面速度并被覆盖。
Your last include here:
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:
Then 1.4.2 is being loaded here::
Since this destroys the jQuery UI includes as well, I'd remove these two script elements:
Currently, they're just slowing down the page and being overwritten anyway.