Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function closeBrowserOverlay () {
- document.getElementById('browserOverlay').style.display = 'none';
- document.getElementById('browserOverlay-container').style.display = 'none';
- //Destroy Flash object
- var ref = document.getElementById("OAS_RMF_%%POS%%_FLASH");
- document.getElementById('inter-ad').removeChild(ref);
- }
- </script>
- <style type="text/css" media="screen" space="preserve">
- #browserOverlay {
- background: #333333;
- bottom:0px;
- display:block;
- height:100%;
- overflow:hidden;
- position:fixed;
- text-align:center;
- width:100%;
- z-index:999995;
- left: 0px;
- opacity:0.6;
- filter:alpha(opacity=60); /* For IE8 and earlier */
- }
- #browserOverlay-container {
- bottom:0px;
- display:block;
- height:100%;
- overflow:hidden;
- position:fixed;
- text-align:center;
- width:100%;
- z-index:999995;
- left: 0px;
- }
- .browserOverlayImage {
- border:0pt none;
- line-height:0px;
- z-index:999999;
- width: [width of interstitial]px;
- height: [Height of interstitial]px;
- position: relative;
- text-align: center;
- margin-right: auto;
- margin-left: auto;
- top: 8em;
- }
- </style>
- <div id="browserOverlay"></div>
- <div id="browserOverlay-container">
- <div class="browserOverlayImage">
- <table id="Table_01" width="[Width you would like in pixels]" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="bottom">
- <div><a href="javascript:void(0);" onClick="closeBrowserOverlay ();" title="Close Me"><img src="[Close button image]" alt="" border="0" align="right"></a></div>
- </td>
- </tr>
- <tr>
- <td>
- <a href="%%CLICK_URL_UNESC%%[Click URL]" target="_blank"><img src="%%VIEW_URL_UNESC%%[Image URL]" width=[Width] style="border: 0px" /></a>
- <IMG SRC="[Impression track here if you want]" BORDER=0 WIDTH=1 HEIGHT=1 ALT="">
- </td>
- </tr>
- </table>
- </div>
- </div>
- <script type="text/javascript">
- var t=setTimeout("closeBrowserOverlay();",[length before auto close in Miliseconds]);
- document.getElementsByTagName('body')[0].appendChild(document.getElementById('browserOverlay')); //Move to top
- document.getElementsByTagName('body')[0].appendChild(document.getElementById('browserOverlay-container')); //Move to top
- </script>
- <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
- <script type='text/javascript'>
- jQuery('document').ready(function($){
- $("#OAS_RMF_%%POS%%_FLASH").appendTo('#inter-ad');
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement