Mouseover help functions - is this possible

Soldato
Joined
16 Nov 2003
Posts
9,682
Location
On the pale blue dot
I am designing a website where I was hoping to have two main sections - one being content and the other a sidebar with help information. When hovering over a control such as a button or text box I'd like some relevent help info to be displayed in the sidebar. Now I'd assume that I could use a javascript and onmouseover() to make property changes to other elements, but is is possible to change the content?

I'm not asking anyone to write the code for me just tell me if this'd be feasible?

The system will be mainly in PHP, using a MySQL backend to get the help info.
 
SiD the Turtle said:
I'm not asking anyone to write the code for me just tell me if this'd be feasible?
Yes. One simple method would be to just change the CSS class/property for the relevant block of sidebar content on mouseover. Such as changing the display property from display: none to display: block; i.e. all blocks start out hidden, and then are only revealed when you mouseover.

You can also dynamically insert and remove parts of the DOM (add textNodes etc.) with javascript, so it's quite feasible to insert a new block of content into the page when you mouseover.
 
Back
Top Bottom