home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / KidHTML1_25.lha / KidHTML1.25 / Script / humantodogyear.js < prev    next >
Text File  |  1998-08-25  |  910b  |  42 lines

  1.  
  2.  
  3. <!-- TWO STEPS TO INSTALL DOG YEARS CALCULATOR:
  4.  
  5.    1.  Paste the designated coding into the HEAD of your HTML document 
  6.    2.  Put the last script into the BODY of your HTML document  -->
  7.  
  8. <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
  9.         
  10. <HEAD>
  11.  
  12. <SCRIPT LANGUAGE="JavaScript">
  13.  
  14. <!-- This script and many more are available online from -->
  15. <!-- The JavaScript Source!! http://javascriptsource.com -->
  16.  
  17. <!-- Begin
  18. function fido (form) {
  19. form.dogyears.value = form.humanyears.value/7;
  20. }
  21. // End -->
  22. </SCRIPT>
  23.  
  24. <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
  25.  
  26. <BODY>
  27.  
  28. <CENTER>
  29. <FORM>
  30. Enter your age:
  31. <INPUT TYPE ="text" NAME="humanyears" SIZE=15 >
  32. <BR><P>
  33. <INPUT TYPE ="button" VALUE="Calculate" ONCLICK="fido(this.form)">
  34. <BR><P>
  35. Your age in Dog Years is:
  36. <INPUT TYPE="text" NAME="dogyears" SIZE=15 >
  37. <BR>
  38. </FORM>
  39. </CENTER>
  40.  
  41. <!-- Script Size:  0.94 KB  -->
  42.