I've got already one script that is toggling between every of span ids i've listed below adding class active and removing it so only 1 span id element is visible.
<div id="b_pager">
<span id="p1" class="active"></span>
<span id="p2"></span>
<span id="p3"></span>
<span id="p4"></span>
<span id="p5"></span>
</div>
Now what i want to do, is make two buttons (sort of arrows) that will allow to navigate throught span ids.
Example: If span id p3 is visible and arrow right -> is pressed automatically go to span id p4. If pressed arrow left <- go back to p3, and so on.
Any one can help? Thanks in advance.
Matt