I would like to be able to embed an image that has hotspot elements
that, when clicked, open tiddlers. Is this possible? difficult?
Here's the background:
Up until now, what I've been doing on my course website is putting up
concept maps whose elements link to new pages - I use the 'hotspot'
tool in Dreamweaver, and then the 'Open Browser Window' function, so
that when the element is clicked, it pulls up a small window with
further text or links. (Or I use layers if I want the element to
pop-up a menu of links). Now I'm wondering how much of this I can do
in TW. I've figured out that I can paste html code with an image map
in a tiddler, and the elements of the map succesfully link elsewhere
(an html file in a new browser window). But I don't know how to make
these elements pop-up a tiddler - not a regular html link but a TW
link, if that's the right way to put it.
Thanks
in the image map, instead of
href="http://www.someplace.com/whatever"
try
href="javascript:story.displayTiddler(null,'TiddlerTitle');"
HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studio
http://www.TiddlyTools.com
"Small Tools for Big Ideas!"
The only visual drawback is that there is no animation, I suppose
because TW doesn't know where to animate the tiddler from.
Thanks again for the speedy response.
It would look something like <div id='conceptMap'
tiddler='ConceptMap'></div>
-Rich
Yes, if it needs any styling. Personally, I try to keep my CSS modular.
I would create a CSS tiddler with your conceptMap rules (lets call it
ConceptMapStyles), add it to the StyleSheet tiddler with
[[ConceptMapStyles]]. This way it will be added to StyleSheetLayout and
StyleSheetColors.
If you create a new StyleSheetLayout, it will overwrite the shadowed
StyleSheetLayout. You problably need a lot of the rules in there. The
normal way of applying styles is using the StyleSheet tiddler. It gets
loaded after StyleSheetLayout and StyleSheetColors, so you can add your
own CSS rules or selectively over-ride any rules in the shadow
tiddlers.
StyleSheet is further extensible by adding other CSS snippets (like
your new ConceptMapStyles) using the double-square-bracket notation.
- Rich