Change usemap on the fly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luciano \(DOC\)

    #1

    Change usemap on the fly

    I change an image using a map by rolling over a button. The point is I have
    to change the map as well.
    I tried this way:
    document.images['home_dx'].usemap = "#" + NewMap;
    but it seems not to wrok.
    Do somebody know how to do it?
    Thanks.

    Luciano


  • Martin Honnen

    #2
    Re: Change usemap on the fly



    Luciano (DOC) wrote:
    [color=blue]
    > I change an image using a map by rolling over a button. The point is I have
    > to change the map as well.
    > I tried this way:
    > document.images['home_dx'].usemap = "#" + NewMap;
    > but it seems not to wrok.[/color]

    Maybe a case issue, try
    useMap
    see
    <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-35981181>
    If that doesn't help tell us more about the browser you are trying that
    with.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • Luciano \(DOC\)

      #3
      Re: Change usemap on the fly


      "Martin Honnen" <mahotrash@yaho o.de> ha scritto nel messaggio
      news:41f671b1$0 $17614$9b4e6d93 @newsread4.arco r-online.net...
      [color=blue]
      > Maybe a case issue, try
      > useMap[/color]

      That's exactly the reason.
      Thanks.

      Luciano


      Comment

      Working...