Click to See Complete Forum and Search --> : ALT TAGS in Netscape


dcjones
10-13-2003, 10:00 AM
Hi all.

I have wriiten some html pages whicg work OK in IE, but when it comes to looking at them using Netscape I have a problem.

The pages have ALT tags on the images, example.

<img src="../images/1pix.gif" alt="Electronic Counter Measures, Covert Satellite Tracking, Covert Body Armour, Bugging Devices, Secure Communications" width="1" height="1" border="0" />

When I view them in Netscape the contents of the ALT tag is displayed across the screen without moving the mouse over the image.

Can anyone point me in the right direction with this one.

Kind regards

Dereck

Khalid Ali
10-13-2003, 10:04 AM
Interesting...you have a link to the page?

Daria
10-13-2003, 10:05 AM
I don't think it should automatically display in NS.

AdamGundry
10-13-2003, 10:55 AM
Agreed, sounds like a browser bug, or maybe some other code in your page is causing it. Note that, according to standards, browsers should not display the alt text as a tooltip. Compliant browsers, such as Mozilla, do not.

Adam

dcjones
10-13-2003, 11:00 AM
Hi,

the link is http://www.int-int.bytecsolutions.com

Thanks for looking.

Regards

Dereck

Khalid Ali
10-13-2003, 11:13 AM
Nothing breaks on my Mozilla1.4(win2k)

AdamGundry
10-13-2003, 01:00 PM
Two things:

1. Validate your HTML (http://validator.w3.org/check?uri=http%3A//www.int-int.bytecsolutions.com/main.php) and correct the errors.

2. Your onmouseover event handlers are incorrect. You have this:

onMouseOver="MM_swapImage("'img6','','images/menu_bullet_selected.gif',1)

You should be using something like this instead (note the double quotes have moved to the end of the line):

onmouseover="MM_swapImage('img6','','images/menu_bullet_selected.gif',1)"

Adam

spufi
10-13-2003, 01:06 PM
Originally posted by dcjones
<img src="../images/1pix.gif" alt="Electronic Counter Measures, Covert Satellite Tracking, Covert Body Armour, Bugging Devices, Secure Communications" width="1" height="1" border="0" />

Why does the alt text display? It's when the image itself can't be displayed. So why doesn't it display? I'm taking a guess here, but you have your link pointing to a folder that's in a folder one level above where you are currently at. Your home page already is at the root level so there is no level to go up to. Fix the link to point to where the image is actually at, and the image will display. Not that a 1px by 1px image is going to display much. ;)