August 15th, 2003, 06:54 PM
Using CSS for highlighting image script?
Thanks for your help.
I have a gallary of thumbnails on which I am using this script on. Its a highlighting image script, the image appears dull and faded until the mouse hovers over it. With the script inserted, all that needs to be done is to add
style="filter:alpha(opacity=10)" onmouseover="nereidFade(this,100,30,5)" onmouseout="nereidFade(this,10,50,5)"
to the <img> tag. I can do that, and everything works fine. However, is there any way to have that automatically added to every image tag using CSS? It would be much easier than having to add that to each one of 500 images.
Thanks, let me know if you need anymore information.
August 16th, 2003, 03:42 AM
you can try to use the attachEvent() function to attach both of your functions to all of your images onmouseover and onmouseout