Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Updated with user code from fiddle</h2> <hr> <p>Fiddle: <a href="http://jsfiddle.net/RNYwG/1" rel="nofollow">http://jsfiddle.net/RNYwG/1</a> <br/></p> <hr> <p>Javascript:</p> <pre><code>$(function(){ $('.thumb').click(function(){ $('.thumb-hover').removeClass('thumb-hover'); $(this).addClass('thumb-hover'); }); }); </code></pre> <hr> <p>CSS:</p> <pre><code>#thumbnails &gt; .thumb{ background-repeat:no-repeat; background-position:0 -92px; border: 1px solid #999; margin: 10px 0 0 10px; padding: 0; width: 153px; height: 91px; float: left; } #thumbnails &gt; .thumb-hover, .thumb:hover{ background-position: 0 0; cursor: pointer; } </code></pre> <hr> <p>HTML:</p> <pre><code>&lt;div id="thumbnails"&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/1_thumb.jpg');" onclick="mySwipe.slide(0, 700)"&gt;&lt;/div&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/2_thumb.jpg');" onclick="mySwipe.slide(1, 700)"&gt;&lt;/div&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/3_thumb.jpg');" onclick="mySwipe.slide(2, 700)"&gt;&lt;/div&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/4_thumb.jpg');" onclick="mySwipe.slide(3, 700)"&gt;&lt;/div&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/5_thumb.jpg');" onclick="mySwipe.slide(4, 700)"&gt;&lt;/div&gt; &lt;div class="thumb" style="background-image:url('images/slideshow/6_thumb.jpg');" onclick="mySwipe.slide(5, 700)"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre>
 

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