This is a further refinement of this thread
https://groups.google.com/forum/#!searchin/TiddlyWiki/CSS$20Alternative$20for$20an$20Image$20Map%7Csort:relevance/tiddlywiki/9G2Kv-TQkI0/2eY-4v9zIAAJI have this tiddler [[BodyDiagram]]
with the CSS in this stylesheet tagged with
$:/tags/Stylesheet:
body {
background-color: #ABC;
color: #123;
font-family: verdana;
}
h1 {
margin-bottom: 20px;
text-align: center;
}
#bodymap {
background-image: url(images/BodyDiagram.png);
width: 449px;
height: 473px;
position: relative;
}
#bodymap a {
display: block;
border: 1px solid #FF2;
position: absolute;
}
#bodymap a:hover {
border: 1px solid #333;
}
a#hiker1 { width: 50px; height: 50px; left: 82px; top: 25px; }
a#hiker2 { width: 40px; height: 40px; left: 86px; top: 65px; }
a#hiker3 { width: 10px; height: 10px; left: 510px; top: 150px }
#bodymap figcaption {
position: absolute;
top: 0px; left: 0px;
width: 449px; height: 20px;
line-height: 20px;
text-align: center;
font-weight: bold;
background-color: rgba(255,255,255,.6);
}
and it looks like this: (see image provided)
This is still in the process of converting from the original post so that's why the hot spots are referred to as "hiker1" etc...
Question: While clicking on the square around the head will open a link to Yahoo.com in this example:
(<a href="
http://www.yahoo.com/" id="hiker1"></a>)
***
how do I instead make something internal to the TW happen, e.g. trigger a macro of some sort? ***
My ultimate goal is to click on a square and have a templated new tiddler open up with appropriate fields set with things like "head" and <<today's date>>
Thanks,
Dave