Time remaining:
Randomly Shuffle Images On Page Load

Programming
Tutor: None Selected Time limit: 0 Hours

I'm trying to get the 8 images located in the div class "homeposts" id "shuffle" to shuffle randomly on page load but I can't seem to target them correctly. I've put the code into http://cssdeck.com/labs/jv2ll3jm. At the bottom of the html was a script I found from another fellow user to shuffle the divs. Any help would be much appreciated!

Nov 30th, -0001
hi i can help you in this assignmnet
Jul 14th, 2013

one idea is to name the images as image1,image2,image3,......image8.

then declare a variable and assign it a random value between 1&8. 

at page load call the function to assign this variable a value. and then load  image as

src="image"+variable.

let me know if there is any problem in this i will provide you a sample source code.

Jul 15th, 2013

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 30th, -0001
...
Nov 30th, -0001
Feb 21st, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer