Hi,
I have 3 images that I want to rotate when a button is clicked.
image1, image2, image3.
If the image is at image1, then when clicked it should show image2 (and so on, in order of image1, .., image3).
When I am at image3, it should then hide the image, i.e. don't display it.
I need some help with the javascript function to do this, I already have the code for the button click event.
I am passing the toggle() function the jquery object $('myImageID');
$(document).ready(
    function() 
    {
        $('#button1').click( function() { toggleSector( $('#sector1') ) }  ;            
    } 
);
function toggleSector(o)
    {     
         // help!
    }
<div id="sector1"></div>
<input type="button" id="button1" value="Sector 1" />
Update
I have to somehow find the name of the current background image set to the 
<div> where my image is.
Is there a background property to get the image name currently being displayed?