473,412 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Change usemap on the fly

I change an image using a map by rolling over a button. The point is I have
to change the map as well.
I tried this way:
document.images['home_dx'].usemap = "#" + NewMap;
but it seems not to wrok.
Do somebody know how to do it?
Thanks.

Luciano
Jul 23 '05 #1
2 6834


Luciano (DOC) wrote:
I change an image using a map by rolling over a button. The point is I have
to change the map as well.
I tried this way:
document.images['home_dx'].usemap = "#" + NewMap;
but it seems not to wrok.


Maybe a case issue, try
useMap
see
<http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-35981181>
If that doesn't help tell us more about the browser you are trying that
with.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

"Martin Honnen" <ma*******@yahoo.de> ha scritto nel messaggio
news:41***********************@newsread4.arcor-online.net...
Maybe a case issue, try
useMap


That's exactly the reason.
Thanks.

Luciano
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Robert | last post by:
Hi! I'm reading in the html spec that the INPUT element can have a "ismap" or a "usemap" attribute, and thus that an image map can be associated with a form. I've searched but didn't find any...
2
by: LEMAIRE Mathieu | last post by:
I wanna change the usemap of an image with JS.. how to do it ? Here's what I've tried (doesn't work) : <img src='contenu.jpg' alt='' name='contenu' usemap='#map1'/> <map name="map1"><area...
10
by: Jay | last post by:
I have a script being called by clicking image. In order to present image as clickable I like to have mouse pointer changes to a hand when the pointer is over the image. So I put <area...
0
by: Jeronimo Bertran | last post by:
Hi, I have a page that includes an image that uses an image map. When the user clicks on a button, the image needs to be refreshed and the map needs to be updated without refreshing the entire...
1
by: Arne | last post by:
I am try to convert a classic ASP program to ASP.Net. I have an <img> tag that I want to convert to <asp:image>. The <img> has an attribute called usemap. I can't find the corresponding attribute...
0
by: Demetri | last post by:
I have a problem: I have an image that I need to display and if a user clicks anywhere on the image I need the coordinates. So I am using an ImageButton, which is good, works great for capturing...
1
by: Paul E Collins | last post by:
I'm confused about valid values for the IMG element's USEMAP attribute. According to this specification, "the value of usemap must match the value of the name attribute of the associated MAP...
1
by: monkey1001 | last post by:
my program is suppose to show my due change and i got it working but my change and coins are wrong how can i improve it thank you..(its supposed to be in java)
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.