Skip to content

Instantly share code, notes, and snippets.

@nrrrdcore
Created Apr 28, 2014
Embed
What would you like to do?
script language="javascript"
// random number between 1 and 3
document.getElementById("imgRand").src = "images/hero/"+imageCounter+".jpg";
script language="javascript"
if(localStorage['imageCounter'])
localStorage['imageCounter']++
else
localStorage.setItem('imageCounter', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment