Pupator
Dec-29-2006, 02:18 PM
I assume that the code given on this page (http://www.smugmug.com/help/customize-faq.mg) has been tested to work:
function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_XXXXXXX"))
{
var objElement = YD.get("comment")
if (objElement != null)
{
var str = new String(objElement.innerHTML);
str = str.replace(/\gallery/gi, 'guestbook');
objElement.innerHTML = str;
}
}
}
YE.onAvailable("comment", ModifyText);
That means there's something about my customization that screws it up - because when I add it to my "footer" section the code doesn't work, but the code is displayed on the webpage instead.
http://paulsclicks.smugmug.com/gallery/2290103
Insights?
function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_XXXXXXX"))
{
var objElement = YD.get("comment")
if (objElement != null)
{
var str = new String(objElement.innerHTML);
str = str.replace(/\gallery/gi, 'guestbook');
objElement.innerHTML = str;
}
}
}
YE.onAvailable("comment", ModifyText);
That means there's something about my customization that screws it up - because when I add it to my "footer" section the code doesn't work, but the code is displayed on the webpage instead.
http://paulsclicks.smugmug.com/gallery/2290103
Insights?