PDA

View Full Version : disable picture link.


grp318
Mar-28-2009, 03:24 PM
I would like to disable the picture link on my guestbook page. It there a way to have it look the same, but prevent the picture from opening, or makeing it where you cant click on it?

Thanks


Greg

http://www.gregpettyphotography.com/

Allen
Mar-28-2009, 03:28 PM
I would like to disable the picture link on my guestbook page. It there a way to have it look the same, but prevent the picture from opening, or makeing it where you cant click on it?

Thanks


Greg

http://www.gregpettyphotography.com/
See if this thread helps.
http://www.dgrin.com/showthread.php?p=858731#post858731

jfriend
Mar-28-2009, 03:35 PM
I would like to disable the picture link on my guestbook page. It there a way to have it look the same, but prevent the picture from opening, or makeing it where you cant click on it?

Thanks


Greg

http://www.gregpettyphotography.com/

You can just add this to your bottom javascript:

YE.onContentReady("image_499720167", function () {this.parentNode.href="javascript:void(0);"});

grp318
Mar-28-2009, 07:30 PM
You can just add this to your bottom javascript:

YE.onContentReady("image_499720167", function () {this.parentNode.href="javascript:void(0);"});


This did not work.....



Greg

jfriend
Mar-28-2009, 07:37 PM
This did not work.....



Greg

I don't see it in your bottom javascript. If it was there, I could see why it wasn't working.

grp318
Mar-28-2009, 08:00 PM
I don't see it in your bottom javascript. If it was there, I could see why it wasn't working.


I took it off after it did not work. I just put it back, tell me what you think.

Thanks


Greg

jfriend
Mar-28-2009, 08:35 PM
I took it off after it did not work. I just put it back, tell me what you think.

Thanks


Greg

Maybe I didn't understand what you wanted because it appears to be working as I intended to me (in both IE7 and FF3). When you click on the photo in your guestbook page, the click no longer does anything. That's what the script was designed to do (remove the clickability on the target photo).

If you want to change the mouse cursor on that photo, then you can add this CSS:

.gallery_7731111 .journal_entry .photo a {cursor: default;}

Here's the picture that is no longer clickable:
http://content.screencast.com/users/jfriend/folders/Jing/media/1f0758ab-1999-46b8-9865-b0cfa1f27385/2009-03-28_2132.png

grp318
Mar-29-2009, 08:03 AM
That did it.... Thanks. I am not sure why it did not work the first time.


Greg