LoginSignup
0
0

More than 5 years have passed since last update.

グラフなど、画像の一部分にクリックイベントを与えたい場合はクリッカブルマップを使う

Last updated at Posted at 2015-05-13
<img src="img_pie_chart.jpg" alt="" border="0" usemap="#Map" width="100%"/>
<map name="Map" id="Chart_Map">
    <area shape="poly" coords="726,200,755,247,777,309,783,385,766,462,732,525,690,575,632,608,566,633,488,635,500,547,509,462,558,451,589,426,610,394,616,367,615,350,599,305,664,249" href="javascript:void(0)" />
</map>

画像の一部分だけの領域に何かを施したい時があると思います。そんなときはドリームウィーバーのクリッカブルマップ機能などを使いareaタグのcoordsに領域の区分を記述しておきareaタグに対してイベントなどを与えると効果的です。

https://gist.github.com/anonymous/9e08846994f2e709dd37

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0