Web Analytics Made Easy -
StatCounter image map status bar doesn't change - CodingForum


No announcement yet.

image map status bar doesn't change

  • Filter
  • Time
  • Show
Clear All
new posts

  • image map status bar doesn't change

    Hi all,

    I have an image map and would like it not to display the url, but a word in the status bar instead.

    I have seen a few ways to do this, using self.status and window.status but neither seem to work for me, I still get the url in the status box.

    The example scripts I have seen on the internet also just show the urls as well when I test them, none seem to work, on my laptop (win98, IE6) nor on my desktop (win-xp, IE6).

    A snippet of code I am using is below.

    Thanks for any suggestions, Chris

    <AREA SHAPE="RECT" COORDS="175,0,271,216"
    ONMOUSEOVER="self.status='Download'; return true;" ONMOUSEOUT="self.status='';"
    ALT="Download Now!">

  • #2
    This should do it just fine:

    <area shape="rect" coords="175,0,271,216" onmouseover="window.status='Download';return true;" onmouseout="window.status='';return true;" href="http://www.sample.com/sample.php" title="Download Now!">
    Note: The alt attribute is for displaying alternate text for images when they cannot be displayed. If you desire the effect that the alt attribute has in IE then you should use the title attribute as that is what it is for.

    If window.status doesn't work then perhaps there is some sort of IE bug that prevents it from working with image maps. Try using newer code like this at ala.

    Edited to include code tags.
    Last edited by lavalamp; Mar 4, 2004, 08:01 PM.
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150