posted 14 years ago
Yes, unfortunately you can't post HTML bits, but you might consider creating a text document and linking to it.
The gist of what you want to do is relatively simple. You want to use onclick event handlers for each link in your menu, pointing to a function that will determine which event was triggered and then retrieving the correct text for that function. You can do this via hidden div elements on your page (e.g. having hidden elements that already contain text suddenly appear), or retrieving the text using the XMLHttpRequest object (Ajax, in other words). Either method is relatively simple to implement, and if you use a JavaScript library like jQuery it's trivial.