#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    2
    Rep Power
    0

    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.
  2. #2
  3. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0
    you can try to use the attachEvent() function to attach both of your functions to all of your images onmouseover and onmouseout

IMN logo majestic logo threadwatch logo seochat tools logo