⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 你投胎于谁?.txt

📁 JavaScript特效(新)这里有许多的JAVA特效.供学者参考
💻 TXT
📖 第 1 页 / 共 2 页
字号:

<SCRIPT LANGUAGE="JavaScript">

// Code written by Natalie V. Zubar (kopilka@infocom.kharkov.ua)

// Author claims no responsibility for esoteric method of past-life calculations and its results.

// If you decided to use it under your own name - you were a thief in your past life and you will cheat forever!



function mod(x, x_div){

    for (var i=x; i>=x_div; i -= x_div);

    return i;

}



function checkNum(str, min, max) {

    if (str == "") {

        alert("Don't leave it blank!");

        return false;    }



    for (var i = 0; i < str.length; i++) {

        var ch = str.substring(i, i + 1);

        if (ch < "0" || ch > "9") {

            alert("Number, please!");

            return false;

        }

    }



    var val = parseInt(str, 10);

    if ((val < min) || (val > max)) {

        alert("Type in a number from 1 to "+max+".");

        return false;

    }



    return true;

}







function pastlife(form){

	var sex; 



//Check for a valid date			



     if ((checkNum(form.day.value,1,31)) && (checkNum(form.month.value,1,12)) &&

        (checkNum(form.year.value,0,99)))  {	

	var day = parseInt(form.day.value,10);

	var cur_month = parseInt(form.month.value,10);

	var cur_year = parseInt(form.year.value,10);



// define past life sex



	if (cur_month-2*(parseInt(cur_month/2)) == 0){

		if (cur_year - 4*(parseInt(cur_year/4)) == 0)

			sex = 1; else sex = 2} 

  	      else if (cur_year - 4*(parseInt(cur_year/4)) == 0)

			sex = 0; else sex = 1};







	msgWindow=window.open("","有神者说");

	msgWindow.document.open(); 

	msgWindow.document.bgColor="black"; 

	msgWindow.document.writeln("<FONT Color=red Face=Arial><B><I>Diagnosis:</I></B></FONT><HR>");	

	msgWindow.document.write("<FONT Color=white Face=Arial>"); 

	msgWindow.document.write("我不知道你的感觉如何,但你曾是");





	var yearString = "ZYXWOTZYQVUTSXWVNZYXPQTZRWVUMYXWOTZYQVUTSXWVNZYXPUTZRWVUMYXWOTZYQVUTSXWVNZYXPUTZRWVUMYXWOTZYQVUTSXWV";



	var ys; ys = yearString.charAt(cur_year);



	var p1; var p2; var place;

	if (sex == 1){



		msgWindow.document.write("<FONT color=yellow>男性</FONT>");







	//for males	







	var indexString = "VTWZXYURPSOMNQYWZVTUXOMPSQRNWUXTYZVMRNQOPSUZVYWXTRPSOMNQTYUXVWZPNQMRSOYWZVTUXNSORPQM";



	



	var profString = "CDBADCABBACD";



		



	p1 = profString.charAt(cur_month-1);



	



	for (i=0;i<=6;i++){



		if (ys == indexString.charAt((cur_month-1)*7+i)) break}







	p2 = i+1;









	//PLACE OF BIRTH Male









	if (p2 == 1){



		if (day < 3) place=5;



		else if (day < 10) place=46;



		else if (day < 17) place=37;



		else if (day < 24) place=48;



		else if (day < 31) place=65;



		else place=6};







	if (p2 == 2){



		if (day < 8) place=28;



		else if (day < 15) place=58;



		else if (day < 22) place=10;



		else if (day < 29) place=38;



		else place=11};







	if (p2 == 3){



		if (day < 4) place=29;



		else if (day < 11) place=53;



		else if (day < 18) place=30;



		else if (day < 25) place=69;



		else place=1};







	if (p2 == 4){



		if (day < 7) place=74;



		else if (day < 14) place=4;



		else if (day < 21) place=47;



		else if (day < 28) place=20;



		else place=26};







	if (p2 == 5){



		if (day < 5) place=23;



		else if (day < 12) place=21;



		else if (day < 19) place=44;



		else if (day < 26) place=16;



		else place=43};







	if (p2 == 6){



		if (day < 6) place=34;



		else if (day < 13) place=27;



		else if (day < 20) place=14;



		else if (day < 27) place=41;



		else place=50};







	if (p2 == 7){



		if (day < 2) place=73;



		else if (day < 9) place=63;



		else if (day < 16) place=66;



		else if (day < 23) place=54;



		else if (day < 30) place=61;



		else place=72}



}



	else {



	//for females







   		msgWindow.document.write("<FONT color=yellow>女性</FONT>");







	var indexString = "OMPSQRNYWZVTUXSQMPNORUZVYWXTQORNSMPZXTWUVYOMPSQRNXVYUZTWNSORPQMVTWZXYUSQMPNORTYUXVWZ";



	



	var profString = "ACDBCABDDBCA";



		



	p1 = profString.charAt(cur_month-1);



	



	for (i=0;i<=6;i++){



		if (ys == indexString.charAt((cur_month-1)*7+i)) break}







	p2 = i+1;



 

		//PLACE OF BIRTH Female







	if (p2 == 1){



		if (day < 3) place=22;



		else if (day < 10) place=17;



		else if (day < 17) place=36;



		else if (day < 24) place=59;



		else if (day < 31) place=51;



		else place=9};







	if (p2 == 2){



		if (day < 8) place=40;



		else if (day < 15) place=2;



		else if (day < 22) place=64;



		else if (day < 29) place=56;



		else place=35};







	if (p2 == 3){



		if (day < 4) place=19;



		else if (day < 11) place=67;



		else if (day < 18) place=13;



		else if (day < 25) place=32;



		else place=31};







	if (p2 == 4){



		if (day < 7) place=15;



		else if (day < 14) place=49;



		else if (day < 21) place=12;



		else if (day < 28) place=39;



		else place=33};







	if (p2 == 5){



		if (day < 5) place=42;



		else if (day < 12) place=60;



		else if (day < 19) place=24;



		else if (day < 26) place=3;



		else place=52};







	if (p2 == 6){



		if (day < 6) place=18;



		else if (day < 13) place=25;



		else if (day < 20) place=57;



		else if (day < 27) place=45;



		else place=62};







	if (p2 == 7){



		if (day < 2) place=8;



		else if (day < 9) place=55;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -