Solved

image display random

Posted on 2015-01-28
4
104 Views
Last Modified: 2015-01-28
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
Comment
Question by:sevensnake77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 40575983
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
 
LVL 9

Author Comment

by:sevensnake77
ID: 40576007
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
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 40576073
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
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 40576098
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question