PDA

View Full Version : Automatically Load image on page load



scrader
12 Mar 2010, 11:43 PM
Hello

I want to automatically display an image after page load but am unsure how to do it.

Here is what i want:

- After the page loads display image over text in center of page
- When user clicks anywhere in the page, image closes and page is displayed

Thanks!

_morpheus1
13 Mar 2010, 05:24 AM
Well the thing you required can be done using java script. As far as display an image over the page can be easily done . The event you will use is onLoad(). You can do this
1. Place a div on a page assign and id="LoadImage1" and using javascript and DOM pick the div id and assign the image location to it by img tag.
This was the general idea how the thing will done . Further you can please explore from the google, Alot of examples are there for handling this!

Regards