logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-26-2009, 02:53 AM   #1
cgravelle
 
Join Date: Mar 2009
Posts: 3
Default Image swap on click away

I have a row of buttons on the left side of my site used to view an online portfolio. When they are clicked the following happens: an image swap occurs at the button (it is swapped with a version of the button with a ring around it) and also two other images on the page swap. The other page swap images are working fine, but I have not figured out how to make the button image swap back to the original version when a different button is clicked (I want it to return to the no-ring version.)

Any assistance is greatly appreciated!
cgravelle is offline   Reply With Quote
Old 03-26-2009, 05:38 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

In the swap behavior, set the other images to revert back.
domedia is offline   Reply With Quote
Old 03-26-2009, 06:17 PM   #3
cgravelle
 
Join Date: Mar 2009
Posts: 3
Default

Thanks, domedia. But the only revert I've found is on mouseover, not on click. I want all images to remain until clicks. How do I do this? Sorry for the newb question, but I've been floundering on this for days.
cgravelle is offline   Reply With Quote
Old 03-26-2009, 09:31 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

My memory is not what it was.

This should be pretty simple. Anyone?
domedia is offline   Reply With Quote
Old 03-27-2009, 03:19 AM   #5
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

on focus and onblur perhaps
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-27-2009, 04:10 PM   #6
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

The logic is that when you click one image, you set all other images to revert back to the original if they had an imageswap applied to them. I did this in DW3, so I know it's there.
domedia is offline   Reply With Quote
Old 03-27-2009, 06:07 PM   #7
cgravelle
 
Join Date: Mar 2009
Posts: 3
Default

Thanks for working this issue, domedia. Yes, I want the button image restored (ringed back to not ringed) but the disjointed swaps are not to revert to original but rather to change when their corresponding button is clicked. The disjointed image swaps are working fine. I just can't figure out how to image restore the button image when one clicks away.
cgravelle is offline   Reply With Quote
Old 03-30-2009, 03:33 AM   #8
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Check out onblur as ed suggested.
domedia is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com