Results 1 to 3 of 3

Thread: Missing "alt" tag in JS HV menu

  1. #1
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Missing "alt" tag in JS HV menu

    Hello
    I am using the HV menu version 5.5 24 from Ger Versluis.
    All is fine.
    In the moment I validate all my HTML for correct specifications.

    The validator means that there are no "alt" tags for the arrows (tri.gif, tridown.gif)
    I tried to add the alt tag in the menu_com.js file like;
    ...
    ImgStr="<img src='"+Arrws[a]+"' width='"+Arrws[a+1]+"' height='"+Arrws[a+2]+"' alt='Arrows'>";
    this.CmdLyr.ImgLyr.document.write(ImgStr);
    ..

    But always same message from validator.

    any idea?

    best regards
    hawk

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Hmm, thats weird, but it also could be happening because its javascript. Try this:
    Code:
    ImgStr="<img src='"+Arrws[a]+"' width='"+Arrws[a+1]+"' height='"+Arrws[a+2]+"' alt='Arrows' title='Arrows'>";
    this.CmdLyr.ImgLyr.document.write(ImgStr);
    The highlighted makes it validate for FireFox, too. So see if that works.
    Hope this Helps,
    Nile
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Nile,
    thanks for your help.
    The "title" tag does not change anything.

    So I think that the FAE has problems with the Javascript?
    But this is not so important.

    thanks again
    hawk

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •