Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Request: Collapsible Side Bar (working solution)

by SciDude (Friar)
on Jul 11, 2005 at 19:52 UTC ( #474074=note: print w/ replies, xml ) Need Help??

in reply to Re: Request: Collapsible Side Bar (working solution)
in thread Request: Collapsible Side Bar

This is exactly what I had in mind! Thank you.

Although I would prefer the "toggle" above the nodelets or on the side of the page - your version does what I wanted with the minimum of complexity. Bravo!

The first dog barks... all other dogs bark at the first dog.
Comment on Re^2: Request: Collapsible Side Bar (working solution)
Replies are listed 'Best First'.
Re^3: Request: Collapsible Side Bar (working solution)
by kelan (Deacon) on Jul 11, 2005 at 20:08 UTC

    You can modify the placement by changing the add_toggle_link function. In there you see this call:

    var tbl = document.getElementById('titlebar-bottom');
    What it's doing is finding the element to place the toggle link after; in this case the element's id is "titlebar-bottom." One easy way is to always have a certain nodelet on top; in my case that is the XP Nodelet. Then you could change that search to:
    var tbl = document.getElementById('XP_Nodelet');
    And put the link before, instead of after the one it finds.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://474074]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-05-26 09:55 GMT
Find Nodes?
    Voting Booth?