如何在一个文件中使用多个jQuery插件

问题描述:

我必须在php文件中同时使用jCarousel和Lightbox插件. jCarousel可以很好地用于灯箱,所有路径均正确,但始终表示

I have to use jCarousel and Lightbox plugin both together in a file of php. the jCarousel is working fine for the light box all paths are correct but it always says that

 $("#gallery a").lightbox is not a function. 

与精美框相同,或者如何在jQuery中使用原型的Lightbox2.

Same as for fancy box or how do I can use Lightbox2 of prototype with jQuery.

我使用以下内容没有冲突

I used the below for no conflict

var $jx = jQuery.noConflict();
$jx(function() {
   $jx(".jgallery").jCarouselLite({
         btnNext: ".morePost",
   visible: 8,
   scroll:8   

 });

用于与原型一起使用.原型灯箱开始工作,但之后jCarousel不工作.

for using with prototype. The Prototype Light Box Start working but jCarousel does not work after this.

您可以将light box用作jquery插件,也可以将light box2用作jquery插件.

You can use light box as a jquery plug-in or light box2 also as a jquery plug-in.

后面的灯具有使其工作所需的步骤.

The light that follow have the steps needed to make it work.

jQuery灯箱:

http://leandrovieira.com/projects/jquery/lightbox/

jQuery Light box2:

JQuery Light box2:

http://www.huddletogether.com/projects/lightbox2/