Skip to content

Instantly share code, notes, and snippets.

@dimatter
Created May 22, 2014 10:59
Show Gist options
  • Save dimatter/4d0c78aa365c6065cb4c to your computer and use it in GitHub Desktop.
Save dimatter/4d0c78aa365c6065cb4c to your computer and use it in GitHub Desktop.
<a target="_blank" href="EASLink=http://google.com">
<img width="930" height="180" src="_P_930x180_udsalg_fallback.jpg" border="0">
</a>
<script type="text/javascript">
var _window = window;
if (!(window.self === window.top)) {
_window = window.parent.window;
}
/* Set the wallpaper click url here: */
_window.adClickURL = "EASLink=https://www.facebook.com/#!/badehotellet?fref=ts";
/* Narrow screen wallpaper; Can be blank or a URL. Remember: remove square brackets */
_window.adWallpaper = "_P_TV2_Wallpaper_Narrow.jpg";
/* Wide screen wallpaper; Can be blank or a URL. Remember: remove square brackets */
_window.adWallpaperWide = "_P_TV2_Wallpaper_Wide.jpg";
/* Hex color code */
_window.adBgColor = "#FFFFFF";
/* Can be a hex code or "transparent" */
_window.adTopContainerBgColor = "transparent";
/* Should wallpaper scroll with the screen? Can be "fixed" or "scroll" */
_window.adBackgroundType = "scroll";
/* Is the topbanner 999px wide? Can be false or true*/
_window.tv2WideAd = false;
if (window.location.host.indexOf('heltnormalt') > -1) {
_window.tv2 = {};
_window.popwin = function(){};
_window.jQuery('#topbanner').attr('style','background-color:none');
}
var _ref, _ref1, _ref2;
if ((_ref = _window.tv2) != null) {
if ((_ref1 = _ref.t2ad) != null) {
if ((_ref2 = _ref1.t2emediate) != null) {
_ref2.wallpaperTakeover();
}
}
}
if (window.location.host.indexOf('heltnormalt') > -1) {
_window.jQuery('#wrap').css('cursor', 'default');
}
</script>
<script src="http://common.tv2.dk/js/t2ad_wallpaper.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment