Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多くの都市を含む国の地図があります。イメージマップですべての都市を見つけました。スポットをクリックすると、各都市に関連するデータベース データを表示したいと考えています。この変数を使用してデータを表示するために、イメージマップを介して変数(id?)を渡す方法はありますか?
どうもありがとう!
href要素の属性でURLのクエリ部分を使用できます(要素を含む要素areaを使用して、いわゆるクライアント側の画像マップを使用していると思います)。例:maparea
href
area
map
<area shape="circle" coords="100,200,5" alt="London" href= "/foo.php?thing=42&stuff=something&country=GB">