Advertisement
Guest User

Interstitial Code

a guest
Dec 18th, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. <script type="text/javascript">
  2. function closeBrowserOverlay () {
  3. document.getElementById('browserOverlay').style.display = 'none';
  4. document.getElementById('browserOverlay-container').style.display = 'none';
  5. //Destroy Flash object
  6. var ref = document.getElementById("OAS_RMF_%%POS%%_FLASH");
  7. document.getElementById('inter-ad').removeChild(ref);
  8. }
  9. </script>
  10.  
  11. <style type="text/css" media="screen" space="preserve">
  12. #browserOverlay {
  13. background: #333333;
  14. bottom:0px;
  15. display:block;
  16. height:100%;
  17. overflow:hidden;
  18. position:fixed;
  19. text-align:center;
  20. width:100%;
  21. z-index:999995;
  22. left: 0px;
  23. opacity:0.6;
  24. filter:alpha(opacity=60); /* For IE8 and earlier */
  25.  
  26. }
  27.  
  28. #browserOverlay-container {
  29. bottom:0px;
  30. display:block;
  31. height:100%;
  32. overflow:hidden;
  33. position:fixed;
  34. text-align:center;
  35. width:100%;
  36. z-index:999995;
  37. left: 0px;
  38.  
  39. }
  40.  
  41. .browserOverlayImage {
  42. border:0pt none;
  43. line-height:0px;
  44. z-index:999999;
  45. width: [width of interstitial]px;
  46. height: [Height of interstitial]px;
  47. position: relative;
  48. text-align: center;
  49. margin-right: auto;
  50. margin-left: auto;
  51. top: 8em;
  52.  
  53. }
  54. </style>
  55.  
  56.  
  57. <div id="browserOverlay"></div>
  58.  
  59.  
  60. <div id="browserOverlay-container">
  61. <div class="browserOverlayImage">
  62.  
  63.  
  64.  
  65. <table id="Table_01" width="[Width you would like in pixels]" border="0" cellspacing="0" cellpadding="0">
  66. <tr>
  67. <td valign="bottom">
  68. <div><a href="javascript:void(0);" onClick="closeBrowserOverlay ();" title="Close Me"><img src="[Close button image]" alt="" border="0" align="right"></a></div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td>
  73. <a href="%%CLICK_URL_UNESC%%[Click URL]" target="_blank"><img src="%%VIEW_URL_UNESC%%[Image URL]" width=[Width] style="border: 0px" /></a>
  74.  
  75. <IMG SRC="[Impression track here if you want]" BORDER=0 WIDTH=1 HEIGHT=1 ALT="">
  76. </td>
  77. </tr>
  78.  
  79. </table>
  80.  
  81.  
  82. </div>
  83. </div>
  84.  
  85. <script type="text/javascript">
  86. var t=setTimeout("closeBrowserOverlay();",[length before auto close in Miliseconds]);
  87. document.getElementsByTagName('body')[0].appendChild(document.getElementById('browserOverlay')); //Move to top
  88. document.getElementsByTagName('body')[0].appendChild(document.getElementById('browserOverlay-container')); //Move to top
  89. </script>
  90.  
  91. <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  92. <script type='text/javascript'>
  93. jQuery('document').ready(function($){
  94. $("#OAS_RMF_%%POS%%_FLASH").appendTo('#inter-ad');
  95. });
  96. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement