Skip to content

Instantly share code, notes, and snippets.

@seanrclayton
Created April 29, 2014 18:55
Show Gist options
  • Save seanrclayton/11408828 to your computer and use it in GitHub Desktop.
Save seanrclayton/11408828 to your computer and use it in GitHub Desktop.
Something
<head>
<script>
$(document).ready(function(){
array = ['image1.png','image2.png','image3.png']
i = 0
activeimage = array[0]
$('#slideshow').find('img').attr("src", "/"activeimage);
});
</script>
</head>
<body>
<div id ="slideshow"> <img src=""> </div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment