PC Review

Thread Tools Rate Thread

Replacing ImageMap hangs IE6 - weird problem

Posts: n/a
      18th Aug 2004

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;

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

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

Any ideas?

Radek Michalski

Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
weird weird weird... multiple text boxes alves Microsoft Powerpoint 6 12th Oct 2007 04:53 PM
Rendering Problem While using ASP.NET 2.0's ImageMap Control jleopaul@gmail.com Microsoft Dot NET Framework 0 30th Mar 2007 09:16 AM
imagemap doesn't work in IE6 lofty00@fastmail.fm Windows XP Internet Explorer 0 9th Jun 2006 05:21 PM
Re: Desktop imagemap David Candy Windows XP Customization 5 4th Aug 2004 12:25 AM
Imagemap error Robert Windows XP Internet Explorer 1 30th Apr 2004 02:28 PM




All times are GMT +1. The time now is 11:12 AM.