expandable text view dhtml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris

    expandable text view dhtml

    The MS Help file pages use a nice dhtml effect which allows the user
    to click on a keyword which then causes the paragraph to expand with
    the definition of that word (in green). The source code for these
    pages shows that a javascript file called ExpCollapse.js is being
    referenced. But I haven't been able to replicate the function. Has
    anyone successfully implemented this effect?
    thanks, Chris
  • Josh Surber

    #2
    Re: expandable text view dhtml

    I would actually reccomend that rather than try to copy Micro$oft's
    programming (where they embed the definition in the js file) that you
    actually place the definition inline with the paragraph in a <span>
    with an id, then toggle it between display:none and display:inline.
    This approach is both more flexible and will degrade for the user with
    CSS disabled.

    Comment

    Working...