Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 04-13-2005, 07:04 PM Form Input
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
Feel a bit stupid asking this, considering i've been doing site production for years! But how can I have a form input with increase/decrease arrows? Like when you double click on the Time in the windows bar to bring up the time property, and you can change the time using the increase/decrease arrows.

Only just needed to use it, but not sure if it actually exists... anyone?
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2005, 08:53 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
what you asking for here......

Is it something like [value] - +

click - and the value is subtracted by one, click +and the value is added by one.

if so you can do it in javascript simply enough.

Code:
<script language="JavaScript">

function add(id){
  var add = document.getElementById(id);
  var count=add.value;
  count++;
  add.value=count;
}

function sub(id){
  var sub = document.getElementById(id);
  var count=sub.value
  count--;
  sub.value=count;
}
</script>
<input type="text" name="1" id="1" value="0" size="3">
<a href="javascript:sub('1')">[-]</a>
<a href="javascript:add('1')">[+]</a>
Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf

Last edited by ibbo; 04-14-2005 at 09:33 AM..
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 04-14-2005, 11:33 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
I don't think there a form control for this exists, but the javascript should work fine.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Form Input
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23114 seconds with 12 queries