Board Thread:Support Requests - Getting Technical/@comment-3448772-20130311195616/@comment-3448772-20130326224922

Here is the code: var numb = 0; var max = 0; var min = 0;

function maximum(maxi) { max = maxi; }

function plus { if (numb < max) { hideDiv(numb); numb = (numb + 1); showDiv(numb); } }

function minus { if (numb > min) { hideDiv(numb); numb = (numb - 1); showDiv(numb); } }

function hideDiv(numb) { document.getElementById(numb).style.display = "none"; } function showDiv(numb) { document.getElementById(numb).style.display = "block"; }

The code sets the current game (numb), the min (min), and has the max inputted (maxi --> max).


 * Left Button Clicked
 * Hides current image (hideDiv(numb))
 * Decreases game by one
 * Shows new game (showDiv(numb))