- Age Calculator Date Of Birth
- Phoneky Java Age Calculator Download
- Phoneky Java Age Calculator Download Free
Page Information: Download Age Of Heroes 3 - Orcs Retribution (240x300) Motorola game for mobiles - one of the best Java games! At PHONEKY Free Java Games Market, you can download mobile games for any phone absolutely free of charge. Nice graphics and addictive gameplay will keep you entertained for a very long time. Age Calculator is a cool app which calculates your age and also calculates the total number of years, months, days, hours, minutes and seconds that you have spent on Earth from the day you were born.
Age Calculator Java App
This application consists of 3 calculators.1. Age Calculator
2. Date Comparer
3. Time Comparer
Age Calculator
Calculates Age in a humanly acceptable form. For example, given a birth date and another date to compare this calculates the difference of the time in to a reading of Years, Months, Days, Hours and Minutes.
Please kindly note that this calculation assumes a month has 30 days.
Date Comparer
An advanced calculator that contains a scientific and standard time difference readings.
Standard Reading would consider an year as a 365 day unit and a month as a 30 day unit.
Scientific Reading considers an year as a 365.25 year unit and a month as 365.25/12 unit.
Therefore the two readings will not always be equal.
In addition to these readings, Date Comparer also calculates the total number of Years, Months, Days, Hours, Minutes and Seconds and Milliseconds between the given dates.
Time Comparer
Calculates the difference of the times provided in hours and minutes.
In addition to this reading, Time Comparer also calculates the total number of Hours, Minutes and Seconds and Milliseconds between the given dates.Info Info
Introduction
In this trick, we are going to create a calculator. We need to create a basic structure using HTML, style it using CSS and make it work using JavaScript.
Let's Start
Create an HTML Document
Here, I created the div
(.box
) which represent the structure of calculator. Inside it, I created two div
tags, one for display (inside this, I added input type='text'
to display the result and set this to read only) and one for Keys. Here, you see some onclick
event about which I will talk later.
Preview (Using the Above Code Calculator looks like below)
Create CSS Stylesheet
Here, I set background color for body
and set the height
, width
and border radius
of class box (.box
).
Preview
CSS
Here, I set .display
background-color
, width
, height
and position
. Inside it, we have an input box, I also adjust its height
, width
, color
, background-color
and position
.
Preview
Age Calculator Date Of Birth
CSS
Here, I adjust position
of div
(.keys
). I use Double Class Selector( example: class=button gray
). By the use of this, I set .button width
, height
, border-radius
, cursor
, etc. This helps me in making all my buttons of the same width
, height
, etc. Then I set .button.gray
color, background-color
, etc.
After that, I create :active
(The :active
pseudo selector will match when an element is being pressed down on by the mouse Cursor.) for buttons. The thing I have done here is to change the top border color to black and bottom color to same as button color. This gives button feel of pressing down.
Preview
Finally, we have created a Calculator
but it does not work. Now we have to do scripting for it (using JavaScript).
Create Script (Using JavaScript)
Here, I have created three functions. Function c(val)
is used for clearing the data from the display. When we click on 'C
' button, then onclick='c(')'
event runs and searches for c(val)
function and displays the value according to the parameter passed inside it (here, we have not passed any parameter so the input screen appears blank or clear).
Function v(val)
is used for typing numbers as well as mathematical operators.
Function e()
is used for evaluating, i.e., on clicking '=
' button, value inside the Id='d'
is solved.
You can also download the source file for viewing.
Final Preview (Tried and Tested in Chrome)
That's all. Hope you like it.
Thanks!