View Full Version : form buttons
felipegm
September 18th, 2003, 04:06 PM
Hi
I´m using DreamWeaver MX to make a contact form, but the buttons are ruinning my design. How can I make some new buttons for my self and use them in my page/ form?
thnx
DDD
September 18th, 2003, 07:02 PM
there is a couple ways to do it.......
Place your image that you want to use as a button in your form then use this onClick event in a href tag:
ONCLICK="document.formName.submit()
Form name being the name of your form.
or you can use a image in the input tag:
<input type="your image" src="your image url">
Both work fine but the top one give a lil more flexibility
felipegm
September 18th, 2003, 11:07 PM
Iva,
Thanks for posting for me.
And Sorry my lack of knowledge in HTML.
I tried this scripts, but the page is not working.
Could you post a little more complete script for me? I´m trying to learn more HTML...
Tnks
JMS
September 21st, 2003, 11:14 AM
apart from doing it for you, there isn't much more he can do.
Head over to google.com and look up some tutorials to help you understand the basics of HTML and work your way up.
The easiest way for you to solve this problem would be to design the buttons you want in your image software (say photoshop) and save the buttons out as images and then use Image Field option in Dreamweaver:
Insert -> Form Objects -> Image Field
That then acts as your Submit button.
felipegm
September 22nd, 2003, 05:13 PM
I got how to change the buttons in the form. Thanks.
Can I make it swap for a over state and make it send the form???
Should I apply the onclick event on the over immage?
thanks
DDD
September 22nd, 2003, 05:41 PM
yeah just do your swap as usual then in there add my onCLick code....you can slap that onclick anywhere.....even in table cells
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.