jeudi 22 septembre 2016

Randomize background image using button onClick event

I want to randomize the background image when the user clicks a button.

Here's what I have.

Every time the button at the bottom right is cliked, I want to randomize the background image from a set array of externally hosted images.

How can I achieve that? (Without PHP, if possible.)




Aucun commentaire:

Enregistrer un commentaire