.
Navigation  
  Home
  Ask Me
  Graphics
  About
  Interactive
  Tutorials
  => Adding Swirls on Photoshop
  => Mirror Reflection on Photofiltre
  => CSS TUTORIALS
  => Add A Background To A Link
  => Mouse-Over Transparency
  => Drag And Drop
  Site Extras
  Order
  Portfolio
  The End
©qshowgraphics.de.tl
Mouse-Over Transparency
Mouse-over Transparency

1. To achieve this effect, we just add some opacity filters within our image element. Here’s the code:

<img src=”image.gif”
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”
alt=”image” />


2.opacity:0.5 and opacity=0.5 dictate how the filter will affect an image seen in Firefox. The value can be anywhere from 0 to 1. the lower the decimal, the more transparent it will be.filter:alpha(opacity=50) Dictates how the filter will affect an image seen in Internet Explorer.
3.This value can be anywhere from 0 to 100. The lower the number, the more transparent it will be. I suggest keeping the ratio between the Firefox & Internet Explorer filter the same so that it looks the same regardless of your visitor’s browser. (ex. if the firefox one is 0.4, make the IE one 40. if the firefox one is 0.75, make the IE one 75)
4.The properties that follow “style” are the same as the ones that follow “onmouseout” because we want the image to have the same transparency levels before & after we’ve hovered our mouse over the image.
5.If you want the image to always have partial transparency regardless of whether or not we’ve hovered over the image, we just take the “onmouseover” and “onmouseout” information out of the HTML code:

<img src=”image.gif”
style=”opacity:0.5;filter:alpha(opacity=50)”
alt=”image” />

Still having some problems? Well, contact me and I'm sure we can figure it out together!

 

 

 

My Wishes For Qshow  
  1. Add more content often.
2. Be less Hiatus
3. Capture Screenshots for Tutorials
 
Order-To Do  
  Your Site/ Your Wish
Your Site/ Your Wish
Your Site/ Your Wish
Your Site/ Your Wish
Your Site/ Your Wish
Your Site/ Your Wish

Currently ACCEPTING!!!
 
DISCLAIMER!  
  THIS IS AN DISCLAIMER! MUST READ! QSHOW GRAPHICS IS NOT AN SITE OWNED BY AN COMPANY! BUT IT IS OWNED BY A 13 YEAR OLD GIRL! DO NOT TAKE ANY OF THESE GRAPHICS WITHOUT MY PERMISSION! IF YOU TAKE IT, CREDIT ME AND MY SITE OR LINK BACK! THIS IS NOT A JOKE! IF YOU BREAK THESE RULES, I WILL ADD YOUR SITE TO THE BLACK-LIST, NOT ONLY THAT, I WILL BAN YOUR I.P., AND I WILL REPORT TO YOUR HOST WHAT YOU DID WITH AN PHOTOGRAPHIC EVIDENCE!  
Site Stats  
  Web Owner: Aqua-Marine
Co-Web: Isadora
E-mail: qshowgraphics@gmail.com
Domain: qshowgraphics.de.tl
Host: Own-Free-Website
Since: 2010-04-12
About: Graphics, Celebs
LayoutName: Rainbow
Layout#: #2
 
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free