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 02-28-2010, 08:17 AM   #1
bnw
 
Join Date: Feb 2010
Posts: 1
Default onmouseover img change --> color link and viceversa

Hello,

First the example code - very simple:
Code:
<a href="noon.php">TEST</a>
</p>
<a href="noon.php">
<img src="projecten_thumbs/noon_1.jpg" alt="noon" width="67" height="100" />
</a>
--> when I Hover the link the border color of the link AND the img must change
--> when I Hover the image the color of the image AND the link must change
--> when I Out the link the border color of the link AND the img must change
--> when I Out the image the color of the image AND the link must change

The purpose is simple, but how to implement it, I have no idea! I tried already a bunch of alternatives in DW (Change Propertie) but nothing is working until now!

Somebody who can help me?

thx
bnw
bnw is offline   Reply With Quote
Old 02-28-2010, 08:29 AM   #2
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

You need to set the link styles using CSS;

a:link {border 1px solid #f00;}
a:visited {border 1px solid #f00;}
a:hover {border 1px solid #00E;}
a:active {border 1px solid #00E;}

That should handle the border colours (change hex values as appropriate). Then use the rollover image behaviours in DW to change the image (if that's what you want to do).
Corrosive 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 04:51 PM.


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