Note that there are some explanatory texts on larger screens.

plurals
  1. POSame plugin to be used twice in a page without error
    primarykey
    data
    text
    <p>I have a page that uses "Mac style bouncing menus" once on the left side panel and then again in the footer. Basically it's just the same plugin with different images.</p> <p>Either one only works, even I tried <code>jQuery.noConflict(true)</code> , doesn't help.</p> <p>My question is if we were to repeat the same plugin in a page ,what need to be done to avoid the conflict? from my understanding if various plugin to be used,<code>jQuery.noConflict</code> can solve it but for the same type of <code>plugin</code>?</p> <pre><code>test4.php &lt;!DOCTYPE html&gt; &lt;!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Test4&lt;/title&gt; &lt;link rel="stylesheet" href="css/style1.css" type="text/css"&gt; &lt;link rel="stylesheet" href="css/side_style.css" type="text/css"&gt; &lt;script src="js/menuv2.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!--&lt;link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" /&gt;--&gt; &lt;link href="css/bootstrap.css" rel="stylesheet" /&gt; &lt;link href="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.css" rel="stylesheet" /&gt; &lt;link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet" /&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.js"&gt;&lt;/script&gt; &lt;script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"&gt;&lt;/script&gt; &lt;script src="js/bootstrap-modalmanager.js"&gt;&lt;/script&gt; &lt;script src="js/bootstrap-modal.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/interface.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body id='superstar'&gt; &lt;div class='left'&gt; &lt;aside&gt; &lt;img src="hooha_images/logo_small.png" class="expand"&gt; &lt;/aside&gt; &lt;aside class="ontop"&gt; &lt;?php include ('sidebar.php'); ?&gt; &lt;/aside&gt; &lt;aside&gt; &lt;aside&gt; &lt;?php include('bottom_left.php');?&gt;//1st Mac styled menu &lt;/aside&gt; &lt;/div&gt; &lt;div class="wrap"&gt; &lt;div class='middle'&gt; &lt;font color='#fff'&gt;&lt;center&gt;This is the Shop With Us Page of Indonesia&lt;/center&gt;&lt;/font&gt; &lt;/div&gt; &lt;div class="footer"&gt; &lt;?php include ('footer.php');//2nd Mac styled menu ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='right'&gt; &lt;?php include 'top-right.php'; include 'side-ad.php'; ?&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>bottom-left.php</p> <pre><code>&lt;div class="dock" id="dock1"&gt; &lt;div class="dock-container1"&gt; &lt;a class="dock-item2" href="index.php"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;img src="images/home.png" alt="home" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="about-intro.php"&gt;&lt;span&gt;About Us&lt;/span&gt;&lt;img src="images/portfolio.png" alt="contact" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="contact-us.php"&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;img src="images/email.png" alt="portfolio" /&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--dock menu JS options --&gt; &lt;script type="text/javascript"&gt; $(document).ready( function() { $('#dock2').Fisheye( { maxWidth: 60, items: 'a', itemsText: 'span', container: '.dock-container2', itemWidth: 40, proximity: 80, alignment : 'left', valign: 'bottom', halign : 'center' } ) } ); &lt;/script&gt; </code></pre> <p>footer.php</p> <pre><code>&lt;div class="dock" id="dock2"&gt; &lt;div class="dock-container2"&gt; &lt;a class="dock-item2" href="index.php"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;img src="images/home.png" alt="home" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="about-intro.php"&gt;&lt;span&gt;About Us&lt;/span&gt;&lt;img src="images/portfolio.png" alt="contact" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="contact-us.php"&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;img src="images/email.png" alt="portfolio" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="index.php"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;img src="images/home.png" alt="home" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="about-intro.php"&gt;&lt;span&gt;About Us&lt;/span&gt;&lt;img src="images/portfolio.png" alt="contact" /&gt;&lt;/a&gt; &lt;a class="dock-item2" href="contact-us.php"&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;img src="images/email.png" alt="portfolio" /&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--dock menu JS options --&gt; &lt;script type="text/javascript"&gt; //var $=jQuery.noConflict(true); $(document).ready( function() { $('#dock2').Fisheye( { maxWidth: 60, items: 'a', itemsText: 'span', container: '.dock-container2', itemWidth: 40, proximity: 80, alignment : 'left', valign: 'bottom', halign : 'center' } ); } ); &lt;/script&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.
    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