Hi,

I have a site whereby the user can select the colour of links for their
individual sections.

What I would like to do is to get the exact opposite colour of the one that
they choose and use that in the 'hover over' option of the <a> tag.

The value for the colour is stored in hex.

To add to this, the user can also choose the background colour. I have made
sure that they cannot have the same background colour as colour of the link,
but obviously if the background colour is the exact opposite of the link
colour, then when they hover over the link, it would 'disappear'. In this
case I would like to choose HALFWAY between the two sets of colours. I know
that this might not always produce the best colour combinations, but I'm
trying to get it so that the links always 'stand out'. I cannot let them
choose the colour of the 'Hover Over' option unfortunately.

Any suggestions as to how to achieve this, especially the calculations, or
for that matter improve upon it, would be most appreciated.

Regards
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to