Age Calculator Script

Translate

Age Calculator Script

Age Calculator Script

  <script language="JAVASCRIPT">


<!-- hide this script tag's contents from old browsers


function lifetimer(){            




        today = new Date()          




        BirthDay = new Date(document.live.age.value)         




        timeold = (today.getTime() - BirthDay.getTime());         




        sectimeold = timeold / 1000;         




        secondsold = Math.floor(sectimeold);         




        msPerDay = 24 * 60 * 60 * 1000 ;         




        timeold = (today.getTime() - BirthDay.getTime());         




        e_daysold = timeold / msPerDay;         




        daysold = Math.floor(e_daysold);         




        e_hrsold = (e_daysold - daysold)*24;         




        hrsold = Math.floor(e_hrsold);         




        minsold = Math.floor((e_hrsold - hrsold)*60);           




        document.live.time1.value = daysold              




        document.live.time2.value = hrsold               




        document.live.time3.value = minsold              




        window.status = "Well at the moment you are " + secondsold + "............ seconds old.";         




        timerID = setTimeout("lifetimer()",1000)   




}        


// -- done hiding from old browsers -->




  </script><script language="JAVASCRIPT">


<!-- hide this script tag's contents from old browsers


function lifetimer(){            




        today = new Date()          




        BirthDay = new Date(document.live.age.value)         




        timeold = (today.getTime() - BirthDay.getTime());         




        sectimeold = timeold / 1000;         




        secondsold = Math.floor(sectimeold);         




        msPerDay = 24 * 60 * 60 * 1000 ;         




        timeold = (today.getTime() - BirthDay.getTime());         




        e_daysold = timeold / msPerDay;         




        daysold = Math.floor(e_daysold);         




        e_hrsold = (e_daysold - daysold)*24;         




        hrsold = Math.floor(e_hrsold);         




        minsold = Math.floor((e_hrsold - hrsold)*60);           




        document.live.time1.value = daysold              




        document.live.time2.value = hrsold               




        document.live.time3.value = minsold              




        window.status = "Well at the moment you are " + secondsold + "............ seconds old.";         




        timerID = setTimeout("lifetimer()",1000)   




}        


// -- done hiding from old browsers -->




</script>




























<form name="live">




Please enter your age::<input autofill-information="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Please enter your age::


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 78" autofill-prediction="UNKNOWN_TYPE" name="age" size="20" title="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Please enter your age::


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 78" type="text" value="" /> 


Example: (november 1,1966) <br /><br /><br />


<input name="start" onclick="lifetimer(this.form)" type="button" value="Start Timer" />




<input name="resetb" type="reset" value="Reset Age" />




<br /><br />




<table border="0">


<tbody><tr><td>You are days old:</td>




<td>




<input autofill-information="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: You are days old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 81" autofill-prediction="UNKNOWN_TYPE" name="time1" size="8" title="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: You are days old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 81" type="text" value="" />




</td>




</tr>




<tr><td>Plus hours old:</td>




<td>




<input autofill-information="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Plus hours old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 82" autofill-prediction="UNKNOWN_TYPE" name="time2" size="8" title="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Plus hours old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 82" type="text" value="" />




</td>




</tr>




<tr><td>Plus minutes old:</td>




<td><input autofill-information="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Plus minutes old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 83" autofill-prediction="UNKNOWN_TYPE" name="time3" size="8" title="overall type: UNKNOWN_TYPE


server type: NO_SERVER_DATA


heuristic type: UNKNOWN_TYPE


label: Plus minutes old:


parseable name: 


section: _1-default


field signature: 1318412689


form signature: 6371384408202656328


form renderer id: 8


field renderer id: 83" type="text" value="" /></td>




</tr>


</tbody></table>


  </form>

0 Response to "Age Calculator Script"

Post a Comment

Type Your Comment Here

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Copyright © 2020
Clicky