Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-06-22 08:39 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (122 votes). Check out past polls.