2014-01-22 72 views
-1

我想拍摄一张加利福尼亚地图,将其划分为多个区域,然后让用户将鼠标悬停在这些区域上。当他们点击区域时,它会将它们向下滚动到指定的位置,以便他们可以阅读更多信息。我将如何做到这一点?如何创建可点击的地图

+0

我不太确定*你*能做到吗? *你*甚至试图做到这一点? – musefan

+0

拍摄加利福尼亚州的图像,将其保存为photoshop中的多个图像,使用绝对定位将其拼接在一起,然后从那里开始。在发布像这样的问题之前,你将不得不尝试几件事情 – jmore009

+0

我们是否仍然使用图像映射?或者他们现在过时了吗? – musefan

回答

0

只需创建的图像,并在其上应用的地图,像这样:

<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> 

<map name="planetmap"> 
    <area shape="rect" coords="0,0,82,126" href="#sun" alt="Sun"> 
    <area shape="circle" coords="90,58,3" href="#mercur" alt="Mercury"> 
    <area shape="circle" coords="124,58,8" href="#venus" alt="Venus"> 
    <area shape="poly" coords="48,311,105,248,96,210,75,205,38,234,8,310" href="#anything" title="Anything"> 
</map>