Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy are all images be changed to the first input
    primarykey
    data
    text
    <pre><code>&lt;script type="text/javascript"&gt; var interval; $('#105').mouseover(function() { mouseOver('105'); }); $('#105').mouseout(function() { mouseOut('105') ;}); function mouseOver(videoId) { var num = 2; interval = setInterval(function() { $('#'+videoId).attr('src', '../thumbs/268255615/268255615.'+num+'.jpg'); if(num == 12) { num = 1; } else { num++; }},500); } function mouseOut (videoId) { clearInterval(interval); $('#'+videoId).attr('src', '../thumbs/268255615/268255615.1.jpg'); } &lt;/script&gt; &lt;script type="text/javascript"&gt; var interval; $('#104').mouseover(function() { mouseOver('104'); }); $('#104').mouseout(function() { mouseOut('104') ;}); function mouseOver(videoId) { var num = 2; interval = setInterval(function() { $('#'+videoId).attr('src', '../thumbs/325082397/325082397.'+num+'.jpg'); if(num == 12) { num = 1; } else { num++; }},500); } function mouseOut (videoId) { clearInterval(interval); $('#'+videoId).attr('src', '../thumbs/325082397/325082397.1.jpg'); } &lt;/script&gt; </code></pre> <p>The code above is a JavaScript image rotator. The problem with the code is that the last image path always overwrites the image paths before it.</p> <p>For example if image <code>path one = thumbs/imagea.jpg</code> and if <code>path two = thumbs/imageb.jpg</code> path one ("thumbs/imagea.jpg")then becomes path two on hover becomes ("thumbs/imageb.jpg") </p> <p>This script worked at one point trying to figure out what is wrong or been changed any ideas?</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