Solved

image display random

Posted on 2015-01-28
4
95 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

776 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