I have been trying to figure out how to re-arrange the order of the photos. But they must correspond with the correct function. I can't seem to figure it out. If you have three photos like this:
<img id='slot1' src="img1.jpg" onClick="function1();">
<img id='slot2' src="img2.jpg" onClick="function2();">
<img id='slot3' src="img3.jpg" onClick="function3();">
I can re-order the actually image, but how do I re-order the image and its associated function?
For example, when clicking img1.jpg, it should always run function1(), no matter what order they are in. Thanks
Edit: Originally, I didn't post the code properly.