JQuery Version Conflict

前端 未结 3 762
广开言路
广开言路 2021-02-06 11:58

I am trying to use the Nivo JQuery Slider (http://nivo.dev7studios.com/) and a Scrollable Gallery (http://flowplayer.org/tools/demos/scrollable/index.html).

Now I have

3条回答
  •  孤街浪徒
    2021-02-06 12:26

    Simple just copy & paste this java script code in your "HEAD" TAG

    // jquery version conflict code

      var newJQuery = jQuery.noConflict(true),
            oldJQuery = jQuery;
    
      (function ($) {
            // code that needs 1.4.2 goes here
       }(newJQuery));
    
      (function ($) {
            // code that needs 1.2.6 goes here
       }(oldJQuery));
    
      // code that needs oldJQuery and newJQuery can go here
    

    and see it's work 110%..........................:) Enjoy!!!

提交回复
热议问题