|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Form button
Can anyone help with the following code, have tried the input type=image and src=pic.jpg thing but it just refreshes the page. I have put the url's in but it works with present code below, but need the button to be an image.
<form name="jump"> <strong>UK Offices:</strong><span style="padding-left:8px "> <select name="menu" style="width:100px; height:18px; font-size:10px; font-family:Tahoma"> <option value="URL">West Midlands</option> <option value="URL">Manchester</option> <option value="URL">Glasgow</option> <option value="URL">Newcastle</option> <option value="URL">Leeds</option> <option value="URL">London</option> <option value="URL">Southampton</option> <option value="URL">Exeter</option> </select> <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="find"> </form> |
|
#2
|
|||
|
|||
|
RE: Form button
<input border="0" src="image" width="100" height="20" type="image">
set src to the path to the image, along with the height and width. |
|
#3
|
|||
|
|||
|
RE: Form button
Sorry, did not explain properly.
If i changed the type to image and added the source the image shows, but the execution does not eg: it just refreshes the page instead of going to url. |
|
#4
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Client Side Things' by Matt.
Reason: Not PHP |
|
#5
|
|||
|
|||
|
RE: Form button
give this a try:
Code:
<input border="0" src="button.gif" width="100" height="20" type="image" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;"> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Form button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|