View Full Version : Mousover for dummies
Tried the mousover for dummies code in these galleries, didnt work. Can anybody tell me what I did wrong?:huh
http://richmartinez.smugmug.com/gallery/4475477_duNrd
http://richmartinez.smugmug.com/gallery/4475547_RTZwB
Thanks
Rich
http://richmartinez.smugmug.com/
Allen
Oct-23-2008, 04:38 AM
Tried the mousover for dummies code in these galleries, didnt work. Can anybody tell me what I did wrong?:huh
http://richmartinez.smugmug.com/gallery/4475477_duNrd
http://richmartinez.smugmug.com/gallery/4475547_RTZwB
Thanks
Rich
http://richmartinez.smugmug.com/ There's an error in your javascript. See red and check that it's not missing a ; or something.
function doOnLoad() {if (window.AlbumID &&
(window.AlbumID == "4475477" || window.AlbumID = "4475547"something missing here?
removeLinkFromImg();
}
There's an error in your javascript. See red and check that it's not missing a ; or something.
function doOnLoad() {if (window.AlbumID &&
(window.AlbumID == "4475477" || window.AlbumID = "4475547"something missing here?
removeLinkFromImg();
}
I was supposed to change this
if (window.AlbumID && window.AlbumID == "XXXXXX")
to this
(window.AlbumID == "XXXXXX" || window.AlbumID = "YYYYYY" ||
window.AlbumID == "ZZZZZZ") )
But I only needed it for two galleries. Can you tell me how it should be.They both have different endings?
Thanks
Rich
www.richmartinezphotography.com
RogersDA
Oct-23-2008, 02:16 PM
Well, Rich - there are some of your other galleries that have the mouseover text still appearing - particularly those images with a caption.
The following (placed in the Header Javascript) will stop all mouseover text from displaying.
/************************************************** *******************/
/* Disable the Hover Text When the Cursor is Over An Image */
/************************************************** *******************/
function delHover() {
oLst = YD.getElementsBy(function(el) {return (YD.hasClass(el,'imgBorder') || YD.hasClass(el,'imgBorderOn'))},'img');
for (i=0; i < oLst.length ; i++) {
if (oLst[i].title && oLst[i].title != '') oLst[i].title = '';
if (oLst[i].alt && oLst[i].alt != '') oLst[i].alt = '';
}
}
YE.onContentReady('bodyWrapper', function() {if (!YD.hasClass(document.body, 'smugmug_ajax')) delHover()});
onPhotoShow.subscribe(function(){YE.onAvailable('m ainImage', delHover)});
Well, Rich - there are some of your other galleries that have the mouseover text still appearing - particularly those images with a caption.
The following (placed in the Header Javascript) will stop all mouseover text from displaying.
/************************************************** *******************/
/* Disable the Hover Text When the Cursor is Over An Image */
/************************************************** *******************/
function delHover() {
oLst = YD.getElementsBy(function(el) {return (YD.hasClass(el,'imgBorder') || YD.hasClass(el,'imgBorderOn'))},'img');
for (i=0; i < oLst.length ; i++) {
if (oLst[i].title && oLst[i].title != '') oLst[i].title = '';
if (oLst[i].alt && oLst[i].alt != '') oLst[i].alt = '';
}
}
YE.onContentReady('bodyWrapper', function() {if (!YD.hasClass(document.body, 'smugmug_ajax')) delHover()});
onPhotoShow.subscribe(function(){YE.onAvailable('m ainImage', delHover)});
Thanks David, but didnt work. dont know what I did wrong? Could you check and tell me?
Much thanks
Rich
http://richmartinez.smugmug.com/
RogersDA
Oct-23-2008, 02:55 PM
Thanks David, but didnt work. dont know what I did wrong? Could you check and tell me?
Much thanks
Rich
http://richmartinez.smugmug.com/In your CSS you also have some extraneous characters right below the #photokeywords line.
__________________
}
In your CSS you also have some extraneous characters right below the #photokeywords line.
__________________
}
Still not working?
Im trying to make it so people cant click on the pics in my journal galleries and change the style of those pages. Is that what were doing? As always Im confused. Im css illiterate.:huh
Dont want people to be able to alter the style of these galleries.
http://richmartinez.smugmug.com/gallery/4475477_duNrd
http://richmartinez.smugmug.com/gallery/4475547_RTZwB
Much Thanks
Rich
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.