This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to make an image to appear and fade gradually when a web page is opened? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to make an image to appear and fade gradually when a web page is opened?" Watch "How to make an image to appear and fade gradually when a web page is opened?" New topic
Author

How to make an image to appear and fade gradually when a web page is opened?

Anu satya
Ranch Hand

Joined: Mar 17, 2005
Posts: 146
hai aLL,
I have a web page with many hyperlinks. I want to inform the user about these hyperlinks. For that purpose, i want to load an image-informing about this hyperlinks, as soon as this web page is opened and fade gradually(after page is completely loaded).

Is there any way to do this? Can anyone please help?



With Regards,
Anu
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

You can use window.setTimeout or window.setInterval to control the animation, and use CSS to modify the opacity of the image. Be aware that IE does not support the opacity CSS element and you need to use the proprietary filter element.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to make an image to appear and fade gradually when a web page is opened?
 
Similar Threads
customize Eclipse About dialog's about text
Help needed to solve hyperlink issue when page comming from different source
How blurred image effect can be achieved for my site images?
How to fade an image?
WA #2 ..... word association