Giant ad effects at the top of the web page

Source: Internet
Author: User
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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.