Results 1 to 3 of 3

Thread: Form button

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form button

    How do I modify your oval buttons to work as the submit button in a form?

    Thanks.

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    There are at least 2 ways to do this, 1 by using CSS, as follows:
    CSS
    HTML Code:
    button.yes { background:url(submit_normal.gif); }
    
    button.yes:hover { background: url(submit_pressed.gif); }
    
    button.no { background:url(cancel_normal.gif); }
    
    button.no:hover { background: url(cancel_pressed.gif); }
    and then using this HTML where you want the buttons to appear in your form.

    HTML
    HTML Code:
    <button class="yes" type="submit"></button>
    <button class="no" onclick="window.location.href='http://anypage.htm'"></button>
    This gives you a "rollover" effect, If you don't want that then just delete the ':hover' lines.

    Or directly in HTML by doing this

    HTML Code:
    <input type="image" src="submit.gif" border=0 value="Send This Form" alt="Submit Enquiry" width="101" height="23">
    In either solution you substitute the name of your image files for the ones I'ves used as well as changing the various sizes

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I'm looking for a way to use "sliding door" type buttons so I don't have to have an image file for each button with different text.

Bookmarks

Posting Permissions

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