Results 1 to 6 of 6

Thread: image mapping alt tags don't show in firefox?

  1. #1
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin image mapping alt tags don't show in firefox?

    Code:
    <xmp>
    <map name="Map">
      <area shape="rect" coords="0,200,400,0" href="#" alt="Eyes omg!">
    </map>
    <img usemap="#Map" width="400" height="200" border="0" src="http://forums.eyesonff.com/images/LeezaA.jpg" />
    </xmp>
    eg:
    <map name="Map">
    <area shape="rect" coords="0,200,400,0" href="#" alt="Eyes omg!">
    </map>
    <img usemap="#Map" width="400" height="200" border="0" src="http://forums.eyesonff.com/images/LeezaA.jpg" />

    I'm working with different types of thinking. Some fora say that the coordinates must be x-left, y-top, x-right, y-bottom, and I personally think the coordinates are like the top right section of a cartesian two-dimensional plane (0, 0) being at the bottom left corner, for example.

    So according to the x-left y-top / x-right y-bottom thinking, the coordinates 0, 200, 400, 0 should work. It doesn't. I just get a link, and no alt text (in firefox). Why?

  2. #2
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    How about this.

    Code:
    &lt;map name="useTITLEnotALT">
      &lt;area shape="rect" coords="0,200,400,0" href="#" title="Eyes omg!">
    &lt;/map>
    &lt;img usemap="#useTITLEnotALT" width="400" height="200" border="0" src="http://forums.eyesonff.com/images/LeezaA.jpg" />
    <map name="useTITLEnotALT">
    <area shape="rect" coords="0,200,400,0" href="#" title="Eyes omg!">
    </map>
    <img usemap="#useTITLEnotALT" width="400" height="200" border="0" src="http://forums.eyesonff.com/images/LeezaA.jpg" />

  3. #3
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    Marvellous, Dr Unne! You have contributed to the EoFF FF8 map which will be made sometime in May because I have exams!

  4. #4
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Yes, use title. IE goes against HTML specifications and incorrectly uses the alt tag for a tooltip when the image loads - the alt is only for when you can't see the image. Mozilla/Firefox behaves correctly and ignores alt when it can display the image
    Problems playing downloaded videos? Try CCCP


  5. #5
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    I can't believe I didn't know that. I've taken html courses too! Blasted IE monopoly over the internet world!

  6. #6
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    That's because Microsoft doesn't like letting you know it breaks rules
    Problems playing downloaded videos? Try CCCP


Posting Permissions

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