Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 10th, 2004, 06:56 AM
taximan taximan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 taximan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>

Reply With Quote
  #2  
Old April 10th, 2004, 07:32 AM
IAmALlama IAmALlama is offline
Me
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,088 IAmALlama User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 21 h 5 m 4 sec
Reputation Power: 3
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.

Reply With Quote
  #3  
Old April 10th, 2004, 08:03 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #4  
Old April 14th, 2004, 11:36 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by Matt.

Reason: Not PHP

Reply With Quote
  #5  
Old April 18th, 2004, 07:58 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
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;">

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Form button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway