Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript Variable Conflict
    primarykey
    data
    text
    <p>I have two scripts on the same page, both running sliders, and the first breaks the second, specifically the hover event, only within IE7 and IE8. I am wondering if there is a conflict with variables between the two scripts. Here is the first:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function(){ $('#slider') .anythingSlider({ theme : "minimalist-square", expand : false, resizeContents : true, buildArrows : true, buildNavigation : true, toggleArrows : true, autoPlay : true }); }); &lt;/script&gt; </code></pre> <p>And here is a portion of the second script, which may be causing the error?</p> <pre><code>&lt;script type='text/javascript'&gt; $(function() { slider = $('.artist-homepage-slider .artist-wrapper'); handle = $('.homepage-slider .handle'); //productwidth = 20; productwidth = 248; products = $('.artist-homepage-slider .product'); productscount = products.length; images = products.find('img'); productswidth = 0; . . . . function slideleft() { v = s.slider('option', 'value'); if (v &gt; 0) v -= 50; ui.value = v; s.slider('option', 'value', v); f = s.slider('option', 'slide'); f(null,ui); } function slideright() { v = s.slider('option', 'value'); if (v &lt; fullWidth) v += 50; ui.value = v; s.slider('option', 'value', v); f = s.slider('option', 'slide'); f(null,ui); } }); </code></pre> <p></p> <p>Could it be the declaration of slider in the second script causing the problem? There are other scripts called upon within other files, could one of these be causing the problem? In IE7 and IE8 the slider shows up, it's just that the sliding function doesn't work. What is the fundamental difference between IE7 and 8, and the rest of the browsers that would cause this behavior?</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.
 

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