![]() |
|
|
#1
|
||||
|
||||
|
JS Challenge!
For the JS Geeks
![]() If you can change this code: http://javascript.internet.com/equivalents/length.html ...so it just shows "convert [input type=text] cm to inches [button GO] [input type=text output appears here]" and works as well... ...I'll reward you with links! Thanks!
__________________
Try: Sell Your Ad Space - Thousands Of Visitors Want To Buy Your Ad Space Global Internet Index Directory <- Check it out! -> |
|
#2
|
|||
|
|||
|
Inside head:
Code:
<script type="text/javascript">
<!--
function cm_to_inch(cm)
{
return Math.round(10 * (cm * .39)) / 10;
}
//-->
</script>
Code:
<form>
Convert
<input type="text" name="cm" id="cm" />
cm to inches
<input onclick="document.getElementById('inch').value = cm_to_inch(document.getElementById('cm').value)" type="button" value="Go" />
<input type="text" name="inch" id="inch" />
</form>
__________________
SEO Tool - The killer search engine optimization tool. No. Really. The Search Engine Experiment - Discover if Google really giving you the most relevant results - No recip required. Last edited by nullbit; Mar 7th 2005 at 5:31 am. |
|
#3
|
||||
|
||||
|
Legendary!
I spent 10 minutes and couldn't work it out. PM me if you want a link. Thanks!
__________________
Try: Sell Your Ad Space - Thousands Of Visitors Want To Buy Your Ad Space Global Internet Index Directory <- Check it out! -> |
|
#4
|
||||
|
||||
|
How do I put a word inside the button?
__________________
Try: Sell Your Ad Space - Thousands Of Visitors Want To Buy Your Ad Space Global Internet Index Directory <- Check it out! -> |
|
#5
|
|||
|
|||
|
I missed that out. I've edited the post to include the "Go"
__________________
SEO Tool - The killer search engine optimization tool. No. Really. The Search Engine Experiment - Discover if Google really giving you the most relevant results - No recip required. |
|
#6
|
||||
|
||||
|
Nullbit is a JS whizz indeed. Sussed it but I ran into problems with my host converting double quotes into singles but nullbit had some clever tricks up his sleeve and fixed it again.
Check out his SEO tool as well: http://www.webmasterbrain.com/ looks very impressive indeed.
__________________
Try: Sell Your Ad Space - Thousands Of Visitors Want To Buy Your Ad Space Global Internet Index Directory <- Check it out! -> |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SEO Challenge | Help Desk | Search Engine Optimization | 153 | Jun 9th 2009 11:07 am |
| A Puzzling Challenge... | Refrozen | General Chat | 11 | Dec 27th 2004 9:58 pm |
| Christmas SEO Challenge kicks off - help now | Dominic | Search Engine Optimization | 22 | Dec 20th 2004 7:36 pm |
| Weirfire just likes a challenge | Colleen | General Chat | 47 | Nov 25th 2004 8:33 am |
| fancy a challenge? | jonnyplatt | Websites | 4 | Sep 1st 2004 2:46 pm |