Hi Eric and Dave

I tried to use the script in my version of NoteStorm = Nota⊕Bene
http://notabene.tiddlyspot.com/#ToggleMenu
But as you can see when clicking the script - it "drops" the tiddler
far down the page ... How do I prevent this behaviour?

YS Måns Mårtensson

On 15 Okt., 19:12, Eric Shulman <elsdes...@gmail.com> wrote:
> > > <html><nowiki><a href="javascript:;" onclick="
>
> > a. I put it in my topmenu table, clicked it, and nothing happened
>
> hmm... it should have worked...
>
> > b. I'm guessing this will shrink the MainMenu but will not expand the
> > tiddler area if the tiddler area has a stylesheet width property?
>
> You didn't say you wanted to change TWO settings... you only said
> "changes the size of the mainmenu", so that's what I wrote.  To adjust
> *margin* of the story column ('displayArea') to match the adjusted
> mainMenu *width*, use:
>
> <html><nowiki><a href="javascript:;" onclick="
>    var w='20em'; // alternative width
>    var mm=document.getElementById('mainMenu');
>    var da=document.getElementById('displayArea');
>    mm.style.width=mm.style.width==w?'':w;
>    da.style.margin=mm.style.width==w?w:'';
> ">toggle menu width</a></html>
>
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to