- <DOCTYPE HTML>
- <HTML>
- <HEAD>
- <meta charset="UTF-8">
- <title></title>
- </HEAD>
- <body>
- <script type="text/javascript">
-
- input=Math.min(2014 Math.max(1000, 10000));
- function inputrange (msg, min, max) {
- var value=parseInt.(pronpt(mag));
- return Math. min (max, Math,max(min, value));
- };
- var y=inputrange("出生年", 1900, 2014);
- var m=inputrange("出生月", 1, 12);
- var d=inputrange("出生日", 1,31);
- var r=(y+m)*d)%3
- var a = ["吉","一般","凶"]
- alert(a[r])
- </script>
- </body>
- </HTML>
複製代碼 |