First things first: I am an absolute novice to javascript but have the feeling I have to learn it. Here's my problem:
I have a custom map made from a photo with defined map areas.
I want to show a popup window with additional information AND a picture (like Google Maps). My guess is that I need javascript to do this. So far, I searched the web up and down but only found snippets that let the user hit a button to show the popup. Here's the html-code I have so far:
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/basic.css">
<link rel="stylesheet" href="../css/karten.css">
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/detect_swipe/2.1.1/jquery.detect_swipe.min.js"></script>
<title>West Pasco Model Railroad Association</title>
<div class="container">
<div class="header">
<a href="index.html"><img class="img-full" src="../graphics/header-pic.jpg" alt="WPMRA Header Image" ></a>
</div>
<div id="map">
<img src="refinery-fells-point-96dp-clean.gif" usemap="#fellspoint">
<map name="fellspoint">
<area shape="poly" coords="209,352,483,367,522,357,581,347,619,330,641,324,633,279,344,283"
id="refinery" alt="Refinery" href="#refinery" title="West Side Refinery, 2 Tracks, 10 cars"
/>
<area shape="poly" coords="892,209,938,212,990,210,1028,185,1043,170,1041,143,1026,127,945,161,900,191,897,203"
alt="Scrapyard" target="scrap-yard" href="#scrapyard"
/>
<area shape="poly" coords="1091,267,1185,273,1188,242,1177,201,1088,201,1085,244"
alt="Brewery" target="eagles-nest-brewery" href="#eaglesnest-brewery" title="Eagles Nest Brewery, 2 tracks, 4 cars"
/>
<area shape="poly" coords="1075,319,1118,386,1179,354,1134,282"
alt="Ralphs Classic Autoparts" target="classicautoparts" href="#classicautoparts"
/>
<area shape="poly" coords="1020,371,1090,342,1056,284,988,312"
alt="The News Post and Sunday Gazette" target="news-post" href="#news-post"
/>
<area shape="poly" coords="938,361,995,329,968,286,920,323"
alt="Reliable Warehouse and Storage" target="reliablewarehouse" href="#reliable-warehouse-and-storage"
/>
<area shape="poly" coords="873,358,919,317,907,285,852,329"
alt="Swift" target="swift" href="#swift"
/>
<area shape="rect" coords="1005,385,1079,439"
alt="Muir Beaver Express" target="beaverexpress" href="#beaverexpress"
/>
<area shape="rect" coords="813,377,983,430"
alt="IGA" target="iga" href="#iga"
/>
<area shape="poly" coords="1073,167,1163,143,1150,119,1059,87,967,113,994,132,1064,119"
alt="West Side Fuel and Oil" target="westsidefuelandoil" href="#westsidefuelandoil"
/>
<area shape="poly" coords="808,348,868,309,846,265,770,313"
alt="Imperial Foods" target="imperialfoods" href="#imperialfoods"
/>
</map>
</div>
</div>
I assume that I have to reference the "href" attribute somehow but have to clue how to do this. Did anybody do this already and can help me out, please?