Forum Moderators: open

Message Too Old, No Replies

how to force IE not to see "alt" in a <img> tag?

         

essiw

1:34 pm on Oct 17, 2008 (gmt 0)

10+ Year Member



I have problems whit IE, I myself do have a mac computer so can't download IE. but since i live in the netherlands and more then 80% has a windows it is a problem. because IE sees "alt" the same as "title"
like:
<img src="http://www.searchengineworld.com/gfx/logo.png" alt="(search sites use this)" title="(little pop up comes here)">

since i want search sites to find my picture but i do not want IE to get a pop-up on that one, what should i do to prevent IE from doing that?

tedster

5:46 pm on Oct 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know you cannot prevent IE from doing their non-standard handling of the alt attribute. If it's there, IE will display it.

encyclo

5:53 pm on Oct 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to merely suppress the display of the alt text as a tooltip in IE, you can simply use an empty
title
attribute:

<img src="/logo.png" alt="the alt text here" [b]title=""[/b]>

As for the hovering "image tool bar" to save an image (which appears on larger graphics in IE), you can add the following meta element to your page:

<meta http-equiv="imagetoolbar" content="false">

g1smd

5:55 pm on Oct 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i haven't tried it, but I would expect the empty title attribute suggestion would fix it.

tedster

6:56 pm on Oct 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



use an empty title attribute

Duh, that's a heads-smacker, encyclo. Pretty obvious now that you say it.

essiw

9:16 am on Oct 18, 2008 (gmt 0)

10+ Year Member



ah thanks that sounds pretty obvious to me too :)
but what is that image tool bar? something bad?

g1smd

10:10 am on Oct 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It allows people to easily save the image to their computer.

The above meta tag stops the toolbar from appearing.