...

View Full Version : Swish as submit button



mattmac24
01-08-2004, 04:32 AM
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)

fredmv
01-08-2004, 07:13 AM
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:
getURL('javascript:document.forms[0].submit();');

mattmac24
01-08-2004, 11:54 AM
<*****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

dniwebdesign
01-08-2004, 02:07 PM
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.

mattmac24
01-09-2004, 05:59 AM
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

sage45
01-09-2004, 07:25 AM
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...



<INPUT TYPE="IMAGE" VALUE="Go!" BORDER="0" SRC="whatever.gif" ALT="image" onClick="window.location=this.form.the_url.value">


-sage-



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum