Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
ivydesign123 #1
Need Help with swap image
:confused; I've got this page with a Spry collapsible panel in it. No problems
getting that to work, but I'd like to be able to use an image in the tab and
have that image 1) change on click to expand text and then 2) change back again
on collapse text. I've got #1 figured out but can't get the image to return
back to its original state on collapse. Basically, I'm using the image as a
"show detail" "hide detail" function. HELP! I know there must be a way to do
it. Or maybe a different way than Spry. You can view the page at
[url]http://www.ivy-design.com/tip/people.html[/url]
ivydesign123 Guest
-
Swap Image ?
I have five images named image1 to image5, and five buttons named butt_1 to butt_5. What I want to achieve is a simple swap image behaivour but... -
Swap image also swap link
Hi, I have a system set up where I have 5 thumbnails and when you roll-over one of the five it makes the large image above change to the... -
image swap
I'm trying to do something that's incredibly simple in Director but can't figure it out in flash. I just want to click a button and change "image... -
Fading image swap
Hey there, Do you guys know how to do a fade in/out image with a swap image activated on over state mode? Im trying to create this effect... -
pop-up menu and swap image help
URL?? -- BR "foosball is th' DEVIL, Bobby Bouchet" "aserecuba2886" <webforumsuser@macromedia.com> wrote in message -
danilocelic AdobeCommunityExpert #2
Re: Need Help with swap image
ivydesign123 wrote:
Looks like you want to use a toggle image. Try adding this to the script block at the top of the page:> :confused; I've got this page with a Spry collapsible panel in it. No problems
> getting that to work, but I'd like to be able to use an image in the tab and
> have that image 1) change on click to expand text and then 2) change back again
> on collapse text. I've got #1 figured out but can't get the image to return
> back to its original state on collapse. Basically, I'm using the image as a
> "show detail" "hide detail" function. HELP! I know there must be a way to do
> it. Or maybe a different way than Spry. You can view the page at
> [url]http://www.ivy-design.com/tip/people.html[/url]
function toggleShowHideImages(imgID, personName){
var img = MM_findObj(imgID);
if(img.src.indexOf('-hide') > -1){ // if showing the hidden image
MM_swapImage(imgID,'','images/bio-'+ personName +'-show.jpg',1);
}
else{ // if showing the show image
MM_swapImage(imgID,'','images/bio-'+ personName +'-hide.jpg',1);
}
}
Then replace the current onmousedown with:
onmousedown="toggleShowHideImages('tmShow', 'mccleary');"
Also to get better/quicker responses, you should probably post questions that have to to with Dreamweaver and general web issues in the Dreamweaver group:
[url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=12&catid=189&entercat=y[/url]
And ask questions that are specific to Spry in the Spry forums:
[url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602[/url]
--
Danilo Celic
| [url]http://blog.extensioneering.com/[/url]
| Adobe Community Expert
danilocelic AdobeCommunityExpert Guest
-
AphaGround #3
Re: Need Help with swap image
Thanks a lot for your reply. I was having an issue like it.
[url]http://aphaground.com[/url]
AphaGround Guest



Reply With Quote

