Page 1 of 1

Changing text when hover on an image - not in an input field

Posted: Sat Oct 01, 2005 4:44 am
by pilau
Yo.

My new website need a side menu that will have a few medium-sized buttons on it, and when the mouse hovers on one button, a different text should be presented on the right.
How should that be done? I am not using input fields, So I couldn't just value = "text" it.

The text presented would probably (or maybe - trivialy) be inside a span or a TD.

Example of the page layout:

Code: Select all

-----------------------------------------
                   |
BIG BUTTON1        |
                   |    //Text will be
-------------------|    //loaded here.
                   |
BIG BUTTON2        |
                   |
-------------------|
                   |
BIG BUTTON3        |
                   |
-------------------|
                   |
BIG BUTTON4        |
                   |
-----------------------------------------

Posted: Sat Oct 01, 2005 4:57 am
by n00b Saibot
something to help

Code: Select all

<span id="content">
</span>
<img onmouseover="document.getElementById('content').innerHTML='Hoorah!'">

Posted: Sat Oct 01, 2005 5:13 am
by pilau
F*** Saibot you're a magnificent geinous my man!