Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
JavaScript
Posted 3.73 Years Ago
743 Views
Received 0 Ratings
More Codes By This Author
Pick A Random Array Eleme...
Bitwise Settings (Class)...
Compare Ratings, and Retu...
Settings Class
Dynamic Parameters (Using...
Articles By This Author
[PHP] - Lets kill the com...
How to use Memcache on Wi...
PHP Sessions = Member Dat...
Speed Up Delivery of your...
AJAX - When to use it?

Easily make anything fade in and out of transparency


Description
Adding a rel='hover_effect' effect to any HTML tags will turn the tag to a 0.5 opacity and on mouse over it will fade it quickly to full opacity, on mouse out it will fade back to 0.5.

If javascript is disabled, the html tags with rel='hover_effect' will simply do nothing. So it wont cause any problems for people with JS disabled.
Technical
Requires the prototype and scriptaculous frameworks.

Example of use:

<img src='image.png' rel='hover_effect' />

Note: Does not work brilliantly in IE due to IE's rubbish effects engine... opera, firefox etc do it very smoothly :-)

Install: Just add the code to the <head> part of the page inside <script> tags.
Source Code
Comments
Please login to post comments.
Page 1 of 1
More "JavaScript" Source Codes By This Author
Recently Posted "JavaScript" Source Codes
Recently Rated "JavaScript" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved