PDA

View Full Version : Disabling click.. and scroll over.


gavin
Jan-30-2007, 05:03 PM
Is there any simple way to disable the click and scoll over on ALL my photos on my site?

Or is htis complicated and has to be done for each gallery?

I want to disable cliking and scroll over on all my picture, just wondering if its possible ina simple code.

Thanks!!

Andy
Jan-30-2007, 05:37 PM
Is there any simple way to disable the click and scoll over on ALL my photos on my site?

Or is htis complicated and has to be done for each gallery?

I want to disable cliking and scroll over on all my picture, just wondering if its possible ina simple code.

Thanks!!

I don't know what "scroll over" is but you enable right click protection in your gallery customization. Each gallery. Quick Settings to the rescue!
http://www.smugmug.com/help/picture-storage

http://www.smugmug.com/help/customize-faq.mg
shows you how to add the custom right click message, and also how to disable the IE6 print toolbar.

dogwood
Jan-30-2007, 06:26 PM
Is there any simple way to disable the click and scoll over on ALL my photos on my site?

Or is htis complicated and has to be done for each gallery?

I want to disable cliking and scroll over on all my picture, just wondering if its possible ina simple code.

Thanks!!

I think I get what you're asking-- the only way I know how to completely disable clicking (so nothing happens if you click a photo and the curser stays an arrow) is a javascript method combined with CSS that requires you to enter in each gallery # manually-- there's no site wide method-- again-- that I'm aware of. But maybe someone else knows of one? I'd be interested in at least a way to do this to an entire category.

And if you're asking about the scroll over that shows the caption on gallery photos, well, there's a way to kill that in js too but it hasn't been working for a number of folks recently. The only way I don't see the caption on scrollover is when there's no caption-- that's in smugmug view anyway. I think there's a way to do it in journal view too.

devbobo
Jan-30-2007, 06:49 PM
I think I get what you're asking-- the only way I know how to completely disable clicking (so nothing happens if you click a photo and the curser stays an arrow) is a javascript method combined with CSS that requires you to enter in each gallery # manually-- there's no site wide method-- again-- that I'm aware of. But maybe someone else knows of one? I'd be interested in at least a way to do this to an entire category.

are u referring to the mainimage or thumbnails as well ?

gavin
Jan-30-2007, 09:57 PM
Sorry agian need to be more specific.

Im talking about so the Pictures or not CLICKABLE. Whe nyou move your curser over the pictures, nothign happens and you cannot click on them to bring them up larger.

Not the thumbnails but the pictures shown on the right in the SMUGMUG style gallery.

Barb
Jan-31-2007, 06:23 AM
Sorry agian need to be more specific.

Im talking about so the Pictures or not CLICKABLE. Whe nyou move your curser over the pictures, nothign happens and you cannot click on them to bring them up larger.

Not the thumbnails but the pictures shown on the right in the SMUGMUG style gallery.

Hm, maybe you want to disable lightbox? See if this is what you are looking for:

http://www.dgrin.com/showthread.php?t=28586

dogwood
Jan-31-2007, 06:43 AM
Sorry agian need to be more specific.

Im talking about so the Pictures or not CLICKABLE. Whe nyou move your curser over the pictures, nothign happens and you cannot click on them to bring them up larger.

Not the thumbnails but the pictures shown on the right in the SMUGMUG style gallery.
Yes, this is possible. But again, the only way I know is a javascript method where you enter each gallery # individually in your customization code.

WARNING: this works for me, but there's no guarantee it will work for you. xxxx are the gallery #'s. This is what's in my js:



function doOnLoad()
{
if (window.AlbumID &&
(window.AlbumID == "xxxx" || window.AlbumID == "xxxx" || window.AlbumID == "xxxx" || window.AlbumID == "xxxx" || window.AlbumID == "xxxx" || window.AlbumID == "xxxx" || window.AlbumID == "xxxx" ) )

{
removeLinkFromImg()
}
}

function removeLinkFromImg()
{
var links = document.getElementsByTagName("A");
for (var i = 0; i < links.length; i++)
{
var link = links[i];
var divElm = link.parentNode;
if (!divElm) continue;
if (divElm.className.indexOf("photo")<0) continue;
link.href = "javascript:void(0);";
}
}


And this is in my body tag:

<body onload="doOnLoad();">

But again-- I don't know if this will work for you-- just sharing how I did it.

gavin
Jan-31-2007, 07:56 AM
Thanks! this code works for all my "Journal Style Galleries" however not for my smugmug style galleries.

Thanks :D

gavin
Jan-31-2007, 08:00 AM
Thanks! this code works for all my "Journal Style Galleries" however not for my smugmug style galleries.

Thanks :D

I have been hunting, i desabled light box thats not what i want.

I am trying to go for when the pictuers are shown on my site, when you move your curser over them nother happens, nothing pops upo over the image, and you cannot click on the image to bring it up larger. I want these over my whole site.

dogwood
Jan-31-2007, 10:40 AM
I have been hunting, i desabled light box thats not what i want.

I am trying to go for when the pictuers are shown on my site, when you move your curser over them nother happens, nothing pops upo over the image, and you cannot click on the image to bring it up larger. I want these over my whole site.

Yeah, I had an idea that's what you wanted when I first saw your post. I don't think it's possible-- but maybe an official SM person can verify that?

It can be weird to have clicking enabled even when the click leads to the exact same size image the person was viewing before the click.

devbobo
Jan-31-2007, 01:38 PM
Thanks! this code works for all my "Journal Style Galleries" however not for my smugmug style galleries.

Thanks :D
Thats cuz dogwood posted the sucky version :D

gavin
Jan-31-2007, 08:47 PM
Thats cuz dogwood posted the sucky version :D

lol, am i alowed to have the other version?

devbobo
Feb-02-2007, 01:41 AM
lol, am i alowed to have the other version?

ok...to remove the hyperlink from the main image, add this to the javascript section..


YE.onAvailable('mainImageLink', function(){this.removeAttribute('href')});



and to remove hover (http://www.dgrin.com/showpost.php?p=475949&postcount=99)

dogwood
Feb-02-2007, 08:55 AM
Thats cuz dogwood posted the sucky version :D

Cool. Appreciate this code too David. Much better than my sucky version. :thumb

PBolchover
Feb-02-2007, 03:41 PM
But the sucky function _is_ useful, because it's possible to hack it to change the click-on-photo links (in e.g. journal style) to direct the user to a different gallery, rather than an enlargement of the photo.

PB Media
Nov-03-2007, 03:25 PM
I have both hacks in the java script box. I put the second one to prevent the mainImage from linking to the lightbox. It still has link and the cursor change on hover. The difference is, the light box opens in a new window...


useLightbox = false;
YE.onAvailable('mainImageLink', function(){this.removeAttribute('href')});

Andy
Nov-04-2007, 02:02 AM
I have both hacks in the java script box. I put the second one to prevent the mainImage from linking to the lightbox. It still has link and the cursor change on hover. The difference is, the light box opens in a new window...


useLightbox = false;
YE.onAvailable('mainImageLink', function(){this.removeAttribute('href')});
I'm curious, why do you want to remove lightbox? :ear

PB Media
Nov-04-2007, 02:31 AM
I'm only letting people view medium size images...so it's pretty much pointless. I decided to force all thumbs or traditional. It doesn't have the lightbox and doesn't have the style issues that smugmug and critique have my with my custom styles. When people click a thumbnail, they can still click previous/next and go through them that way, looking at the big.

Now if you can just help me with my blogger template....:rofl Damn IE!