Created
September 20, 2016 16:26
-
-
Save mooyah/f14068e370fbf6498eceab7ebbf05d8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<link href="css/gamedetails.css" rel="stylesheet" /> | |
<title>SpotX Test Page</title> | |
</head> | |
<body> | |
<div class="contentWrapper"> | |
<div class="row"> | |
<div> | |
<p>This is a paragraph of text.</p> | |
<p></p> | |
</div> | |
<div> | |
<div id="spotxvideo"></div> | |
<script type="text/javascript"> | |
function myAdDoneFunction(spotx_ad_found) { | |
if(spotx_ad_found) { | |
// this code will replace the advertisement with your content. | |
document.getElementById("spotxvideo").innerHTML = 'THE AD IS COMPLETE. GAME WILL GO HERE'; | |
} | |
else | |
{ | |
document.getElementById("spotxvideo").innerHTML = 'http://zone.msn.com/ZoneWebAd.swf'; | |
} | |
}; | |
</script> | |
<script type="text/javascript" src="http://search.spotxchange.com/js/spotx.js" | |
data-spotx_channel_id="12345" | |
data-spotx_content_width="640" | |
data-spotx_content_height="360" | |
data-spotx_ad_done_function="myAdDoneFunction" | |
data-spotx_content_container_id="spotxvideo" | |
data-spotx_ad_unit="instream" | |
data-spotx_content_type="game" | |
data-spotx_autoplay="1" | |
data-spotx_ad_volume="50" | |
data-spotx_ad_max_duration="45" | |
data-spotx_https="0"></script> | |
</div> | |
<div> | |
<p>This is a second paragraph of text.</p> | |
<p></p> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment