PDA

View Full Version : Swap image doesn't work


chartwise
04-07-2008, 05:46 PM
I'm using Dreamweaver 8 and the Swap Image behaviour

I can get an image to swap on a page using text links under the first image as rollovers and on mouseout it goes back to the original image.

Can someone tell me how code it so that if you click on a text link on the page the new image will stay on the page until you click on another link.
On the Swap Image behaviour I have tried changing mouseOver to onClick but then nothing happens. If I delete the Swap Image Restore, still nothing happens when a link is clicked.

All help much appreciated

jcdevelopment
04-07-2008, 06:47 PM
do you have a link to your site so we can take a look at it?

oldcrazylegs
04-14-2008, 07:27 PM
If you are using style sheets to replace the image on :hover then use the same image in the :active psuedo class. when you click somewhere else on the page or another link the image will change back.

effpeetee
04-15-2008, 09:49 AM
Someting like this?

http://exitfegs.co.uk/Alice.html



Frank

DakotaChick
04-15-2008, 06:14 PM
Add an OnClick behavior through the behaviors panel. MouseOvers will still swap images and should go back to the previous image selected on MouseOut if you set up the behaviors properly. You might want to use Z-Indexed layers to accomplish what your looking for as well.

Something like This (http://www.diabolicwebdesigns.com/totaltraining/WorkflowProjectFiles/stuff.htm). (built during a total training course)