Skip to content

Instantly share code, notes, and snippets.

@messenjer
Last active December 23, 2015 21:39
Show Gist options
  • Save messenjer/6697389 to your computer and use it in GitHub Desktop.
Save messenjer/6697389 to your computer and use it in GitHub Desktop.
Modification for floorAdContainer
<script type="text/javascript" src="http://c.pebblemedia.be/js/c.js"></script>
<script type="text/javascript" src="http://pool.pebblemedia.adhese.com/tag/tag.js"></script>
<script type="text/javascript">
var adhesePublication = "rtbf-info";
var adheseLocation = "homepage";
var adheseCategoryList = [];
var adheseIsSplashActive = 0;
</script>
<div id="splashContainer" style="display:none;">
<div class="splash_bg"></div>
<div class="splash_window">
<div class="splash_header"> <img onclick="disableSplash()" class="splash_close" src="http://www.static.rtbf.be/rtbf/info/images/splash-close.png" alt="Continuer sur le site" title="Continuer sur le site" /> </div>
<div class="splash_content">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" width="500" height="400" class="adlContent">
<div id="pebbleSplash">
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="floorAdContainer"></div>
<script type="text/javascript">
if ( document.documentElement.clientWidth > 800 ) {
if (typeof adhese !== "undefined" && adhese !== null) {
adhese.tag({ format: "Splash", publication: "rtbf-info", location: "homepage", categories: adheseCategoryList });
}
}
function disableSplash() {
if(document.getElementById('banner_leaderboard')){document.getElementById('banner_leaderboard').style.visibility="visible";}
if(document.getElementById('imu')){document.getElementById('imu').style.visibility="visible";}
if(document.getElementById('banner_skyscraper')){document.getElementById('banner_skyscraper').style.visibility="visible";}
if(document.getElementById('splashContainer')){
document.getElementById('splashContainer').innerHTML="";
document.getElementById('splashContainer').style.display = 'none';
}
}
if (adheseIsSplashActive!=0) {
document.getElementById('splashContainer').style.display = 'block';
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment