Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i get a page to be loaded with somethng before i get a new page

Status
Not open for further replies.

aneal

Programmer
Sep 3, 2000
2
US
How do I get to load a page With something(for example an applet) before a next page loads automatically?
EXAMPLE
i want a graphic to be displayed on a page before i get the main page to be loaded!!? [sig][/sig]
 
Off the top of my head (though I know there are better ways to do it - hopefully someone will see this post and educate me :)I )

here goes...

Code:
<html>
<body onLoad=&quot;fnDisplay()&quot;
<div id=divGraphic name=divGraphic style=&quot;visibility:visible;position:absolute;left:0;top:0&quot;>
 Your graphic goes here
</div>
<div id=divBody name=divBody style=&quot;visibility:hidden;position:absolute;left:0;top:0&quot;>
 Your other stuff goes here<br>
 and here<br>
 and here...
</div>
</body>
</html>
<script language=&quot;javascript&quot;>
function fnDisplay(){
 alert(&quot;Finished building body. Display it and get rid of graphic.&quot;);
 divGraphic.style.visibility='hidden';
 divBody.style.visibility='visible';
}
</script>

This works as is on IE. Modified it could work with NN.

Rob [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top