PDA

View Full Version : Comments


bradpowellphoto
Mar-19-2008, 07:10 AM
Hi there tech gods!

I am trying to get more feedback on my images and was wondering if I could slightly change the "comments" wording on the bottom left corner of the gallery page to something like "YOUR COMMENTS ARE ALWAYS WELCOME"

Is that possible?:bow

bradpowellphoto
Mar-19-2008, 12:21 PM
bummmmppppppppp:deal

Allen
Mar-19-2008, 12:44 PM
Hi there tech gods!

I am trying to get more feedback on my images and was wondering if I could slightly change the "comments" wording on the bottom left corner of the gallery page to something like "YOUR COMMENTS ARE ALWAYS WELCOME"

Is that possible?:bow You might try this. Add in you own statement, it changes the word "gallery"
in front of comments. Might have to be lower case and no non letters.


To change the comments at the bottom of the guestbook gallery
to "guestbook comments" add this to your javascript. Replace
the XXXXXXX with your gallery number.

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, 'You are Welcome to leave ');
objElement.innerHTML = str;
}
}
}

YE.onAvailable("comment", ModifyText);