// This JS function is called by the Video Cloud Player when
// it encounters Companion Ads in a VAST 2.0 response
function bcsyncroadblock(adXML){
var companionAds = getXMLDoc(adXML);
//Get the Companion snippet
var expandedBannerAd = companionAds.getElementsByTagName('Companion')[0];
var collapsedBannerAd = companionAds.getElementsByTagName('Companion')[1];
// Get the banner creative URL
var expandedBannerAdSnippet = expandedBannerAd.getElementsByTagName('StaticResource')[0].firstChild.nodeValue;
var collapsedBannerAdSnippet = collapsedBannerAd.getElementsByTagName('StaticResource')[0].firstChild.nodeValue;
// Get clickthrough information for the banners from the StaticResource node
var expandedBannerClickURL = expandedBannerAd.getElementsByTagName('CompanionClickThrough')[0].firstChild.nodeValue;
var collapsedBannerClickURL = collapsedBannerAd.getElementsByTagName('CompanionClickThrough')[0].firstChild.nodeValue;
// Display banners.
var companionAdDiv = document.getElementById("companionBanner");
// Add the expanded banner to the page
companionAdDiv.innerHTML = " ";
var collapsedAdDiv = document.getElementById("collapsedBanner");
// Add the collapsed banner to the page
collapsedAdDiv.innerHTML = "
";
}
// Loads adXML as XML.
function getXMLDoc(pXML){
var adXML;
if (window.ActiveXObject) {
//parses the XML for IE browsers
adXML = new ActiveXObject("Microsoft.XMLDOM");
adXML.async = false; adXML.loadXML(pXML);
} else //parses the XML for Mozilla browsers
if (window.XMLHttpRequest) {
adXML = (new DOMParser()).parseFromString(pXML, "text/xml"); }
return adXML;
}
December 20th, 2008 | Uncategorized | Posted by Phil Ewing
The appearance of the Wake Forest marching band (inexplicably playing “Beat It”) seems like an ideal time to review the game so far and take a look ahead at what we can look for from these teams in the second half. Here’s a transcript of our halftime discussion.
Ewing: Well, Mike, I think things are going great. We’ve got millions of readers out there on the Internet all following along with us as we cover the game.
Hoffman: That is so.
Ewing: What do you think were the high and low points of the first half And what do you think we can still look forward to in this matchup?
Hoffman: Navy has to be confident that they showed they could move the ball at will against a tough Wake defense that features two of the best defenders in the country – Curry and Smith. But they need to finish drives with touchdowns, not field goals, if they are going to keep their lead. Wake finally woke up on that last drive and will look to try and exploit their speed advantage in the second half.
Ewing: How do you think the big Navy crowd turnout today has affected the game?
Hoffman: RFK was once known for being one of the loudest stadiums in the NFL, but that’s when the stadium was packed with rabid Redskins fans. Navy definitely has more supporters here, but that’s to be expected with a bigger fan base and a closer proximity to the game. I hope there is plenty of coffee at the concessions stands because the fans looked as sleepy at the beginning of the game as Wake’s team.
Ewing: All right, sir, we’ll let you get back to your blanket-like sports coverage and be looking forward to the updates in the second half.
Hoffman: Roger that. End transmission.
You must be logged in to post a comment.