Skip to content

Instantly share code, notes, and snippets.

@fantasywind
Last active September 18, 2015 11:05
Show Gist options
  • Save fantasywind/959209cce7848518aec5 to your computer and use it in GitHub Desktop.
Save fantasywind/959209cce7848518aec5 to your computer and use it in GitHub Desktop.
Sizmek Apple Daily Test Formats
<!-- Suooprt Browsers IE 11, Edge, Chrome, Firefox, Safari, Opera -->
<!--
| Format Full Page Opening |
使用說明:
請將 Message Sync, Full Page Opening 放置於廣告版位任意位置,
但順序不得改變,避免複雜的排版造成螢幕大小抓取錯誤的可能。
Door Panel 請直接放置在顯示位置容器中
-->
<!-- Message Sync -->
<script>!function(e){var t=null;e.addEventListener("message",function(e){var a="FULLPAGE_REGISTER",n="EVENT_TOGGLE_FULL_PAGE",r="PANEL_LINE_HEIGHT_FIX";try{var d=JSON.parse(e.data)}catch(s){return!1}switch(d.type){case a:t=document.getElementById("ebBannerIFrame_"+d.data.uid);break;case r:_wrapper=document.getElementById("ebDiv"+d.data.rnd),_wrapper&&(_wrapper.style.lineHeight=0);break;case n:t&&t.contentWindow.postMessage(JSON.stringify({type:n}),"*")}})}(window);</script>
<!-- Full Page Opening -->
<script src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=14631207&PluID=0&w=1&h=1&ord=[timestamp]&ucm=true"></script>
<noscript>
<a href="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=14631207&Page=&PluID=0&Pos=1058549574" target="_blank">
<img src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=14631207&Page=&PluID=0&Pos=1058549574" border=0 width=1 height=1>
</a>
</noscript>
<!-- Door Panel -->
<script src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=14687311&PluID=0&w=150&h=660&ord=[timestamp]&ucm=true&z=5000"></script>
<noscript>
<a href="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=14687311&Page=&PluID=0&Pos=1608220988" target="_blank"><img src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=14687311&Page=&PluID=0&Pos=1608220988" border=0 width=150 height=660></a>
</noscript>
<!--
| Format Banner Expandable |
使用說明:
請將兩部分 Tag 直接放置於廣告顯示版位容器中
順序不得改變
-->
<!-- Expandable Listener -->
<script>window.addEventListener("message",function(e){try{var t=JSON.parse(e.data)}catch(a){return!1}switch(t.type){case"SIZMEK_FIX_LINE_HEIGHT":var n=document.getElementById("ebDiv"+t.data.rnd);n&&(n.style.lineHeight=0);var i=document.getElementById("ebBannerDiv_"+t.data.uid);i&&(i.style.verticalAlign="top");break;case"SIZMEK_PUSH_DOWN_EXPAND":var n=document.getElementById("ebDiv"+t.data.rnd);n&&(n.style.transition="height 0.24s ease-out",n.style.height="450px");var s=document.getElementById("ebBannerIFrame_"+t.data.uid);s&&(s.style.clip="rect(0px 970px 450px 0px)",s.style.transition="height 0.24s ease-out",s.style.height="450px");break;case"SIZMEK_PUSH_DOWN_COLLAPSE":var n=document.getElementById("ebDiv"+t.data.rnd);n&&(n.style.transition="height 0.24s ease-out",n.style.height="90px");var s=document.getElementById("ebBannerIFrame_"+t.data.uid);s&&(s.style.clip="rect(0px 970px 90px 0px)",s.style.transition="height 0.24s ease-out",s.style.height="90px")}});</script>
<!-- Banner Expandable -->
<script src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=14564069&PluID=0&w=970&h=90&ord=[timestamp]&ucm=true&z=5000"></script>
<noscript>
<a href="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=14564069&Page=&PluID=0&Pos=1892943474" target="_blank"><img src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=14564069&Page=&PluID=0&Pos=1892943474" border=0 width=970 height=90></a>
</noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment