How I can Convert one Color to Another Color
-
Hi all, I have a dynamic menu in asp.net that its BackGround is an colory image that convert dark blue to light blue, but if my menu be longer, this image be repeat more and more... Now how I can convert one color to another color with java script to height of menu? for example dark blue to light blue. Thank You
Hoda
-
Hi all, I have a dynamic menu in asp.net that its BackGround is an colory image that convert dark blue to light blue, but if my menu be longer, this image be repeat more and more... Now how I can convert one color to another color with java script to height of menu? for example dark blue to light blue. Thank You
Hoda
Don't use images, use background-color if possible. Otherwise it depends on your structure. Is the menu one element or is it made up of many elements? Are they table cells, divs, spans??? Could you set the dark blue image as 100% to cover the entire menu then position light blue element where necessary? A lot of ways to skin the cat.
only two letters away from being an asset
-
Hi all, I have a dynamic menu in asp.net that its BackGround is an colory image that convert dark blue to light blue, but if my menu be longer, this image be repeat more and more... Now how I can convert one color to another color with java script to height of menu? for example dark blue to light blue. Thank You
Hoda
If I understood your question, you have a background you wish to transition (blend) from one color to another, but want the blend to dynamically scale to the height of the menu. I believe this article will solve your problem, using JavaScript: http://www.elctech.com/snippets/javascript-color-fade-function-find-the-hex-value-between-two-hex-values[^]
Regards, Gary