![]() |
|
|
|
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Simple Javascript Pre-loader
Step 1: In the <HEAD> tags, place the following code: HTML Code:
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function clearPreloadPage() { //DOM if (document.getElementById){ document.getElementById('prepage').style.visibility='hidden'; }else{ if (document.layers){ //NS4 document.prepage.visibility = 'hidden'; } else { //IE4 document.all.prepage.style.visibility = 'hidden'; } } } // End --> </SCRIPT> Change the <body> tag into: HTML Code:
<BODY onLoad="clearPreloadPage();">
Straight after the new Body tag, place the following code: HTML Code:
<div id="prepage" style="position:absolute; font-family:arial; font-size:16; left:0px; top:0px; background-color:white; layer-background-color:white; height:100%; width:100%;z-index:500;"> <table width=100%><tr><td>Loading ... ... Please wait!</td></tr></table> </div>
__________________
HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
|
||||
|
Nice post, thanks for letting us know
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|