MasterKaos
Programmer
I am trying to swap the underlying imagemap that belongs to an image i am swapping. What i need to do is set the usemap attribute.
I have had some success by using
where pic is the id of the image element.
This works correctly in FireFox, but not in MSIE. I have tried sending an alert to display the usemap value after the change and as expected in FireFox it returns the new imagemap but in MSIE it returns the old one.
You can find the page here:
but don't freak if it's not there or if it's changed because it's a work in progress. I'll post here if i find the solution and the above link is no lomger relevant.
Any ideas?
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
I have had some success by using
Code:
document.pic.setAttribute("usemap", "#map");
This works correctly in FireFox, but not in MSIE. I have tried sending an alert to display the usemap value after the change and as expected in FireFox it returns the new imagemap but in MSIE it returns the old one.
You can find the page here:
but don't freak if it's not there or if it's changed because it's a work in progress. I'll post here if i find the solution and the above link is no lomger relevant.
Any ideas?
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.