Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-08-2004, 03:32 AM   PM User | #1
mattmac24
New Coder

 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
mattmac24 is an unknown quantity at this point
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)
mattmac24 is offline   Reply With Quote
Old 01-08-2004, 06:13 AM   PM User | #2
fredmv
Regular Coder

 
Join Date: Jul 2003
Location: Massachusetts
Posts: 472
Thanks: 0
Thanked 0 Times in 0 Posts
fredmv is an unknown quantity at this point
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();');
fredmv is offline   Reply With Quote
Old 01-08-2004, 10:54 AM   PM User | #3
mattmac24
New Coder

 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
mattmac24 is an unknown quantity at this point
<*****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
mattmac24 is offline   Reply With Quote
Old 01-08-2004, 01:07 PM   PM User | #4
dniwebdesign
Regular Coder

 
dniwebdesign's Avatar
 
Join Date: Dec 2003
Location: Carrot River, Saskatchewan
Posts: 838
Thanks: 15
Thanked 9 Times in 9 Posts
dniwebdesign is an unknown quantity at this point
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
dniwebdesign is offline   Reply With Quote
Old 01-09-2004, 04:59 AM   PM User | #5
mattmac24
New Coder

 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
mattmac24 is an unknown quantity at this point
Quote:
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
mattmac24 is offline   Reply With Quote
Old 01-09-2004, 06:25 AM   PM User | #6
sage45
Super Moderator


 
Join Date: May 2002
Posts: 1,036
Thanks: 0
Thanked 11 Times in 11 Posts
sage45 is an unknown quantity at this point
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
sage45 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:47 PM.


Advertisement
Log in to turn off these ads.