Hello, so I have a little javascript fade in and out with two pictures but whenever i load the page, since the bottom image loads first you can see it which i dont want to happen. Is there any way I can make it so that my images dont show up till they load completely or something.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Why don't you just use CSS to set the images display property to "none" or "hidden?"
Then you can give them both ID's and set the window.onload event as a basis to make them visible. This event shouldn't trigger until both pages are completely downloaded (or an error has occurred).
Bookmarks