HI everyone I want to do a mouse over hover effect on my clickable image. I can't figure out how I can do it.

 

Basically I want to do a mouse over effect where my clickable image fades when clicked.

Views: 40

Replies to This Discussion

You can do it one of two ways, and neither is elementary, unfortunately. Most people create two images, one with less opacity. Then, they change the image out, for the hovered state. I'll either try to find or write a tutorial some day in the future, using 2 images.

 

Then, you can also use filter and opacity settings. But, that truly gets convoluted. You have to write extra code for it to work across all browsers. And as usual, IE is the problem.

 

Sorry, wish there was a quick answer to this,

Jen

If you want to make the hover effect on specific images , use HTML:

 

<img src="yourimagelink.jpg" style="opacity:0.5;filter:alpha(opacity=50)"

onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
onmouseout="this.style.opacity=0.5;this.filters.alpha.opacity=50" >

 

If you want your whole NETWORK have this hover effect , use CSS :

img {

    opacity:0.5;

}

 

img:hover{

    opacity:1;

}

 

Hope that helps.

Thanks Elson!

Only problem, the 2nd  example doesn't work in IE.

 

To make your example work in IE as well, we need something like this, like in your first:

img {opacity:0.5;filter:alpha(opacity=40)}
img:hover{opacity:1;filter:alpha(opacity=100)}

 

Thanks for helping out with this. I wanted to add more, but your example, in addition to the filter alpha, should help do the trick!

 

Best,

Jen

Yeah IE the problem . 

I sure second that! LOL! IE - - always the problem child.

:-)

Yeah and there's still a lot of people using IE which makes IE still important .

Yes, of course. Any good designer must test across all browsers, as I know you do. I just hope IE catches up someday.

;-)

RSS

Members

© 2024   Created by JenSocial.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Home
VIP Ning Tips