Jump to content

Preload and fadein


Fmdpa

Recommended Posts

You preload images with the Image constructor:var myImage = new Image();myImage.src = "something.gif";This can also work conveniently with an array:var myImageArray = new Array();myImageArray[0] = new Image();// etc.Fade-ins are a little more complicated. CSS3 promises a consistent opacity property that can be controlled with different values, but many browsers have their own version of it. So usually it takes about three statements to set opacity and catch all the major browsers. http://www.google.com/search?q=css+opacity

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...