how to create interactive map using javascript and Csshttp://forums.asp.net/t/1792794.aspx/1?how+to+create+interactive+map+using+javascript+and+CssMon, 16 Apr 2012 05:47:03 -040017927944932062http://forums.asp.net/p/1792794/4932062.aspx/1?how+to+create+interactive+map+using+javascript+and+Csshow to create interactive map using javascript and Css <p>I have world map image in my website&nbsp;<a href="http://apolloexim.com/index.htm">http://apolloexim.com/index.htm</a>. with two branches. Currently this is only an image. I want to add one more location and make it interactive like this&nbsp;<a href="http://www.imapbuilder.com/map-templates/">http://www.imapbuilder.com/map-templates/</a></p> <p>How can I do this using java script? Pls provide sample code if possible.</p> <p>Is there any other way to do this?</p> <p>Thanks in advance.</p> 2012-04-14T06:42:10-04:004932104http://forums.asp.net/p/1792794/4932104.aspx/1?Re+how+to+create+interactive+map+using+javascript+and+CssRe: how to create interactive map using javascript and Css <p>To select the country in map, you can take a look at&nbsp;<a href="http://www.javascriptkit.com/howto/imagemap.shtml">http://www.javascriptkit.com/howto/imagemap.shtml</a>.</p> <p>We can use &lt;map&gt; and &lt;area&gt; to define the polygon (country). You can also try to add some javascript in &lt;area&gt; to add the effect. (I think it should work using javascript inside area tag.)</p> 2012-04-14T07:17:07-04:004932229http://forums.asp.net/p/1792794/4932229.aspx/1?Re+how+to+create+interactive+map+using+javascript+and+CssRe: how to create interactive map using javascript and Css <p>Thanks for your reply.</p> <p>Can you pls provide any sample code for this?</p> 2012-04-14T09:42:15-04:004932236http://forums.asp.net/p/1792794/4932236.aspx/1?Re+how+to+create+interactive+map+using+javascript+and+CssRe: how to create interactive map using javascript and Css <pre class="prettyprint">&lt;html&gt; &lt;body&gt; &lt;map name=&quot;FPMap0&quot;&gt; &lt;area href=&quot;http://www.lycos.com&quot; shape=&quot;rect&quot; coords=&quot;6, 120, 63, 137&quot; onmouseover=&quot;alert('Mouseover Event')&quot;&gt; &lt;area href=&quot;http://www.nba.com&quot; shape=&quot;rect&quot; coords=&quot;5, 96, 65, 113&quot; onclick=&quot;alert('Onclick Event')&quot;&gt; &lt;area href=&quot;http://www.yahoo.com&quot; shape=&quot;rect&quot; coords=&quot;6, 75, 66, 87&quot;&gt; &lt;area href=&quot;http://www.cnn.com&quot; shape=&quot;rect&quot; coords=&quot;8, 48, 61, 62&quot;&gt; &lt;area href=&quot;http://javascriptkit.com&quot; shape=&quot;rect&quot; coords=&quot;8, 24, 65, 38&quot;&gt; &lt;/map&gt; &lt;img rectangle=&quot; (6,75) (66, 87) http://www.yahoo.com&quot; rectangle=&quot; (8,48) (61, 62) http://www.cnn.com&quot; rectangle=&quot; (8,24) (65, 38) http://javascriptkit.com&quot; src=&quot;http://www.javascriptkit.com/nav1.jpg&quot; width=&quot;70&quot; height=&quot;167&quot; border=&quot;0&quot; usemap=&quot;#FPMap0&quot;&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p>In this sample, (referred link: <a href="http://www.javascriptkit.com/howto/imagemap.shtml"> http://www.javascriptkit.com/howto/imagemap.shtml</a>), if you click &quot;NBA&quot; or move to &quot;Lycos&quot;, message will be prompted.<br> <br> </p> <p></p> <p></p> 2012-04-14T09:52:49-04:004933748http://forums.asp.net/p/1792794/4933748.aspx/1?Re+how+to+create+interactive+map+using+javascript+and+CssRe: how to create interactive map using javascript and Css <p>Or this may be simpler:</p> <pre class="prettyprint">&lt;html&gt; &lt;body&gt; &lt;img src=&quot;http://www.javascriptkit.com/nav1.jpg&quot; width=&quot;70&quot; height=&quot;167&quot; border=&quot;0&quot; usemap=&quot;#FPMap0&quot;&gt; &lt;map name=&quot;FPMap0&quot;&gt; &lt;area href=&quot;http://www.lycos.com&quot; shape=&quot;rect&quot; coords=&quot;6, 120, 63, 137&quot; onmouseover=&quot;alert('Mouseover Event')&quot;&gt; &lt;area href=&quot;http://www.nba.com&quot; shape=&quot;rect&quot; coords=&quot;5, 96, 65, 113&quot; onclick=&quot;alert('Onclick Event')&quot;&gt; &lt;area href=&quot;http://www.yahoo.com&quot; shape=&quot;rect&quot; coords=&quot;6, 75, 66, 87&quot;&gt; &lt;area href=&quot;http://www.cnn.com&quot; shape=&quot;rect&quot; coords=&quot;8, 48, 61, 62&quot;&gt; &lt;area href=&quot;http://javascriptkit.com&quot; shape=&quot;rect&quot; coords=&quot;8, 24, 65, 38&quot;&gt; &lt;/map&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p><br> <br> </p> 2012-04-16T05:47:03-04:00