Solved

vs2008 asp.net Imagemap control questions

Posted on 2009-04-15
1
665 Views
Last Modified: 2012-05-06
I would like to use the Imagemap control in vs2008. I have a map of Oregon and want to adds some polygonHotSpots. Then I would like to show some pictures of the hot spot area on rollover or (on clicked). I have two questions...

#1 As there does not seem to be a graphical tool to draw on the image to set the coordinates, what is the best way to figure that out?

#2 Once I have the hot spots, how do I control the attributes of the other image controls on the page?
0
Comment
Question by:BPSRobert
1 Comment
 
LVL 12

Accepted Solution

by:
wht1986 earned 125 total points
ID: 24154463
Mapedit is good to make image maps
http://www.boutell.com/mapedit/

you can have the hotspot run a javascript function so you can display rollover images etc  Below is some pseudo to help give you an idea

<script language="javascript">
function showtext(place){
document.myform.display.value = place
}
</script>

<map name="mapname">
<area shape="polygon" onMouseOver="showtext('Cash_Register')" onMouseOut="showtext('')" alt="Cash" coords="94,10,95,25" href="file1.html">
<area shape="polygon" onMouseOver="showtext('Cellular_Phone')" onMouseOut="showtext('')" alt="Cell Phone" coords="206,2,209,19" href="file2.html">
<area shape="polygon" onMouseOver="showtext('Toy_Box')" onMouseOut="showtext('')" alt="box" coords="356,25,359,75" href="file3.html">
<area shape="default" nohref>
</map>
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now