Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Close and nav buttons aren't displayed in IE due to path problems
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mr. Dent  
View profile  
 More options Jul 28 2010, 6:04 pm
From: "Mr. Dent" <grock...@gmail.com>
Date: Wed, 28 Jul 2010 15:04:02 -0700 (PDT)
Local: Wed, Jul 28 2010 6:04 pm
Subject: Re: Close and nav buttons aren't displayed in IE due to path problems
Here is a little jQuery fix a colleague and I whipped up. It will
dynamically change the PNG path to the current host at runtime. You
may need to change the value of "needle" for your setup.

// UTILITY FUNCTION
function getFullHost() {
    var full = window.location.toString();
    return full.substring(0, full.lastIndexOf("/"));

}

// FIX
$document.ready(function(){

     // IE CLOSE PNG PATH FIX
    var needle = "/js/fancybox/fancy_close.png";
    var curFilter = $(".fancybox-ie #fancybox-close").css("filter");

    //console.log("BEFORE: " + $(".fancybox-ie #fancybox-
close").css("filter"));
    $(".fancybox-ie #fancybox-close").css("filter",
curFilter.replace(needle, getFullHost() + needle));
    //console.log("AFTER: " + $(".fancybox-ie #fancybox-
close").css("filter"));

});


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.