Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2010, 11:50 PM   #1
New Member
 
Join Date: Feb 2010
Posts: 10
Post Dreamweaver Behaviours.

Hi I'm new to web development. I'm just working through a few exercises to practise my skills.
I'm currently working on an image viewer exercise. Using divs I have a large image and several thumbs positioned on the page. The image swap works great. My problem is with the fade/appear behaviour. I want it so that when I select thumb1 it fades to 50% and when I select thumb2, thumb1 returns to 100% and thumb2 fades to 50% and so on.

Currently when I select thumb1 it fades to 50% and when I select thumb2 thumb1 appears at 25% and returns to 50%.

Can anyone help me?
kasio99 is offline   Reply With Quote


Old 02-08-2010, 02:42 PM   #2
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

Sounds like you are using javascript to accomplish this, can you post the script?
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Old 02-08-2010, 11:35 PM   #3
New Member
 
Join Date: Feb 2010
Posts: 10
Post script

After a massive head ache I think I may have solved my problem though it's not exactly how I want it.

Your help on any improvements I can make would be much appreciated!

</head>

<body onload="MM_preloadImages('Images/Forks.jpg','Images/Forks2.jpg','Images/Forks3.jpg','Images/Oldbike.jpg')">
<div id="container">
<div id="photo1"><img src="Images/Oldbike.jpg" alt="Old bike pic" name="large" width="900" height="600" id="large" /></div>
<div id="photo2"><img src="Images/Oldbike-thumb.jpg" alt="oldbike thumb" name="thumb1" width="120" id="thumb1" onclick="MM_swapImage('large','','Images/Oldbike.jpg',1);MM_effectAppearFade(this, 1000, 100, 50, false);MM_effectAppearFade('thumb2', 1000, 50, 100, false)" /></div>
<div id="photo3"><img src="Images/Forks-thumb.jpg" alt="forks" name="thumb2" width="120" height="80" id="thumb2" onclick="MM_swapImage('large','','Images/Forks.jpg',1);MM_effectAppearFade(this, 1000, 50, 100, false);MM_effectAppearFade('thumb1', 1000, 50, 100, false)" /></div>
<div id="photo4"><img src="Images/Forks2-thumb.jpg" alt="forks2" name="thumb3" width="120" height="80" id="thumb3" onclick="MM_swapImage('large','','Images/Forks2.jpg',1)" /></div>
<div id="photo5"><img src="Images/Forks3-thumb.jpg" alt="fork3" name="thumb4" width="120" height="80" id="thumb4" onclick="MM_swapImage('large','','Images/Forks3.jpg',1)" /></div>
</div>
</body>
</html>
kasio99 is offline   Reply With Quote
Reply

Tags
behaviours, dreamweaver, fade/appear, image viewer

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:51 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.