Note that there are some explanatory texts on larger screens.

plurals
  1. POPrev nex buttons on a slide show.
    text
    copied!<p>I have the current code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $('.showcase-content .description').jScrollPane(); $(".beericon").click(function() { var imgnumber = parseInt($(this).attr('id').replace("imglink", "")); var move = -($("#img"+imgnumber).width() * (imgnumber - 1)); $("#img_box").animate({ left: move }, 500); $("#beerview_icons").find("div").removeAttr("style"); $("#imglink"+imgnumber).css("background-position", "0px -74px"); return false; }); }); &lt;/script&gt; </code></pre> <p>and it applies to:</p> <pre><code>&lt;div id="img_container"&gt; &lt;div id="img_box"&gt; &lt;img id="img1" src="../images/lightbox_brew_photos/cutthroat.png"/&gt; &lt;img id="img2" src="../images/beer_in_glasses/Cutthroat.png"/&gt; &lt;img id="img3" src="../images/lightbox_brew_photos/Cutthroat-6-Pack.png" style="margin-top:290px;"/&gt; &lt;img id="img4" src="../images/lightbox_brew_photos/Cutthroat-12-Pack.png" style="margin-top:335px;"/&gt; &lt;div style="clear:both;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="beerview_icons"&gt; &lt;div class="beericon" id="imglink1" style="background-position:0px -74px;"&gt;&lt;/div&gt; &lt;div class="beericon" id="imglink2"&gt;&lt;/div&gt; &lt;div class="beericon" id="imglink3"&gt;&lt;/div&gt; &lt;div class="beericon" id="imglink4"&gt;&lt;/div&gt; &lt;br class="clearfloat" /&gt; &lt;/div&gt; </code></pre> <p>Is there a way to ammend the js so that it's a basic previous next nav? I have to add more images and it's a smaller space for thumbs. Figured it'd be easier to try and write some thing than redo it with a different slide show. </p>
 

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