Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Replace your <code>&lt;script&gt;</code> contents with the following:</p> <pre><code>$( document ).ready(function() { var i = 0; var images = new Array(); /* $( document ).ready(function() { document.write("well this be working"); });*/ function advanceLeft() { if (i == 0) { return false; } else { i = i - 6; for (var x = i; x &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } } function advanceRight() { if (i == images.length - 1) { return false; } else { i = i + 6; for (var x = i; x &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } } function galleryNavButton(newId) { i = i - ((i - newId) * 6); for (var x = i; i &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } }); </code></pre> <p>Example using jQuery to handle clicks: echo '&#8658;'; Becomes: echo '&#8658;';</p> <p>And in your JQuery script you would just do:</p> <pre><code>$( document ).ready(function() { var i = 0; var images = new Array(); /* This is how you would handle the click */ $('#rightButton').click(function(){ advanceRight(); }); function advanceLeft() { if (i == 0) { return false; } else { i = i - 6; for (var x = i; x &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } } function advanceRight() { if (i == images.length - 1) { return false; } else { i = i + 6; for (var x = i; x &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } } function galleryNavButton(newId) { i = i - ((i - newId) * 6); for (var x = i; i &lt;= 5; x++) { document.getElementById(x).src = images[x]; return true; } } }); </code></pre> <p>Hope that helps</p>
    singulars
    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