Hi ,

If I HAD to do something like this, I would create a Gif image that had a 
transparency where you wanted the colour change.

Then use the GIF as a background image on a item and specify a background 
colour that changed on hover.

div#name {background: #f00 url(image-name.gif) repeat;}
div#name:hover {background-color #00f;}

This method would remove the issues with pre-caching a second image that 
you cant get around with using offsets because you want to tile the image.

Kind Regards,

Kane Tapping
Web Standards Developer
Web and Content Management Services
Griffith University. 4111. Australia.
[EMAIL PROTECTED]
Phone: +61 (0)7 3735 7630





"Laert Jansen" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
11/04/2008 08:54 AM
Please respond to
wsg@webstandardsgroup.org


To
wsg@webstandardsgroup.org
cc

Subject
[WSG] How to make diagonal lines change color?






Hello everyone. 

Well there´s something I want to do but I have no idea if it´s possible to 
be done and how would I do this.

My website (www.laertjansen.com) has some two color diagonal lines as a 
bg.

What I want to do is: On the mouse over color X it becomes color Y 
                               On the mouse over color Y it becomes color 
X

Is it possible to be done?

Thanks a lot for any help

-- 
Laert Jansen
www.laertjansen.com

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
******************************************************************* 


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to