Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question *Update* Another question with form buttons

    Hopefully I'm not asking a simple question but I've been looking on how to do this for awhile.

    If I have a form and I want to make the button something better than the standard button how would I go about doing that? Make an image that would hyper link to the form button or could I simple replce the form button. ANy suggestions are welcome. Thanks in advance.
    Last edited by lavi557; 10-25-2002 at 07:51 AM.

  • #2
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sure you can do that

    place this inside of your <form></form> tag in place of your button.

    <input type="image" src="pic.gif" type="submit">

    you can also just make a background picture in your button to make it more intresting, with CSS.

    <input type="button" onClick="window.location='URL'"
    style="background-image:url(1.gif);" value="text">

    or maybe make your buttons more intresting with a mouseover effect, again with CSS

    <style type="text/css">
    .button {
    background-color:white;
    border:2px outset black

    }
    .buttonOverClass {
    background-color:black;
    border:2px inset white

    }
    </style>
    <input type=button value=Button class=button
    onmouseover="this.className='buttonOverClass';"
    onmouseout="this.className='button';">

    i put in blue what can be edited for more/less
    hope that helps
    Last edited by cg9com; 10-25-2002 at 06:41 AM.

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Excellent, thanks a million.

  • #4
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Another quick question how could I do the same thing using text?

  • #5
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i answered in your PM you sent me


  •  

    Posting Permissions

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