Full-screen advertisement code and instructions for use from Sina

Source: Internet
Author: User

<! -- Full screen start --> <! -- Interstitial begin -->
<SCRIPT language = JavaScript>
<! --
// Time Calculation
SYfullscreen = false;
Today = new Date ();
Function testdate ()
{
If (today. getMonth () = '2') // if it is March
{
If (today. getDate () = '15') // whether it is 15 days
{
<! -- 725A3E8355CB --> // full screen start
If (today. getHours ()> = '14' & today. getHours () <'15 ')
{
AdInterPath = 'HTTP: // ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html?
Http://sina.allyes.com/main/adfclick?
Db = sina & bid = 73474,105318, 105433 & cid = 97875, 0 & sid = 3716 & advid = 14291 & camid = & show = ignore & url = http: // 61.49.38.5/tzhddoc/index. ht
M $ {}/upload/2007315152115702.jpg '; SYfullscreen = true

} <! -- $ Huiyan/14:00:01 ~ 2007-3-15 14:59:59/B $ -->
<! -- 4774607C08FD --> // full screen start
If (today. getHours ()> = '8' & today. getHours () <'9 ')
{
AdInterPath = 'HTTP: // ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html?
Http://sina.allyes.com/main/adfclick?
Db = sina & bid = 73474,105318, 105433 & cid = 97875, 0 & sid = 3716 & advid = 14291 & camid = & show = ignore & url = http: // 61.49.38.5/tzhddoc/index. ht
M ${}/upload/2007315152115903. JPG '; SYfullscreen = true

} <! -- $ Raowei/2007-3-15 ~ Do not withdraw in two days, thank you! /B $ -->
<! -- 35F6B37FB5E4 --> // start from full screen
If (today. getHours ()> = '16' & today. getHours () <'17 ')
{
AdInterPath = 'HTTP: // ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html?
Http://sina.allyes.com/main/adfclick?
Db = sina & bid = 70483,101960, 102064 & cid = 94712, 0 & sid = 3254 & advid = 13506 & camid = & show = ignore & url = http://www.sagitar.com.cn/$ {}
/Upload/2007315152115985. GIF '; SYfullscreen = true

} <! -- $ Limeng/16:00:01 ~ 2007-3-15 16:59:59/B $ -->
<! -- C5EB1D51E54C --> // start from full screen
If (today. getHours ()> = '17' & today. getHours () <'18 ')
{
AdInterPath = 'HTTP: // ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html?
Http://sina.allyes.com/main/adfclick?
Db = sina & bid = 73214,104975, 105088 & cid = 97562, 0 & sid = 3705 & advid = 14237 & camid = & show = ignore & url = http://adclient.dentsu.com.cn/html
. Ng/adspec = Flash & adtype = single_dui_lian & affiliate = sina & campaignid = 842 & channel = aoyun_page & log = 0 milliseconds. styles = clickcmd? $ {}
/Upload/2007315152115273.jpg '; SYfullscreen = true

} <! -- $ Limeng/17:00:01 ~ 2007-3-15 17:59:59/B $ -->
<! -- D4C112442CAF --> // full screen start
If (today. getHours ()> = '18' & today. getHours () <'19 ')
{
AdInterPath = 'HTTP: // ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html?
Http://sina.allyes.com/main/adfclick?
Db = sina & bid = 73271,105059, 105175 & cid = 97643, 0 & sid = 3254 & advid = 14234 & camid = & show = ignore & url = http://www.sagitar.com.cn/olympus $
{}/Upload/2007315152115162.jpg '; SYfullscreen = true

} <! -- $ Limeng/2007-3-15 ~ 2007-3-15/B $ -->
}}}
Testdate ();
Var MSIE = navigator. userAgent. indexOf ("MSIE ");
Var handler = navigator. userAgent. indexOf ("Opera ");
If (SYfullscreen = true)
{
If (document. all & MSIE! =-1 & Signature =-1 ){
// This is a 4.x browser, no?
Function changediv (){
Document. getElementById ('hiddenlay'). style. display = "block ";
Document. getElementById ('interstitialframework'). src = adInterPath;
SetTimeout ("hidediv ()", 5000)
}
Function hidediv (){
Document. getElementById ('hiddenlay'). style. display = "none ";
SYtag = 2;
}
Function showfull (){
SetTimeout ("changediv ()", 2000 );
}
Showfull ();
}
}
// -->
</SCRIPT>
<SCRIPT language = JavaScript>
<! --
If (SYfullscreen = true)
{
If (document. all & MSIE! =-1 & Signature =-1 ){
// This is a 4.x browser, no?
Document. write ('<div id = "hiddenLayer" style = "display: none; height: pixel PX;"> ');

ExpandableIframe = '<IFRAME id = "interstitialframe" width = 750 HEIGHT = 450 noresize scrolling = No FRAMEBORDER = 0
MARGINHEIGHT = 0 MARGINWIDTH = 0> </IFRAME> ';
Document. write (expandableIframe );

}
Document. write ('</div> ');
}
// -->
</SCRIPT>
<! -- Interstitial end --> <! -- Full screen end -->
Note: Sina displays different advertisements based on the time period, and then dynamically controls iframe to display advertisements.
There is an important file
Http://ad4.sina.com.cn/sina/ AE /ad_src/fullscreen/fullscreenv2.html
The Code is as follows, with $ {} as the delimiter, using the ArrayCopy codeThe Code is as follows: <Meta http-equiv = "Content-type" content = "text/html; charset = gb2312">
<Title> Sina ads </title>
</Head>
<Body bgcolor = # ffffff topmargin = 0 marginheight = 0 leftmargin = 0 marginwidth = 0>
<Center>
<Script language = javascript>
Var par = location. search. substr (1 );
Var ary = par. split ("$ {}");

Document. writeln ("<a href = '" + ary [0] + "'target = _ blank> </a> ");
</Script>
</Center>
</Body>

Ary [0] is the connection address.
Ary [1] is the image address

Related Article

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.