Using mouseover on images in menu to change text

D

DaveM

I'm totally hung up on this one. I have a page with 10 images on the
left hand side. When an end-user mouses over the images I want text to
appear on the right hand side. There will be different text for each
image (button) and all of the text should land in the same place on the
right hand side. I think I need div tags but I'm not sure how to make
this happen.
 
A

annoyingmouse

<img src="wherever" alt="whatever"
onmouseover="document.getElementById('whatever_you_want_to_name_your_div').innerHTML=<p>Hello
World.</p>"
onmouseout="document.getElementById('whatever_you_want_to_name_your_div').innerHTML=<p>Default
content.</p>"/>

At least I think that should work. You'll need to put your text in a
nameable HTML container.

Cheers, Dom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top