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 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Swish as submit button

    Ok i have swish 2.o and what i want is to be able to replace this button with the default ugly grey one used in forms. i think that i would need to edit the button in swish for this to work. just dont know how to.


    So i want:

    (form field)


    (swish button acting as submit button)

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You would have to use ActionScript (not sure if you're allowed to do that using Swish, but that's what's used to script Flash movies). I believe the code would look something like this:
    Code:
    getURL('javascript:document.forms[0].submit();');

  • #3
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <*****FORM>
    <font color=blue><font size=4>Type in a URL, and hit Go!
    <BR>
    <INPUT name="the_url" type="text" value="http://www." size="50">
    <br>
    <br>
    <INPUT type="button" value="Go!" onClick="window.location=this.form.the_url.value">
    </FORM>

    ok thats what i want, ill post again and see if it wants to show you...

    <FORM>
    <font color=blue><font size=4>Type in a URL, and hit Go!
    <BR>
    <INPUT name="the_url" type="text" value="http://www." size="50">
    <br>
    <br>
    <INPUT type="button" value="Go!" onClick="window.location=this.form.the_url.value">
    </FORM>


    so how would i replace that button with a swish animation?


    if it didnt show it just acts like a address bar with a go button...and i just added a bit of text up the top.

    thanks lot

  • #4
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    you would just embed the .swf file where your button would go.

    This one will work but contains no info if the user doesn't have the plugin.

    <embed src="file/yourfile.swf" height="xx" width="xx" border="0" bgcolor="Background Colour">

    Just change the parameters to fit your button. I don't think you need the background colour so if you want to get rid of it go ahead.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #5
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by dniwebdesign
    you would just embed the .swf file where your button would go.

    This one will work but contains no info if the user doesn't have the plugin.

    <embed src="file/yourfile.swf" height="xx" width="xx" border="0" bgcolor="Background Colour">

    Just change the parameters to fit your button. I don't think you need the background colour so if you want to get rid of it go ahead.
    i dont get how to do that....please help

    just give me an example please....hopfully the above one

    well if ur evil and want me 2 do it myself just a bit more explination.

    i would prefer the secend...and you not being evil

  • #6
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,060
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Why not just use a simple image as opposed to a flash animation??? The only reason to use a flash animation is if the page or site that they are viewing is predominatly flashed... Adding a flash animation will add un-needed download time if all you want it for is a button...

    Code:
    <INPUT TYPE="IMAGE" VALUE="Go!" BORDER="0" SRC="whatever.gif" ALT="image" onClick="window.location=this.form.the_url.value">
    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000


  •  

    Posting Permissions

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