User:Echoblast53/JS Slide

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) { $("#" + numb).css("display", "none"); } function showDiv(numb) { $("#" + numb).css("display", "block"); }