RESOLVED- Load rnd image on click without preloading
I'm pretty sure this is easy to do someone that knows javascript. I've have been looking at examples, but I just can't seem to accomplish my goal.
I have a growing series of images named in sequence starting at 1.jpg. Right now just 1 - 30. I'd like to load a random image 1-30 by clicking the image without reloading the entire page. I plan to have more pictures later, so a function that generates a random number based on how many images I have would be nice.
I would appreciate help I get in any form (links, examples, abusive language, etc). Thank you.