Forum Moderators: travelin cat

Message Too Old, No Replies

Highlighting text or images with transparent color

         

chaitanya

6:06 am on Jul 23, 2003 (gmt 0)

10+ Year Member



Hi,

For my webpage, i need a color through which i can view the background Text.i.e., a transparent color through which the background is visible.. Is it possible to get such a color on any browser through JavaScript? or is there any other option through which i can get the same effect
Now in my current implementation, when the user selects some part of the text, i draw a layer with some background color. I place that layer on the bottom of the text by setting its z-index value. i opted this coz if i place it on the top, the text will not be visible as it is covered by the colored layer. Now this gives me a problem when i need to highlight images or other graphics e.t.c., which appear along with the text. so if i can access a color through which the background text or images are visible, the problem will be solved.

As an alternate i tried with setting alpha values for colors using VML. it works fine but VML is not supported by all the browsers.so i ruled out this.

how can i perform this on MAC as IE on mac doesn't support transparency of colors

can some one help me out.....

-------Chaitanya.K

Yidaki

7:38 am on Jul 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unfortunately CSS opacity [google.com] as well as other ms filters (shadows) is not supported on the mac.

Maxformed

3:10 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



I had a similar problem, and ended up creating graphics with all swap/rollover versions in Fireworks and exporting slices. Then left the text on top layer in Dreamweaver.

My current system has popup menus, and using the above-mentioned technique I've "faked" transparency. Quickest route.

Let us know if you find something better.

Max

chaitanya

5:31 am on Aug 1, 2003 (gmt 0)

10+ Year Member



So is there any other way out to give an highlighting effect on text & images using just "JavaScript" on Mac.

hope someone will help me out