PDA

View Full Version : Help with YUI - messing up IE and Safari


sbressler
Oct-07-2007, 07:45 PM
When I put the following code into the javascript section of the customization page, the page does not load properly in IE or Safari:
function AddReferralCode() {
var footerDiv = YD.get("footer");
if (footerDiv) {
var links = footerDiv.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=UAubUQCKI54wU";
}
}
}
YE.onAvailable('footer', AddReferralCode);

YE.onAvailable('subCatGalleryTitle', function(){this.innerHTML = this.innerHTML.replace(/sub\-categories/, 'galleries')}); Any ideas why?

Site is http://gallery.lsb-photo.com

Thanks!

sbressler
Oct-30-2007, 08:39 PM
Any one have any ideas? I have since taken the code out but I was still having the same issues...