PDA

View Full Version : guestbook link


photoshoot
Aug-24-2008, 11:00 AM
Can someone help me on this? I'm having a hard time understanding I guess what links to the pages I need to include...b/c I can never get it right.

I'm trying to link up my guestbook gallery to my navbar.

.gallery_358055564.pageNav {
display: none;
}

Is what I have right now.

http://beyondathousandwords.smugmug.com/gallery/5784870_8xzJZ/1/358055564_jC3MS
is the gallery link

http://beyondathousandwords.smugmug.com/photos/358055564_jC3MS-S.jpg
is the photo link

Which one do I use? I've tried combinations....Can you please give me some direction so I'll know for future navbar additions/changes?

Thanks.

Allen
Aug-24-2008, 11:33 AM
Can someone help me on this? I'm having a hard time understanding I guess what links to the pages I need to include...b/c I can never get it right.

I'm trying to link up my guestbook gallery to my navbar.

.gallery_358055564.pageNav {
display: none;
}

Is what I have right now.

http://beyondathousandwords.smugmug.com/gallery/5784870_8xzJZ/1/358055564_jC3MS
is the gallery link

http://beyondathousandwords.smugmug.com/photos/358055564_jC3MS-S.jpg
is the photo link

Which one do I use? I've tried combinations....Can you please give me some direction so I'll know for future navbar additions/changes?

Thanks. This works
http://beyondathousandwords.smugmug.com/gallery/5784870_8xzJZ

Add a space before .pageNav

.gallery_5784870 .pageNav {
display: none;
}

Remove this from CSS, goes in footer javascript

function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_5784870"))
{
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);

photoshoot
Aug-24-2008, 11:39 AM
This works
http://beyondathousandwords.smugmug.com/gallery/5784870_8xzJZ

Add a space before .pageNav

.gallery_5784870 .pageNav {
display: none;
}

Remove this from CSS, goes in footer javascript

function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_5784870"))
{
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);


Thank you. The space is what was throwing me off. So you always link to the Gallery, not the photo, correct when creating a link?