Quick Search for:  in language:    
script,lets,specify,images,mouseover,image,fa
   Code/Articles ╗ |  Newest/Best ╗ |  Community ╗ |  Jobs ╗ |  Other ╗ |  Goto ╗ | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Java/ Javascript Stats

 Code: 229,180. lines
 Jobs: 100. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login





Latest Code Ticker for Java/ Javascript.
PopUp Calendar without a .js file
By Maceo on 1/23


Click here to see a screenshot of this code!Credit Card Checker 1.0
By FAzle AreFin on 1/23

(Screen Shot)

Click here to see a screenshot of this code!Status Bar Scrolling Messages
By Scott Mutter on 1/23

(Screen Shot)

Click here to see a screenshot of this code!JLibrary 2.0
By Salah Thubaiti on 1/22

(Screen Shot)

Simple Paint
By ABDULAZIZ B ALSALEM on 1/22


_Restrict / Delete characters from a text box string
By D Warsham on 1/19


Vending Machine Example, GUI Version.
By JJG on 1/16


Vending Machine Console Example
By JJG on 1/16


Linear Fit From X/Y Coordinates
By JJG on 1/16


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

Javascript Rollover Fade

Print
Email
 

Submitted on: 6/27/2003 4:15:32 AM
By: chris mcintosh 
Level: Intermediate
User Rating: By 1 Users
Compatibility:JavaScript

Users have accessed this article 3564 times.
 

(About the author)
 
     This script lets you specify two images and on mouseover of the image it fades to a different image. perfect for dhtml fade navs.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <"script" type="text/javascript"> function blendCham(which) { imCham.filters.blendTrans.Apply(); imCham.src = which; imCham.filters.blendTrans.Play(); }
<"IMG" ID="imCham" SRC="logoraw.png" STYLE="filter:blendTrans(duration=2)" onmouseout="blendCham('logoraw.png')" onmouseover="blendCham('logoraw2.png')">

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
6/29/2003 3:53:03 AM:
it don't work
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/30/2003 8:10:45 AM:JohMar
didn't work for me either
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/30/2003 10:59:26 PM:Mr.PoO
well duh, you need the picture
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/1/2003 11:11:26 AM:Mel_Arquiza
It works... 1. Create to image a.png and b.png. 2. Cut and Paste this text below on notepad. .<"HTML"> .<"HEAD"> .<"SCR IPT" type="text/javascript"> .function blendCham(which) .{ .imCham.filters.blendTrans.Apply() ; .imCham.src = which; 'imCham.filters.blendTrans.Play(); ;} .</script> .</head> .<"BODY"> .<"IM G" ID="imCham" SRC="a.png" STYLE="filter:blendTrans(duration=2)" onmouseout="blendCham('a.png')" onmouseover="blendCham('b.png')"> .</BODY> .</HTML> 3. Remove all the period infront. 4. Remove "" on "IMG","HTML","BODY","HEAD","SCRIPT".
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/15/2003 12:41:30 PM:MarK
Very nice! Works perfectly!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/25/2003 2:28:45 PM:
I can't make this work for more than 1 picture, how do I do it?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Java/ Javascript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyrightę 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.