Results 1 to 2 of 2

Thread: Using 3D Depressible Button with the input tag

  1. #1
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using 3D Depressible Button with the input tag

    1) Script Title: 3D Depressible Button

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ssible_button/

    3) Describe problem: I have found the 3d button on your website, but I am not able to edit it if I use it on input tag.
    i.e <input type="submit"/>
    and set classes according to it then it doesn't work does anyone knows how to put that button in an input tag?
    Last edited by james438; 04-14-2013 at 07:28 PM. Reason: format, punctuation

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,982
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    I doubt it, but you can use javascript to have an a tag submit a form:

    Code:
    <a href="#" onclick="document.forms.formname.submit(); return false;" class="css3dbutton">Sign Up!</a>
    Where formname is the name of the form you want to submit.

    Of course this will not work if javascript is not available on the client's browsers. Most have it, but there should be a non-javascript fallback:

    HTML Code:
    <form name="formname" action="#">
    <!-- The rest of the form would go here -->
    <script type="text/javascript">
    document.write('<a href="#" onclick="document.forms.formname.submit(); return false;" class="css3dbutton">Sign Up!</a>');
    </script>
    <noscript><input type="submit" value="Sign Up!"></noscript>
    </form>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. How to let user choose which feed he wants to see with input button.
    By OMaluco in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 08-22-2010, 09:18 PM
  2. Radio button and input text
    By syntaxerror in forum JavaScript
    Replies: 4
    Last Post: 05-07-2009, 08:19 AM
  3. Input Button Background with i18n problem
    By jelumalai in forum CSS
    Replies: 1
    Last Post: 11-17-2008, 07:58 PM
  4. 2 date calendars without input button
    By rich1234 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-29-2008, 10:33 AM
  5. Depressible DHTML buttons
    By nmmorgan in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 02-15-2007, 03:35 PM

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
  •