For pure JS calls, add them at the right position.
<! -- Homepage full screen start -->
<Center>
<Script language = "JavaScript">
<! --
Syfs = true
VaR adinterpath = "/AD/uploadadpic/topfullscreen/qp.jpg"
If (document. All ){
// This Is A 4.x browser, no?
Document. Write ('<scri' + 'pt Language = "javascript1.2 "');
Document. writeln ('src = "JS/topfullscreen. js"> </scr '+ 'ipt'> ');
}
// -->
</SCRIPT>
<Div id = "hiddenlayer" style = "display: none; Height: 500px;">
<Script language = "JavaScript">
<! --
If (getsglu ){
Expandableiframe = '<IFRAME id = "fsframe" width = 760 Height = 500 noresize scrolling = No frameborder = 0 marginheight = 0 marginwidth = 0> </iframe> ';
Document. Write (expandableiframe );
}
// -->
</SCRIPT>
</Div>
<! -- Homepage full screen ended -->
Save the following code as topfullscreen. js
VaR ads_agt = navigator. useragent. tolowercase ();
VaR ads_is_major = parseint (navigator. appversion );
VaR ads_is_ie = (ads_agt.indexof ("MSIE ")! =-1) & (ads_agt.indexof ("Opera") =-1) & (ads_agt.indexof ("omniweb") =-1 ));
VaR ads_is_ie3 = (ads_is_ie & (ads_is_major <4 ));
VaR ads_is_ie4 = (ads_is_ie & (ads_is_major = 4) & (ads_agt.indexof ("MSIE 5") =-1) & (ads_agt.indexof ("MSIE 6 ") =-1 ));
VaR ads_is_ie4up = (ads_is_ie & (ads_is_major> = 4 ));
VaR ads_is_ie5 = (ads_is_ie & (ads_is_major = 4) & (ads_agt.indexof ("MSIE 5.0 ")! =-1 ));
VaR ads_is_ie5up = (ads_is_ie &&! Ads_is_ie3 &&! Ads_is_ie4 );
VaR ads_is_ie5_1_macbeta = (ads_is_ie & (ads_agt.indexof ("Mac ")! =-1) & (ads_agt.indexof ("5.1b ")! =-1 ));
VaR ads_is_nav = (ads_agt.indexof ('mozilla ')! =-1) & (ads_agt.indexof ('spoofer ') =-1)
& (Ads_agt.indexof ('compuble ') =-1) & (ads_agt.indexof ('Opera') =-1)
& (Ads_agt.indexof ('webtv') =-1 ));
VaR ads_is_nav6 = (ads_is_nav & (ads_agt.indexof ("netscape6 ")! =-1) & (ads_agt.indexof ("6.1") =-1 ));
VaR ads_is_nav6up = (ads_is_nav &&! Ads_is_nav4 &&! Ads_is_nav3 &&! Ads_is_nav2 );
VaR ads_is_nav6_1 = (ads_is_nav & (ads_agt.indexof ("netscape6 ")! =-1) & amp; (ads_agt.indexof ("6.1 ")! =-1 ));
VaR ads_is_nav6_1up = (ads_is_nav &&! Ads_is_nav6 &&! Ads_is_nav4 &&! Ads_is_nav3 &&! Ads_is_nav2 );
Getsglu = (ads_is_ie5up &&! Ads_is_ie5_1_macbeta) | ads_is_nav6_1up );
// Function changediv (depth)
//{
// Divall. style. zindex = depth
//}
Function changediv ()
{
Document. getelementbyid ('hiddenlay'). style. Display = "Block ";
Document. getelementbyid ('fsframe '). src = adinterpath;
SetTimeout ("hidediv ()", 5000)
}
Function hidediv ()
{
Document. getelementbyid ('hiddenlay'). style. Display = "NONE ";
Sytag = 2;
}
Function showfull ()
{
SetTimeout ("changediv ()", 2000 );
}
Showfull ()