Toon posts:

plaatjes ipv submit/reset-buttons

Pagina: 1
Acties:

Verwijderd

Topicstarter
ik hoop dat dit het goede forum is, beetje randgeval...:)

Ik wil ipv. de standaard buttons bij een formulier (html pagina) graag 2 plaatjes gebuiken: 1 voor versturen van het formulier en 1 om de invoervelden te resetten...hoe doe ik dit? Ik heb al gezocht maar kom er niet uit.
Ik gebruik dreamweaver 4 Ultradev, de imagefields had ik al wel ontdekt, maar de code is een probleem...

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

To create a graphical Submit button:

1 In the document, place the insertion point inside the form outline, then do one of the following:
Choose Insert > Form Object > Image Field.
In the Objects panel's Forms category, click the Insert Image Field icon.

2 In the Property inspector for the image field, change the text in the ImageField field to Submit.

3 In the SRC field, click the folder icon, then browse to the image you want to insert in the page.

4 In the Alt field, type text you want to appear in place of the image for text-only browsers or for browsers set to download images manually.

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Verwijderd

Topicstarter
aha, cool! maar een reset-button, kan dat ook nog?

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

oh en de HTML-code is:

Submit
code:
1
<input type="image" border="0" name="Submit" src="photo.gif" width="48" height="48">

Reset
code:
1
<input type="image" border="0" name="reset" src="photo.gif" width="48" height="48">

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Verwijderd

Topicstarter
super! ik ga aan de slag, thnx!

  • r0bert
  • Registratie: September 2001
  • Laatst online: 11-08 16:19
BtM909:

Reset
code:
1
<input type="image" border="0" name="reset" src="photo.gif" width="48" height="48">
Kdenk niet dat dat gaat werken .. eerder iets van:
code:
1
<input type="image" border="0" name="toetoet" src="blaat.jpg" onClick="document.forms[0].blaat.value = ''; return false;">

//edit:

En om het hele form te resetten:
code:
1
<input type="image" border="0" name="toetoet" src="eenplaatje.jpg" onClick="document.forms[0].reset(); return false;">

Als je meerdere forms op 1 pagina gebruikt, moet je
'forms[0]' even vervangen door de naam van het desbetreffende <form>
Pagina: 1