Forum Moderators: open

Message Too Old, No Replies

how do i make text when rolled over

display an image in another place

         

kosap1

2:20 am on Dec 7, 2003 (gmt 0)

10+ Year Member



i am making a page and i need to make a text link and then whwn rolled over i need it to display an image in another place ex.

link image when link is rolled over

kosap1

2:33 am on Dec 7, 2003 (gmt 0)

10+ Year Member



sorry
link____________________image when link is rolled over

tedster

3:21 am on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, kosap1.

The approach needed is called DHTML - which is actually a combination of JavaScript and CSS. The basic idea is that a div somewhere on the page is given a display:hide rule. Then when a certain event occurs (onClick and onMouseover are the most common) the display rule is changed to display:visible.

If you're researching this, it's often called show/hide divs. It can get complicated depending on many factors on the page, but here's one thread we have on the topic:

[webmasterworld.com...]