Free web development scripts for the webmasterDevelopment Scripts


 social media marketing services
 Site Navigation
Clicky Web Analytics
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 1 user online
 o Most users online: 67
 o Home
  o Javascripts
   o Image and Graphics
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Paper Free Invoicing
 o Tutorials
 o Expired Domain Crawler

Image opacity & JavaScript (Rated 0)

Description:

This script will take an image and gradually fade it in and out using image opacity and Javascript.

Code starts here


<!-- Image fading script http://www.designplace.org. -->
<!-- written by tux tux@designplace.org -->
<!-- change image id, path and dimensions below to your image dimensions! -->

<img id="tuxie" src="path/images.gif" width=116 height=123
style="-moz-opacity:30%;filter:alpha(opacity=30)">

<script>
value=0
var plus=1
var minus=0

function IE(){
if (value<80&&plus)
value+=5
else{
plus=0
minus=1
}

if (value>30&&minus)
value-=5
else{
plus=1
minus=0
}

document.getElementById("tuxie").filters[0].opacity=value
}


function MOZ()
{
if (value<80&&plus)
value+=5
else{
plus=0
minus=1
}

if (value>30&&minus)
value-=5
else{
plus=1
minus=0
}

document.getElementById("tuxie").style.MozOpacity=value+"%"
}

if (window.sidebar)
{
setInterval("MOZ()",200)
}

if (document.all)
{
setInterval("IE()",200)
}
</script>


Submitted by Devscripts on 13-02-2003 20:09


Recent Additions (from all categories)

(PHP) T Shirt Printing Software

(PHP) Youtube Video Organizer Script

(PHP) MP3z - MP3 Search Engine Script

(PHP) Recipez- PHP Recipe Script

(ASP) Stop image hotlinking and downloading. Web image protection is easy with Image Trapper.

Top Rated Scripts

(Javascripts) Javascript Delayed Redirection Rating: 5

(PHP) Random Links and images with PHP & MySQL Rating: 5

(PHP) RSS/XML news feed headline grabber! Rating: 5

(PHP) Random Signatures/Avatars Rating: 5

(Javascripts) Detecting Client Web Browser Rating: 5

© Copyright 2003 - Devscripts.net  Web Analytics