📄 shengxiaojs.js
字号:
document.writeln("<SCRIPT language=JavaScript>");
document.writeln("<!--");
document.writeln("");
document.writeln("");
document.writeln("function getpet () {");
document.writeln("");
document.writeln("");
document.writeln("var toyear = 1997;");
document.writeln("");
document.writeln("var birthyear = document.frm.inyear.value;");
document.writeln("");
document.writeln("var birthpet=\"Ox\"");
document.writeln("");
document.writeln("");
document.writeln("x = (toyear - birthyear) % 12");
document.writeln("");
document.writeln("if ((x == 1) || (x == -11)) {");
document.writeln("");
document.writeln("birthpet=\"鼠\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if (x == 0) {");
document.writeln("");
document.writeln("birthpet=\"牛\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 11) || (x == -1)) {");
document.writeln("");
document.writeln("birthpet=\"虎\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 10) || (x == -2)) {");
document.writeln("");
document.writeln("birthpet=\"兔\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 9) || (x == -3)) {");
document.writeln("");
document.writeln("birthpet=\"龙\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 8) || (x == -4)) {");
document.writeln("");
document.writeln("birthpet=\"蛇\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 7) || (x == -5)) {");
document.writeln("");
document.writeln("birthpet=\"马\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 6) || (x == -6)) {");
document.writeln("");
document.writeln("birthpet=\"羊\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 5) || (x == -7)) {");
document.writeln("");
document.writeln("birthpet=\"猴\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 4) || (x == -8)) {");
document.writeln("");
document.writeln("birthpet=\"鸡\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 3) || (x == -9)) {");
document.writeln("");
document.writeln("birthpet=\"狗\" }");
document.writeln("");
document.writeln("else {");
document.writeln("");
document.writeln("if ((x == 2) || (x == -10)) {");
document.writeln("");
document.writeln("birthpet=\"猪\" }");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("document.frm.birth.value = birthpet;");
document.writeln("");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("\/\/ -->");
document.writeln("");
document.writeln("<\/SCRIPT>");
document.writeln("")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -