Bintang

Format tarikh: "January 1, 1997" 

 Copy skrip atau download.
 
1.Copy dalam <body>

<SCRIPT LANGUAGE="JavaScript">
 

<!--
function getsign () {

        var today = new Date();
        var psj=0;      

        var birth = new Date(document.frm.indate.value);
        birth.setYear(today.getYear()); 
        var astrosign="Capricornus"

        var birthsecs = birth.getTime()

        astro = new Date("January 20,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Aquarius"

        astro = new Date("February 19,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Piscus"
        
        var astro = new Date("March 21,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Aries"

        astro = new Date("April 20,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Taurus"

        astro = new Date("May 21,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Gemini"

        astro = new Date("June 22,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Cancer"

        astro = new Date("July 23,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Leo"

        astro = new Date("August 23,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Virgo"

        astro = new Date("September 23,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Libra"

        astro = new Date("October 23,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Scorpius"

        astro = new Date("November 23,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Sagittarius"

        astro = new Date("December 22,1997");
        astro.setYear(today.getYear());
        if (birthsecs > astro.getTime()) astrosign="Capricornus"
 

        document.frm.astro.value = astrosign;

}
// -->

</SCRIPT>
<FONT SIZE=+1>Format
tarikh: "January 1, 1997"</FONT>&nbsp;<FORM NAME="frm"><INPUT TYPE="text" SIZE="41" NAME="indate"><INPUT TYPE="button" VALUE="Monitor" onClick="getsign()"></CENTER>

<CENTER><INPUT TYPE="text" SIZE="41" NAME="astro"></FORM>

 
1