Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 109
  • Last Modified:

image display random

http://jsfiddle.net/sevensnake/sx9rw924/

is there a way to have multiply images display like the squares. It would be a random image each time it display.
0
Seven price
Asked:
Seven price
  • 2
  • 2
1 Solution
 
Rainer JeschorCommented:
Hi,
here we go:
http://jsfiddle.net/EE_RainerJ/44b7y3q8/

I used an array of images - if you have numbered images from 1 to xx on your server you might generate the src file name dynamically.

HTH
Rainer
0
 
Seven priceFull StackAuthor Commented:
Thanks, ok can I decide if I want them in a border surrounded in a div and they just appear in the div. also it stops running, it is not running continously
0
 
Rainer JeschorCommented:
Hi,
I have a counter to stop after 3 rounds for easier debugging, so this can easily be removed.
The div should also be no problem in general - it is just about getting the correct height and width.
Do your images have all the same heigth and width?
0
 
Seven priceFull StackAuthor Commented:
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now