Replacing ImageMap hangs IE6 - weird problem

Discussion in 'Windows XP Internet Explorer' started by Radek, Aug 18, 2004.

  1. Radek

    Radek Guest

    Hi,

    I'm wondering how can I realise such scenario:
    there is an image with a image map. I click on area and now current map is
    switched with another image map where that clicked area isn't active now.
    Right now I'm doing something like this (using DOM):

    <script type="text/javascript">
    function setSrc(name) {
    var x=document.images
    x[0].useMap="#" + name;
    }
    </script>

    But that code simply hangs IE6 (but not Mozilla and Opera). So, how can I
    replace this code to something more compatible with all browsers. You can
    test this behavior here http://krzyki.eu.org/test/test.html (click on Mapa 2
    area).

    I was trying to use <div id="..."> and replacing .innerHTML with map
    definition, but the result is the same.

    Any ideas?

    Greetigns
    Radek Michalski
     
    Radek, Aug 18, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Sutherland

    secure site works in original IE6 but hangs in IE6 sp1a

    Ian Sutherland, Jan 7, 2004, in forum: Windows XP Internet Explorer
    Replies:
    7
    Views:
    246
    PA Bear
    Jan 9, 2004
  2. Robert

    Imagemap error

    Robert, Apr 30, 2004, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    208
    H Leboeuf
    Apr 30, 2004
  3. Andrew Diamond

    Proxomitron with IE6 hangs ie6 and win2k to boot

    Andrew Diamond, May 27, 2004, in forum: Windows XP Internet Explorer
    Replies:
    0
    Views:
    227
    Andrew Diamond
    May 27, 2004
  4. Andrew Diamond

    Proxomitron with IE6 hangs ie6 and win2k to boot

    Andrew Diamond, May 28, 2004, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    214
    Steve
    Jun 1, 2004
  5. imagemap doesn't work in IE6

    , Jun 9, 2006, in forum: Windows XP Internet Explorer
    Replies:
    0
    Views:
    276
Loading...

Share This Page