Fox news slideshows are not working in Vista Home 64 bit.
All fox news slideshows are not working since firefox 3.6 started. I can't get them to work in Internet explorer either.
URL of affected sites
http://
Alle svar (12)
The foxnews.com slideshows seem to use Javascript, so look for any errors in your Error Console:
- Load a foxnews slideshow
- Go to Tools->Error Console
- Look at the bottom for recent errors
- Copy any errors related to foxnews by right cilcking, then paste in a reply here.
There are several other reasons why the website might be producing errors. Here are possible fixes:
- Bad item stored in the Browser Cache: Follow the steps at How to clear the Firefox cache.
- Bad cookie from the broken site: Clear cookies from the broken site by following the steps at Clear cookies and site data in Firefox.
- Cookies not enabled: Cookies must be enabled for many websites to work. If they are disabled, follow the steps at Enhanced Tracking Protection in Firefox for desktop
- Images are blocked/disabled: see Fix problems that cause images to not show
- Plug-ins are outdated: check for outdated plugins on the plugin check page.
- Firewall software is blocking some resources on the page: see Configure firewalls so that Firefox can access the Internet
- An extension may be causing the problem: see Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems
For other steps to try, see Web sites look wrong
Error: $.ad is undefined Source File: http://www.foxnews.com/static/all/js/slideshows-pack.js Line: 850
// Slideshows - updated: 04/30/2010 // Dependencies: jQuery, jfoxCarousel plugin
(function($){
function SlideShows() { this._data = {}; // slideshow data this._info = {}; // current slideshow info this._relatedMedia = {}; // related media data this._trackData = false; this.initialized = false; this.toolTipId = "carousel-tooltip";
this.defaultTrackFrequency = 1; // tracker trigger
this._preloaderSrc = "/static/all/img/slideshow/slideshow-preloader.gif";
this._timer = { // timers main: { fadeIn:800 }, carousel: { fadeIn:300 }, overlay: { onLast:10000,fadeIn:300,fadeOut:300 } };
this.currentFocus = 1; // current item in focus this.holderObj = {}; // holder for elements this.hashObj = {}; // hash location holder this.imgPreloadObj = {}; // holder for preloaded images
// carousel object controllers this.carouselControlObj = {}; this.overlayControlObj = {};
this.trigger = { // listeners main: false, carousel: false, overlay: false };
this.overlayTimeout = false; // overlay timeout holder }
SlideShows.prototype = { init: function(config) { for (i in config) { this['_'+i] = config[i]; } this.main.root = this.carousel.root = this.overlay.root = this; this.hashObj = this.helper.getHash();
if (typeof $.fn.jfoxCarousel'undefined') { showToConsole("[init] Error: carousel plugin not found!"); }
if (this._trackData) { // set tracking data sTracker.set(this._trackData); } sTracker.track("pageLoad"); // page load tracker
this.preload(); this.setHolders(); this.initialized = true; }, preload: function() { var preloadImg = new Image(); preloadImg.src = this.preloadSrc; }, setHolders: function() { var SH = this; var slideshowElm = $("#slideshow");
this.holderObj = { doc: $(document), body: $("body"), intro: $("#section-intro"), main: slideshowElm.find("#main-img"), mainHolder: slideshowElm.find(".slideshow-placeholder"), mainControl: slideshowElm.find(".slideshow-controller"), description: slideshowElm.find(".slideshow-desc"), relatedMedia: slideshowElm.find(".slideshow-related"), carousel: slideshowElm.find(".slideshow-feature .slideshow") };
this.holderObj.intro.each(function(){ var intro = $(this); intro.find("h1:first").html(SH._info.title); intro.find("p:first").html(SH._info.dek); });
if (this.holderObj.main.size()>0) { this.main.properties.minHeight = this.holderObj.mainHolder.innerHeight(); // get set height as "min-height" this.main.build(); }
if (this.holderObj.carousel.size()>0) { this.carousel.build(); }
$(document).ready(function(){ // wait for page load for the overlay SH.holderObj.overlay = $("#slideshow-overlay"); var set = (SH.holderObj.overlay.size()>0) ? (typeof $.fn.jfoxCarousel!=='undefined') ? SH.overlay.set() : false : false; SH.setDocReadyListeners(); });
this.setListeners(); }, setListeners: function() { var SH = this; var control = this.holderObj.mainControl;
// main image controls control.find(".prev").click(function(){ SH.main.prev(); return false; }); control.find(".next").click(function(){ SH.main.next(); return false; });
if (typeof touchEventListener!=="undefined") { var listenerConfig = { elm: SH.holderObj.mainHolder, moveSensitivity: 15, eventsCallback: { touchmoveMoveOnce: function(direction,moveProperties,rawEvent) { // move callback - sensitivity var directions = direction.join("|"); if (directions.indexOf("left")>-1) { control.find(".next").trigger("click"); }
if (directions.indexOf("right")>-1) { control.find(".prev").trigger("click"); } } } };
touchEventListener.append(listenerConfig); }
}, setDocReadyListeners: function() { var SH = this;
// browse slideshow overlay $(document).ready(function(){ $("#section-intro .additional-slides a").click(function() { SH.overlay.show(); return false; });
SH.holderObj.overlay.find(".close a").click(function(){ SH.overlay.hide(); return false; }); }); }, replaySlideshow: function() { var SH = this; //TODO: build replay this.overlay.hide(); // hide overlay this.main.build(this.currentFocus = 1); // reset focus
sTracker.track("replaySlideshow"); } };
// main image holder SlideShows.prototype.main = { properties: {}, build: function(slide,origin) { var SH = this; var root = this.root;
if (root.trigger.main) { return false; } root.trigger.main = true;
slide = slide || false; origin = origin || "main"; var control = root.holderObj.mainControl; var data = root._data; var initData = false; var desc = []; var helper = root.helper;
if (slide) { if (slide 0) { desc.push('Source: ' + data.items[slide].source + ); } root.holderObj.description.html(desc.join(""));
// load related media if (root._relatedMedia.items) { var rmItems = root._relatedMedia.items; if (rmItems.length>0) { var rel = []; rel.push('Related Articles'); for (var x=0; x 0) { root.currentFocus--; SH.build(root.currentFocus); sTracker.track("clickPrevMain"); // tracker if (!SH.isLast() && root.overlayTimeout) { clearTimeout(root.overlayTimeout); } // clear overlay timeout } }, isLast: function() { var root = this.root; return (root.currentFocus+1 > root._data.items.length) ? true : false; } };
// carousel SlideShows.prototype.carousel = { build: function() { var SH = this; var root = this.root; var carousel = root.holderObj.carousel; var data = root._data; var list = [];
for (var x=0;x 0) { var li = $(".slideshow > ul",carousel).children(); li.each(function(i){ var el = $(this); var setClass = (i == eventObj.target-1) ? el.addClass("active") : el.removeClass("active"); }); } }, controlsCallback: function(control) { // callback to set up controls root.carouselControlObj = control;
carousel.find(".prev").click(function(){ // previous link control.stopAutoScroll(); control.slide('prev'); sTracker.track("clickPrevCarousel"); // tracker return false; });
carousel.find(".next").click(function(){ // next link // show overlay on last carousel link //var lastLink = (!currentEventObj) ? false : (currentEventObj.batch.current+1 > currentEventObj.batch.max) ? $(document).ready(function(){ root.overlay.show(false,true); }) : false; control.stopAutoScroll(); control.slide('next'); sTracker.track("clickNextCarousel"); // tracker return false; });
} };
carousel.jfoxCarousel(config);
if (typeof touchEventListener!=="undefined") { var listenerConfig = { elm: carousel, moveSensitivity: 15, eventsCallback: { touchmoveMoveOnce: function(direction,moveProperties,rawEvent) { // move callback - sensitivity var directions = direction.join("|"); if (directions.indexOf("left")>-1) { carousel.find(".next").click(); }
if (directions.indexOf("right")>-1) { carousel.find(".prev").click(); }
} } };
touchEventListener.append(listenerConfig); }
}); } };
// overlay SlideShows.prototype.overlay = { set: function() { var root = this.root; var overlay = root.holderObj.overlay;
overlay.find(".slideshow-feature").each(function(){ var carousel = $(this); var allItems = carousel.find(".slideshow ul").children().children();
allItems.each(function(){ var div = $(this); var link = div.find("a:first").attr("href"); div.hover(function(){ div.css("cursor","pointer"); },function(){ div.css("cursor",""); }).unbind("click").click(function(){ window.location.replace(window.location.hostname + link); }); });
var config = { auto: { set:false,speed:3000 }, // auto scroll slide: "horizontal", // horizontal or vertical scroll: 3, // number of items to scroll per event show: 3, // items shown speed: "slow", // scroll speed rotate: false, // rotate back to star if end //focus: { item:0,animate:false }, // focus to target item on load eventCallback: function(eventObj) {
if (eventObj.batch.current1) { carousel.find(".prev").addClass("inactive"); } else { carousel.find(".prev").removeClass("inactive"); }
if (eventObj.batch.currenteventObj.batch.max) { carousel.find(".next").addClass("inactive"); } else { carousel.find(".next").removeClass("inactive"); }
}, controlsCallback: function(control) { // callback to set up controls
root.overlayControlObj = control;
carousel.find(".prev").click(function(){ // previous link control.stopAutoScroll(); control.slide('prev'); sTracker.track("clickPrevOverlay"); // tracker return false; });
carousel.find(".next").click(function(){ // next link control.stopAutoScroll(); control.slide('next'); sTracker.track("clickNextOverlay"); // tracker return false; });
} };
carousel.jfoxCarousel(config);
if (typeof touchEventListener!=="undefined") { var listenerConfig = { elm: carousel, moveSensitivity: 15, eventsCallback: { touchmoveMoveOnce: function(direction,moveProperties,rawEvent) { // move callback - sensitivity var directions = direction.join("|"); if (directions.indexOf("left")>-1) { carousel.find(".next").click(); }
if (directions.indexOf("right")>-1) { carousel.find(".prev").click(); }
} } };
touchEventListener.append(listenerConfig); }
}); }, show: function(delay,isReplay) { isReplay = isReplay || false; delay = delay || false; var root = this.root; if (root.trigger.overlay) { return false; } // if already open var SH = this;
delay = (isNaN(delay)) ? 0 : delay; // delayed show root.overlayTimeout = setTimeout(function(){ SH.setReplay(isReplay); if (root.main.isLast()) { root.holderObj.overlay.fadeIn(root._timer.overlay.fadeIn,function(){ root.trigger.overlay = true; }); sTracker.track("showOverlay"); // tracker } else { root.holderObj.overlay.fadeIn(function(){ root.trigger.overlay = true; }); } },delay); }, hide: function(delay) { delay = delay || false; var root = this.root; if (!root.trigger.overlay) { return false; } // if already closed
delay = (isNaN(delay)) ? 0 : delay; // delayed hide setTimeout(function(){ root.holderObj.overlay.fadeOut(root._timer.overlay.fadeOut,function(){ root.trigger.overlay = false; }); sTracker.track("hideOverlay"); // tracker },delay); }, setReplay: function(isReplay) { var root = this.root; var overlay = root.holderObj.overlay; var firstList = overlay.find(".slideshow-feature .slideshow ul").children().filter(":first"); var divs = firstList.children();
var replayDiv = divs.filter(":first"); var cloneDiv = replayDiv.next();
function configInfo(elm) { var currentSS = root._data.items; var info = root._info; var count = currentSS.length; var first = currentSS[0]; var slideshowTitle = (info.title.length > 16) ? info.title.substring(0,16) + "..." : info.title; var slideshowImg = first.media.tm; var slideshowDate = info.title.date;
function replay() { root.replaySlideshow(); }
var items = elm.children(); items.filter("p.photo-count").html(count + " image" + [[count>1) ? "s" :""]]; items.filter("p.date").html(slideshowDate); items.filter("p.photo").each(function(){ var item = $(this); item.find("a").attr({ href: "#", title: slideshowTitle }); item.find("img").attr({ alt: slideshowTitle, src: slideshowImg }); });
items.filter("h4").each(function(){ var item = $(this); item.find("a").attr("href","#").html(slideshowTitle); });
items.find("a").unbind("click").click(function(){ replay(); return false; });
elm.hover(function(){ elm.css("cursor","pointer"); },function(){ elm.css("cursor",""); }).unbind("click").click(function(){ replay(); return false; });
}
if (replayDiv.children().size()0) { replayDiv.html(cloneDiv.html()); configInfo(replayDiv); }
if (isReplay) { replayDiv.addClass("active").show(); cloneDiv.hide(); } else { replayDiv.hide(); cloneDiv.show(); } } };
SlideShows.prototype.helper = { toNum: function(item) { item = (isNaN(item)) ? parseInt(item.replace(/[a-zA-z]/gi,""),10) : item; return isNaN(item)?0:item; }, imgLoad: function(obj,fn) { var SH = this; obj.alt = obj.alt || "";
if (obj.preload && !$.browser.opera) { // opera =/= img.onload if (obj.mainHolder) { obj.mainHolder.css({ background:"url("+obj.preloaderSrc+") no-repeat center" }); } var img = new Image();
obj.holder.css({ display:"inline", opacity:"0" }); img.onload = function() {
if (obj.outer) { if (img.height > SH.toNum(obj.outer.minHeight)) { obj.outer.holder.css("height","auto"); } else { obj.outer.holder.css("height",obj.outer.minHeight); } }
obj.holder.attr("src",obj.src).animate({ opacity:"1"},obj.speed,"linear",function(){ if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); } $(this).attr("alt",obj.alt); fn(); }); }; img.src = obj.src; } else { if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); } obj.holder.css({ display:"inline", opacity:"0" }); obj.holder.attr({ src: obj.src, alt: obj.alt }).animate({ opacity:"1"},obj.speed,"linear",function(){ fn(); }); } }, getHash: function() { var hash = (window.location.hash).substr(1); if (hash) { var pairs = hash.split('&'); var valuePair = {}; for (var x=0;x 1 && callback && count%freq0) { callback(data); } } } };
var sTracker = new Trackers(); // private
function showToConsole(str) {
if (typeof window.console'object') { console.log(str); }
}
var slideShowsPack = window.slideShowsPack = new SlideShows();
})(jQuery);
// Tracking Data Here var trackData = { ads: { buildSlide: { frequency: 1, callback: function() { $(document).ready(function(){ if (typeof $.ad.dc.load!=="undefined") { $.ad.dc.load(); } }); } } }, omni: { buildSlide: { frequency: 1, callback: function(data) { data = data || false; if (!data) { return false; } if (!data.slideNumber) { return false; } if (typeof $.ad.omni.load!=="undefined") { $.ad.omni.load({ "slide": data.slideNumber }); } } } } };
var initializeSlideShow = window.initializeSlideshow = function() { if (typeof slideshowData!=="undefined") { if (!slideShowsPack.initialized) { slideShowsPack.init({ data: slideshowData, info: slideshowInfo, relatedMedia: relatedsData, trackData: trackData }); } } else { if (typeof window.console==='object') { console.log("[error] No Data found for: slideshowData"); } } };
This the line highlighted:
if (typeof $.ad.dc.load!=="undefined") {
I copied posted the above. Any Ideas yet on what it could be?
Ok, $.ad is defined for me on the page.
From a quick look at the page's source, it seems that http://ads.foxnews.com/js/ad.js isn't being loaded. You either have a firewall, ad blocker, or extension blocking this resource from being loaded. To fix the problem, turn off whatever is blocking this file.
I have no earthly idea what it could be it was working fine until about 2weeks ago
Go to http://ads.foxnews.com/js/ad.js and see what you get.
Create a new profile as a test to check if your current profile is causing the problems. See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting:Make a new profile]]
There may be extensions installed by default in a new profile, so check that in "Tools > Add-ons > Extensions".
If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files). See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
I have the same problem with Foxnews slideshow, and I think I just found the solution, accidentally:
On the slideshow page, I right-clicked the Adblock Plus "Open blockable items" and I saw in a long list of white lines, a couple of red lines, that said :
http://ads.foxnews.com/js/ad.js
http://ads.foxnews.com/static/all/js/ad.js
When I hovered the pointer over each of the two red lines above, a pop-up said "script (blocked)".
And when I right-clicked each of those two red lines, a pop-up opens, "Add exception rule for this item".
I did.
Refreshed the slideshow page on Foxnews, and IT WORKED!
I can advance each slideshow number and thumbnail as it used to do months ago.
How do I access Adblock plus I don't see it listed anywhere? Did it come with this version of Mozilla?
In my error console "this" portion seems to be the cause...
if (typeof $.ad.dc.load!=="undefined") {
however I am not sure if that is my end or theirs? I'll be checking back to see if there is a solution. Fox sure seems to have its share of glitches!
Update. I use a modified HOSTS file for spam, malware and so forth such that it blocks loading of 'certain things'.
If I revert back to the default HOSTS file then the slideshow at Fox works perfectly. Once I switch out to the larger and more restrictive HOSTS file, the issue returns and the shows won't progress past the first slide. FYI... NOW to figure out what line in the very numerous HOSTS file is the cause.
127.0.0.1 ads.foxnews.com in the HOSTS file must be # commented out.