CSS Test: My 1st JavaScript + transparency
Thursday, 13. October 2005, 20:23:14
This idea came from the CSS fixed position. I needed a "follow mouse y coordinate" script and I'm no good in JavaScript, I tried to write one myself and gave up when found out that I could tweaked a script from javascriptkit worked. (It's becoming a bad habit!)
These are the different transparency rules I have found:
/* standard css opacity rule: */
opacity: 0.5
/* for Gecko Browsers: */
-moz-opacity:0.5
/* for Konquerer and Safari: */
-khtml-opacity:0.5
/* for IE: */
filter:alpha(opacity=50)
Most browsers won't understand the standard rule for transparency : opacity:0.5.(yet? I hope)
The problem: Either the hightlight block follows the cursor and you won't be able click on a link so it has to be a bit above or below.
This test has been tested it in Firefox, Opera and Safari, dosn't work in Mac IE which is normal. But I don't know if it will work for other browsers in Windows. If it doesn't work please let me know, comments are welcome.
Here's the test: CSS3 and Javascript screen reader test













