Mouse-over or pop-up box displaying multiple lines of text

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I am working on documentation for the computer algebra
system Maxima. Here is an example.
The colored boxes show the input and output for examples.
I would like to somehow display just the input lines
separately so that people can copy them if they want.

I thought about making a separate box on the page but that would
take up space. I know that a DIV element can have a TITLE but
apparently that can only be one line of text, and also the user can't
copy the title text.

Is there some easy way to make a separate box to somehow
display the input text? Maybe with a "click here to see the input"
button to launch it. Is Javascript more or less the right way
to do that? Something that works for all major browsers would
probably be best.

Anyway if you have suggestions, I am interested to hear about it.

Robert Dodier

Re: Mouse-over or pop-up box displaying multiple lines of text wrote:

Quoted text here. Click to load it

Yes, JavaScript can do all these.

Site Timeline