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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Jim

    Weird connection problem IE6

    Jim, Sep 3, 2003, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    264
    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:
    324
    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:
    414
    PA Bear
    Jan 9, 2004
  4. Robert

    Imagemap error

    Robert, Apr 30, 2004, in forum: Windows XP Internet Explorer
    Replies:
    1
    Views:
    254
    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:
    360
    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:
    310
    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:
    418
    Joe Masters
    Jul 17, 2004
  8. imagemap doesn't work in IE6

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