expandable text view dhtml

C

chris

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
 
J

Josh Surber

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top