Results 1 to 5 of 5

Thread: image button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120

    image button

    Could anyone tell me is possible that I put image on the reset button? thanks very much
    MM

  2. #2
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Create an image with the picture you want to use and

    <img src="myReset.gif" onClick="blah blah">

    I dont know exactly the reset code. Sorry
    Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120

    thanks

    Could explain blar blar a little bit more?
    MM

  4. #4
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Well its not actually blar blar, its blah blah. Meaning when that image is clicked you may call a function or a subroutine that resets the form.

    Lets say you make the button and name it myReset.gif
    And that the form is named "myForm", with a textbox for a name called "txtName"
    <html><head>
    <script language="JavaScript">

    function resetForm()
    {
    document.myForm.txtName.value = ""
    }
    </Script>
    </head>
    <body>
    <form name="myForm">
    <input type="text" size=15 name="txtName">
    <img src="myReset.gif" onClick="resetForm()">
    </form>
    </body></html>


    Hope that is better than blah blah...
    Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Code:
    function resetForm() 
    { 
         myForm.reset();
    }
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width