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!
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!