***时间日期***猜你的属相
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件<html>
<head>
<title>猜你的属相</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
</head>
<body bgcolor=#ffffff>
<!-------------------------------->
<script language=javascript>
<!--
function getpet () {
var toyear = 1997;
var birthyear = document.frm.inyear.value;
var birthpet="ox"
x = (toyear - birthyear) % 12
if ((x == 1) || (x == -11)) {
birthpet="您属老鼠" }
else{
if (x == 0) {
birthpet="您属牛" }
else{
if ((x == 11) || (x == -1)) {
birthpet="您属老虎" }
else{
if ((x == 10) || (x == -2)) {
birthpet="您属兔子" }
else{
if ((x == 9) || (x == -3)){
birthpet="您属龙" }
else{
if ((x == 8) || (x == -4)){
birthpet="您属蛇" }
else{
if ((x == 7) || (x == -5)){
birthpet="您属马" }
else{
if ((x == 6) || (x == -6)){
birthpet="您属羊" }
else{
if ((x == 5) || (x == -7)){
birthpet="您属猴" }
else{
if ((x == 4) || (x == -8)){
birthpet="您属鸡" }
else{
if ((x == 3) || (x == -9)){
birthpet="您属狗" }
else{
if ((x == 2) || (x == -10)){
birthpet="您属猪" }
}
}
}
}
}
}
}
}
}
}
}
document.frm.birth.value = birthpet;
}
// -->
</script>
<form name=frm>
出生年份:<input name=inyear size=4 value=1975> <br><input onclick=getpet() type=button value=看看属什么><input name=birth size=9></form>
<!---------------------------------->
</body>
</html>
--------------------------------------
http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页:
[1]