This script allows you to add a neat fade-in/out effect to images, text, whatever. The effects this script creates can only be seen in IE4+ and Netscape 6+. Older browsers such an Netscape4 should just show the element. If the elements are incorrectly rendered in NS4, try using workaround methods such as wrapping elements in ILAYER tags or something. The script still won't work, but the content should look better. |
Over 2000+ free Javascript
at JavaScriptBank.com Website
Example 1 Fade-in effect using images HTML used for this example: |
Example 2 Fade-out effect using images HTML used for this example: |
Example 3 Fade-in effect using text and CSS "buttons" Text 1
Text 2
Text 3
Text 4
Text 5
Text 6
Text 7
Text 8
HTML used for this example: |
Example 4
Fade-out effect using images with underlying text Text 1 Text 2 Text 3 Text 4 At first, these buttons were squished together in Netscape 4. I found the font style decaration for the text was at fault so wrapped all of the buttons in a DIV and set the font-size to 18px. Since the text under the buttons have their own style attributes, this workaround didn't affect them under IE4 / Netscape 6. Even though the script doesn't work in Netscape 4, I still try to make the page look about the same. I also had to wrap the individual images and text DIVs in seperate LAYER tags or the z-index got messed up. |
Over 2000+ free Javascript
at JavaScriptBank.com Website