Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover images

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello All,

Ok here's what I'm trying to do. I want to place my mouse over image # 1 and this will cause image # 2 to change. So basically if I roll my mouse over an image # 1, how can that change image # 2. In macromedia fireworks, you can do this with the "swap image" feature. BUT in dreamweaver, how do you do this.

Here's my layout. I created "text images" named Mike, John and Lisa (These are just text created with photoshop with a gif extension). I am using these as links. These are lined up on the left side of the page. On the right side, I have an big empty image. So when I roll my mouse over "Mike", I want to get a picture of Mike to replace the empty image. and so on..

Please help
 
The easiest way to do this without coding it oneself (which should not be too hard, but I'll leave this one out :)) is to create a rollover behaviour and then changing the location of the target image. There is a parameter in the onMouseOver function call (the first parameter in fact) that specifies this target. Just give your target image a unique name and change the parameter in each onMouseOver function call. If you still want to have a rollover in the original image you can do 2 calls and separate them by a semicolon ';' - just duplicate the code and exchange the parameters.

Hope this helps...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
I am going to try it. Thanks alot for your time, I wouldn't have thought of that> I would have created it in fireworks and then copied the code to dreamweaver. I will try it and let you know.

Thanks alot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top