.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Archive for May 19th, 2008

Image Map Control and JavaScript

May 19, 2008 By: Dave Category: none

Several months ago, I had to create a map that displayed push pins where various distributors were located.  When the user placed the cursor over the push pin, a tooltip was suppose to show up with a short form of the contact information in it.

My first thought was, “hey, great, I can use that new ImageMap control they put in ASP.NET 2.0.  But, when I went to use it, I discovered quickly that you can’t attach JavaScript to elements of the image map.  You can only attach them to the parent control which is nothing more than an image control with a collection of image map elements.

Here’s what I did…

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!