|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Major grins
|
Removing Clickability?
I'm really hoping someone has an answer for this one...
I just found how to remove the ability to click on a photo in journal(old) viewing style: //------------------------------------------------------------- // Clear links and thus clickability from photos in journal galleries //------------------------------------------------------------- YE.onDOMReady(ClearLinksFromMany); function ClearLinksFromMany() { var listOfGalleries = [ "13737637", /*Guestbook*/ "13949163", /*About*/ ]; if (window.AlbumID) { for (var i in listOfGalleries) { if (window.AlbumID == listOfGalleries[i]) { removeLinkFromImg(); break; } } } } function removeLinkFromImg() { var oList = YD.getElementsByClassName("photo", "div"); for (var i=0; i < oList.length; i++) { var aTags = oList[i].getElementsByTagName("a"); for (var j=0; j < aTags.length; j++) { // get rid of the href on the <a> tag aTags[j].removeAttribute("href"); // get rid of the alt and title tags on the <img> tag aTags[j].firstChild.removeAttribute("alt"); aTags[j].firstChild.removeAttribute("title"); } } } It works perfectly on my About page which is set to journal(old) http://www.sniffphotography.com/Othe...13949163_RWDJh However, this does nothing for my Guestbook page which is set to journal http://www.sniffphotography.com/Othe...13737637_Ud82V Is there any way to have this work for journal and journal(old) viewing styles? Any help is greatly appreciated. |
|
|
|
|
#2
|
||
|
Major grins
|
Quote:
See this thread: http://www.dgrin.com/showthread.php?t=135066 |
|
|
|
||
|
#3
|
|
|
Scripting dude-volunteer
|
If you get the latest code from customization #12 here, it should work with both new journal and old journal styles.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#4
|
|
|
Major grins
|
Wow! Now that's what I call service! Thank you so much for the quick response. I knew I had seen that somewhere.
|
|
|
|
|
#5
|
|
|
Major grins
|
So, I'm still having the same issue with my Guestbook page:
http://www.sniffphotography.com/Othe...13737637_Ud82V Am I missing something? |
|
|
|
|
#6
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#7
|
|
|
Major grins
|
No change when I turn protection off. The odd part is that It works on my 'About' page, which is set to 'Critique'
|
|
|
|
|
#8
|
|
|
Scripting dude-volunteer
|
That's not odd at all that different views would respond differently. Smugmug creates the different gallery styles differently and some styles do funky things with the timing that makes it hard to modify them. I'll take a look at why it isn't working sometime this weekend.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#9
|
|
|
Major grins
|
Thank you for taking a look.
|
|
|
|
| Tell The World! | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| Removing specific Key Words | pjspics | SmugMug Customization | 4 | Feb-05-2009 01:03 PM | |
| Info page...Removing username | bhockensmith | SmugMug Customization | 3 | Dec-16-2008 06:46 AM | |
| removing ,removing, removing | Bountyphotographer | SmugMug Customization | 6 | Nov-01-2007 08:55 AM | |
| removing clickability | DJKennedy | SmugMug Customization | 5 | Dec-28-2006 07:40 PM | |
| Removing scratches from LCD | mercphoto | Accessories | 7 | Mar-15-2006 07:02 AM | |
| Thread Tools | |
| Display Modes | |
|
|