A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 11: Plug-in 85 - Toggle Text

A great use for JavaScript is to manipulate the contents of a web page without having to reload it. An effect I always feel is quite professional is the use of toggling to switch elements in and out.

The Figure shows this plug-in being used to display a short explanation of photosynthesis, along with a link to a longer definition.