Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I use plugins for different versions of jQuery on the same page?
    primarykey
    data
    text
    <p>I've added 3 jqueryscripts for an html page (a colorbox plugin for gallery, a popup plugin for a reservation form and a sliding jquery for footer. While adding these three plugins, either pop up close button not working or else the colorbox not working. Ive tried all the ways, but no use... im herewith adding the scripts..</p> <p> </p> <pre><code>&lt;link href="02/css/login Popup/popup.css" rel="stylesheet" type="text/css" /&gt; &lt;script type="text/javascript" src="02/js/Login pop_up/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('a.poplight[href^=#]').click(function() { var popID = $(this).attr('rel'); //Get Popup Name var popURL = $(this).attr('href'); //Get Popup href to define size //Pull Query &amp; Variables from href URL var query= popURL.split('?'); var dim= query[1].split('&amp;'); var popWidth = dim[0].split('=')[1]; //Gets the first query string value //Fade in the Popup and add close button $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('&lt;a href="#" class="close"&gt;&lt;img src="02/images/close1.png" class="btn_close1" title="Close Window" alt="Close" /&gt;&lt;/a&gt;'); //Define margin for center alignment (vertical horizontal) - we add 80px to the height/width to accomodate for the padding and border width defined in the css var popMargTop = ($('#' + popID).height() + 80) / 2; var popMargLeft = ($('#' + popID).width() + 80) / 2; //Apply Margin to Popup $('#' + popID).css({ 'margin-top' : -popMargTop, 'margin-left' : -popMargLeft }); //Fade in Background $('body').append('&lt;div id="fade"&gt;&lt;/div&gt;'); //Add the fade layer to bottom of the body tag. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies return false; }); //Close Popups and Fade Layer $('a.close, #fade').live('click', function() { //When clicking on the close or fade layer... $('#fade , .popup_block').fadeOut(function() { $('#fade, a.close').remove(); //fade them both out }); return false; }); }); &lt;/script&gt; &lt;!---Popup plugin ending---&gt; &lt;!---Slider plugin starting---&gt; &lt;script type="text/javascript" src="slide/jquery-1.3.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="slide/jquery.scrollTo.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $('a.panel').click(function () { $('a.panel').removeClass('selected'); $(this).addClass('selected'); current = $(this); $('#wrapper').scrollTo($(this).attr('href'), 800); return false; }); $(window).resize(function () { resizePanel(); }); }); function resizePanel() { width = $(window).width(); height = $(window).height(); mask_width = width * $('.item').length; $('#debug').html(width + ' ' + height + ' ' + mask_width); $('#wrapper, .item').css({width: width, height: height}); $('#mask').css({width: mask_width, height: height}); $('#wrapper').scrollTo($('a.selected').attr('href'), 0); } &lt;/script&gt; &lt;!---Slider plugin ending---&gt; &lt;!---Colorbox plugin starting---&gt; &lt;link rel="stylesheet" href="css/colorbox.css" /&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="plugins/jquery.colorbox.js"&gt;&lt;/script&gt; &lt;script src="plugins/colorbox-main.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="plugins/jquery.colorbox-min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!---Colorbox plugin ending---&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload