★ wanayoo — archive 1999 http://www.devshed.com/Client_Side/JavaScript/Mini_FAQ/comments.html/c1157/Nouvelle recherche | Portail wanayoo

Developer Shed
Thursday, 08.17.2000  
Sooner, or later, as we start learning and using JavaScript, we will all have questions we want answered. One author, Danny Goodman, has compiled a list of typical questions people ask when starting out with JavaScript.

HOME > CLIENT SIDE > JAVASCRIPT > ARTICLE > COMMENTS    PHP SOURCE

Power Search
Free Newsletter:


Client Side
• DHTML
• Flash
• Graphics
• JavaScript
• XML

Server Side
• Administration
• JServ
• MySQL
• Perl
• PHP
• Python
• Roxen
• Zend
• Zope

Tools
• HTML Editors
• Graphic Editors
• FTP Programs

Dev Talk
• Forums
• Mailing List
• Book Samples
• Brain Dump
• Developer News
• Feedback

ClipScripts
• Add script
• Edit script

Other Stuff
• DevShed RDF
• Propaganda!


Advertise
on DevShed
.
JavaScript Mini-FAQ
Sooner, or later, as we start learning and using JavaScript, we will all have questions we want answered. One author, Danny Goodman, has compiled a list of typical questions people ask when starting out with JavaScript.

Name: Richard
Subject: Re: Submit Form Rollover Image
Date: 08-20-1999 09:33AM

I had to write a seperate image swap routine to get it to work for me - and only in IE :-( I't won't break Netscape though :-)


function changeButtonPic(cmdButton, src) { 
//This is used in the rollover events to change one image to another on form buttons 

cmdButton.src = /old?u=http%3A%2F%2Fwww.devshed.com%2FClient_Side%2FJavaScript%2FMini_FAQ%2Fcomments.html%2Fc1157%2Fsrc&y=1999 

} 

and is called with:


input type="image" src="/old?u=http%3A%2F%2Fwww.devshed.com%2FClient_Side%2FJavaScript%2FMini_FAQ%2Fcomments.html%2Fimages%2Fbtn_submit_up.gif&y=1999" name="Submit" border="0" align="top" onMouseOver="changeButtonPic(this, '../images/btn_submit_ov.gif')" onMouseDown="changeButtonPic(this, '../images/btn_submit_dn.gif')" onMouseOut="changeButtonPic(this, '../images/btn_submit_up.gif')"

BTW the above smippet should have gone inside the usual tag chars (less-than, greater-than) but I couldn't work out how to do it :-/



Other posts in this thread:
 Top
 • Submit Form Rollover Image  Tony  08-19-1999 01:35PM 
       • Re: Submit Form Rollover Image  Richard  08-20-1999 09:33AM 
       • Re: Submit Form Rollover Image  Tony  08-25-1999 02:38PM 


Reply to this post:
Name:

Preview Comment.
Notify me of replies to this message.
Email:
Subject:
Tip: Put any source code between [code][/code] tags to increase readability


Visit the JavaScript Forum!

New On DevShed:
• MySQL Developer Contests PostgreSQL Benchmarks
• PHP 101 (part 3) - Chocolate Fudge And Time Machines
• MaxSQL Announced
•  PHP 101 (Part 2) - Shakespeare's Rose
• PHP 101 (Part 1) - Secret Agent Man
• The Search For The Perfect Web Host
• Perl 101 (Part 5) - Sub-Zero Code
•  Submit Your News..

Hot Forum Topics:
• Credit Cards
• Backing-up in Netscape
• Want help from advanced PHP users
• making mysql timestamp look friendly
• display performance
• display performance


Adsmart Network ad
Copyright © 1997-2000 ngenuity. All rights reserved. Privacy Policy.