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. Jim

    Weird connection problem IE6

    Jim, Sep 3, 2003, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    200
    PA Bear
    Sep 3, 2003
  2. Rajesh M Kanneganti

    Strange and very weird problem - IE6(Win) gets detected as Mozilla(Linux)

    Rajesh M Kanneganti, Jan 6, 2004, in forum: Windows XP Internet Explorer
    Replies:
    2
    Views:
    286
    Rajesh M Kanneganti
    Jan 7, 2004
  3. 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:
    323
    PA Bear
    Jan 9, 2004
  4. Robert

    Imagemap error

    Robert, Apr 30, 2004, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    223
    H Leboeuf
    Apr 30, 2004
  5. 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:
    283
    Andrew Diamond
    May 27, 2004
  6. 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:
    256
    Steve
    Jun 1, 2004
  7. Joe Masters

    Proxomitron with IE6 hangs ie6 and win2k to boot

    Joe Masters, Jul 13, 2004, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    315
    Joe Masters
    Jul 17, 2004
  8. imagemap doesn't work in IE6

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