Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to use multiple scripts from different sources in one page?
    primarykey
    data
    text
    <p>Good evening,</p> <p>I'm having a problem concerning scripts, i couldn't manage to get two scripts working at the same time, on my page I have a 2 scripts each is referenced to a different jquery file, the problem is when i run the page just one of them will work, if I rearrange the place of the scripts (one above the other) the second one will run.</p> <p>I will appreciate it if anyone could help me with this issue ...</p> <p>here is my scripts:</p> <pre><code>&lt;link rel="stylesheet" type="text/css" href="jquery_imgzoom/css/imgzoom.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="orbit/orbit.css" /&gt; &lt;script src="orbit/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="orbit/jquery.orbit.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript" &gt; $(window).load(function() { $('#featured').orbit(); }); &lt;/script&gt; &lt;script type="text/javascript" src="jquery_imgzoom/scripts/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jquery_imgzoom/scripts/jquery.imgzoom.pack.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $('img.thumbnail').imgZoom(); </code></pre> <p>}); </p> <p>and the markup:</p> <pre><code>&lt;div id="featured"&gt; &lt;img src="orbit/img1.jpg" alt="..." /&gt; &lt;img src="orbit/img2.jpg" alt="..." /&gt; &lt;/div&gt; &lt;a href="jquery_imgzoom/scripts/pic1_thum.jpg"&gt;&lt;img class="thumbnail" src="jquery_imgzoom/scripts/pic1.jpg" alt="Picture1r" /&gt;&lt;/a&gt; &lt;a href="jquery_imgzoom/scripts/pic2_thumb.jpg"&gt;&lt;img class="thumbnail" src="jquery_imgzoom/scripts/pic2.jpg" alt="Picture2" /&gt;&lt;/a&gt; </code></pre> <p>I have tried to embed the SRCs in one script and move the two functions to that script tag, but nothing seems to be good !!! </p>
    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.
    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