Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning JavaScript
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2003, 12:14 PM
Authorized User
 
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Once more, button instead of image

Phil
Once last time, I promise... The code to change this from a button to an image, please.

<INPUT NAME=cmdStartQuiz TYPE=button VALUE="Start Quiz"
      onclick="return cmdStartQuiz_onclick()">

__________________
Rudy
 
Old November 1st, 2003, 01:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

<img name="provSelectImg" src="images/OpenCityEmpty.gif" onmouseover="OpenCity.gif" onmouseout="OpenCityEmpty.gif" onclick="DO_SOMETHING()" style="cursor=Hand">

HTH

Always:),
Hovik Melkomian.
 
Old January 5th, 2004, 12:22 AM
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Larry, I don't know if you ever got things to work as you wanted, but I see you posed the question twice. I had this issue come up at work on a project. The magic that I found was to have <INPUT ... TYPE (see my example below)equal IMAGE, then have <INPUT ... IMC SRC equal the location of the image you want to use. This may be what you're looking for?

<INPUT NAME=cmdStartQuiz TYPE=image IMG SRC = "C:\Documents and Settings\Dad\Desktop\sunset.jpg" VALUE="Start Quiz" onclick="return cmdStartQuiz_onclick()">

OC





Similar Threads
Thread Thread Starter Forum Replies Last Post
Image button onclick msbsam ASP.NET 2.0 Basics 0 December 30th, 2006 04:47 AM
Dynamic image button Angel6784 ASP.NET 2.0 Basics 2 August 2nd, 2006 01:25 PM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
image as button hosefo81 HTML Code Clinic 2 February 11th, 2004 03:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.