Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2008, 07:05 PM   PM User | #1
gencoglu4
New Coder

 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 1 Time in 1 Post
gencoglu4 is an unknown quantity at this point
Question printing images on the screen !!

Hi,
I wonder if is it possible to display many copies of one image at different position on the screen..? I want to use setInterval() and let my function produce one image at a time(say 1 second each) .To make it appear at different position I will use Math.random()...
any idea ?
Thanks
gencoglu4 is offline   Reply With Quote
Old 01-03-2008, 09:00 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
If you set the style on the new image tags you are adding and use position:absolute then you just need to select random top and left positions (probably in pixels) to decide where to display each new image.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 01-03-2008, 09:12 PM   PM User | #3
gencoglu4
New Coder

 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 1 Time in 1 Post
gencoglu4 is an unknown quantity at this point
Hi felgall,
Could you please give a working example on that ?
Thanks
gencoglu4 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:49 AM.


Advertisement
Log in to turn off these ads.