> Appreciate your input. I was able to change my tiddler text color. To
> implement the Reset macro (my second point), I went through a related
> topic --(Running javascript within a tiddler) -- on creating custom
> macros. Still, I am not sure how to implement this javascript in a
> macro. Can you please guide me?

TiddlyWiki syntax permits direct use of convential HTML syntax,
enclosed between <html> and </html> markers, so there's no need to
create a custom macro or use inline javascript within tiddler content.

HTML similar to that provided by Mike (see previous reply in this
thread) will do the trick.  Just put the following into your tiddler
content:

<html><a href="javascript:;" class="button"
onclick="story.closeAllTiddlers();restart();">reset</a></html>

This will create a link, "reset", that invokes the two TW functions
that close all the open tiddlers and then redisplays the starting
tiddlers.

Note: if you want to embed the 'reset' link in several places, you can
put the above HTML snippet into a separate tiddler, e.g.,
[[ResetButton]].  Then you can *transclude* (embed) the HTML into
other tiddlers by writing:
    <<tiddler ResetButton>>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
"Small Tools for Big Ideas" (tm)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to