CodeI collected it a long time ago and forgot the original source and how much I modified. If there is any infringement, please contact me.
< Html >
< Head >
< Title > </ Title >
< Script Type = "Text/JavaScript" >
VaR URL = ' Http://www.google.co.uk/search? Hl = en & Q = Asp.net & meta = ' ; // The next page you want to display
</ Script >
< Style >
. Loading-indicator {
Font-size : 8pt ;
Background-Image : URL (../images/loading/loading.gif) ;
Background-repeat : No-repeat ;
Background-Position : Top left ;
Padding-left : 20px ;
Height : 18px ;
Text-align : Left ;
}
# Loading {
Position : Absolute ;
Left : 45% ;
Top : 40% ;
Border : 3px solid # b2d0f7 ;
Background : White URL (../images/loading/block-bg.gif) Repeat-x ;
Padding : 10px ;
Font : Bold 14px verdana, tahoma, Helvetica ;
Color : #003366 ;
Width : 180px ;
Text-align : Center ;
}
</ Style >
< Div ID = "Loading" >
< Div Class = "Loading-indicator" >
Page loading
</ Div >
</ Div >
</ Head >
< Body Onload = "Location. href = URL ;" Style = "Overflow: hidden; overflow-Y: hidden" >
</ Body >
< Script >
If (Document. layers ){
Document. Write ( ' <Layer src =" ' + URL + ' "Visibility =" hide "> </layer> ' );
}
Else If (Document. All | Document. getelementbyid ){
Document. Write ( ' <IFRAME src =" ' + URL + ' "Style =" visibility: hidden; "> </iframe> ' );
}
Else {
Location. href = URL;
}
</ Script >
</ Html >