SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Jed.
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE does not like my onmouseover

    Hello,

    I am getting an error document.mmi is null or not an object for this simple code on IE's only--Opera, Chrome, FF3 and Safari are ok.

    Code:
      <img src="images/menu0.png" width="860" height="36" usemap=
      "#main-menu-map" id="mmi" name="mmi"> <map name="main-menu-map"
      id="main-menu-map">
        <area shape="rect" href="#" coords="737,0,859,28" onmouseover=
        "document.mmi.src ='images/menu1.png'" onmouseout=
        "document.mmi.src ='images/menu0.png'">
      </map>

  2. #2
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb

    i think on IE must be using document.all.mmi.src

    its better using javascript dom selector library such as jquery
    eYeew! Founder and Developer

    Madipta

  3. #3
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    Jed.
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It did not work in any browser.

    Thank you


Bookmarks

Posting Permissions

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