Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

IE8 vs FF


  • Please log in to reply
3 replies to this topic

#1 AliceZ

AliceZ

  • Members
  • 32 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:NE USA
  • Local time:12:54 PM

Posted 16 October 2011 - 05:15 PM

I have IE8 and Firefox on my WinXP.
I have a personal website (I'm just a novice.) and when I put a picture on a page, I usually use alt="Content Name,etc." in the IMG SRC description so that someone can put their cursor over the picture and it will show the description I put in at the "Alt" description.
This works fine in IE8, but today I happened to be using FF and noticed when I put the cursor over a picture, there was no pop-up box with the description of the photo.
How can I get the "alt="XXX" to show when someone puts there cursor over the image/picture? Is that possible or not possible with FF (and only can be used with IE)?
Anyone have an answer/solution?

Thank you for any help.

BC AdBot (Login to Remove)

 


#2 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • ONLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:09:54 AM

Posted 16 October 2011 - 05:38 PM

I believe that Firefox doesn't show the Alt= attribute in a popup on purpose. You can get the same effect, though, by using the Title= attribute:

<img src="foo.jpg" Title="A Picture of Foo">

The reason why Firefox, Chrome, and other browsers than IE don't display a popup when the ALT tag is used is because they're not supposed to. This behavior is an old, old bug in IE. According to the rules of HTML, the alt tag is designed for when an image is not displayed to the user (either because the image is missing or because for whatever reason the user's browser doesn't display images (this is a setting in most browsers and is the only setting in text-based browsers, not to mention text-to-speech browsers for the blind.) You should use the Alt tag to specify placeholder text for the image (e.g. alt="Picture of my cat, Mr. Whiskers.") The Title tag is used to specify any additional information you want to tack onto the image, and almost all browsers will show it in a popup tooltip.

A popular example of using Title= for additional information is the XKCD webcomic.

#3 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:10:54 AM

Posted 17 October 2011 - 07:05 AM

I didn't know XKCD did that. Now I will have to go through the entire archive again and see what I missed.

#4 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • ONLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:09:54 AM

Posted 17 October 2011 - 08:05 AM

I didn't know XKCD did that. Now I will have to go through the entire archive again and see what I missed.

You're not the first and won't be the last person to have to do that! :whistle:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users