FireFox/innerHTML and <area> tags

B

Brad

I've been trying to set the content of a div tag with a image map for
example
<div name='ImageMapLayer'>
<map>
<area></area>
</map>
</div>

I've tried using both innerHTML and DOM. I can set it with DOM but
sometimes the image map works and sometimes it doesn't. innerHTML
does not appear to work at all. Does anyone have a work around. By
the way I'm trying to do this in firefox (mozilla).

Thanks,

Brad
 
J

Jeff North

On 29 Oct 2004 14:05:47 -0700, in comp.lang.javascript
| I've been trying to set the content of a div tag with a image map for
| example
| <div name='ImageMapLayer'>
| <map>
| <area></area>
| </map>
| </div>
|
| I've tried using both innerHTML and DOM. I can set it with DOM but
| sometimes the image map works and sometimes it doesn't. innerHTML
| does not appear to work at all. Does anyone have a work around. By
| the way I'm trying to do this in firefox (mozilla).

Where is your code that is executing the script?
You might have to place an additional script at the end of your html
code that calls the script as the elements of page maynot be defined
when you actually call the script.

<!-- end of html code. Now for addition script -->
<script type="text/javascript">
call_my_function();
</script>
</body>
</html>
 

Ask a Question

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top