print album/page menu and title=""

I know I can just edit the code to do this but it would be nice to have an option in both PrintAlbumMenu and PrintPageMenu that will leave out the title="" tags. Or, if anyone knows of a way of overriding the title tag, that would work. It's getting in the way of my menus--for instance, in Safari 4, the hovering title popup lingers and if I mouseover it, I lose the menu. It's also just repeating what's already in the list--no new information.

Thanks!

Comments

  • acrylian Administrator, Developer
    It is generally recommend to add the title to links as it is for images to require the alt tag. Sorry, but I guess you have to create a custom menu function for this.
  • fretzl Administrator, Developer
    Since jQuery is already onboard you could use this simple script:
    `

    $(document).ready(function () {
    $(".menu a").removeAttr("title");
    });

    `
    This removes all "title" attributes from all "a" tags in an element with the class "menu".
  • acrylian Administrator, Developer
    Well, right, that is a convenient way, too.
  • I hear you acrylian. :) It makes sense to me to have the title and alt tags for things in general, but in the menu, it just IMO is unnecessary as the info is already there in the dropdown list and like I said, it causes Safari 4 and maybe other browsers to mess up when I'm dropping down the list--if my mouse hits the popup title, the menu disappears.

    Thanks fretzl!! Although, I can't get this to work. Is there a particular place this needs to be? I've experimented with it but am not having any luck. Thanks, and many thanks for the great zenphoto and zenpages! :)
  • acrylian Administrator, Developer
    Ok, all right, I understand...:-)

    JS code like his jQuery snippet is commonly placed in the head of a page but can basically be everywhere. Of course you need to address the right CSS class/id with that script. We of course can't know that. I suggest to look at the jQuery site for general documentation.
Sign In or Register to comment.