Log in

View Full Version : Missing "alt" tag in JS HV menu



hawkmaster
04-15-2008, 01:34 PM
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

Nile
04-15-2008, 11:40 PM
Hmm, thats weird, but it also could be happening because its javascript. Try this:


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

hawkmaster
04-16-2008, 06:58 AM
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