Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>www.bilisimogretmeni.com</title>
<script language="javascript" type="text/javascript">
function burcbul() {
********.form1.gun.selectedIndex;
********.form1.ay.selectedIndex;
********.form1.burc.value;
if (********.form1.ay.selectedIndex == 1 && ********.form1.gun.selectedIndex <= 19) { ********.form1.burc.value = "Oğlak"; }
if (********.form1.ay.selectedIndex == 1 && ********.form1.gun.selectedIndex >= 20) { ********.form1.burc.value = "Kova"; }
if (********.form1.ay.selectedIndex == 2 && ********.form1.gun.selectedIndex <= 18) { ********.form1.burc.value = "Kova"; }
if (********.form1.ay.selectedIndex == 2 && ********.form1.gun.selectedIndex >= 19) { ********.form1.burc.value = "Balık"; }
if (********.form1.ay.selectedIndex == 3 && ********.form1.gun.selectedIndex <= 20) { ********.form1.burc.value = "Balık"; }
if (********.form1.ay.selectedIndex == 3 && ********.form1.gun.selectedIndex >= 21) { ********.form1.burc.value = "Koç"; }
if (********.form1.ay.selectedIndex == 4 && ********.form1.gun.selectedIndex <= 20) { ********.form1.burc.value = "Koç"; }
if (********.form1.ay.selectedIndex == 4 && ********.form1.gun.selectedIndex >= 21) { ********.form1.burc.value = "Boğa"; }
if (********.form1.ay.selectedIndex == 5 && ********.form1.gun.selectedIndex <= 20) { ********.form1.burc.value = "Boğa"; }
if (********.form1.ay.selectedIndex == 5 && ********.form1.gun.selectedIndex >= 21) { ********.form1.burc.value = "İkizler"; }
if (********.form1.ay.selectedIndex == 6 && ********.form1.gun.selectedIndex <= 20) { ********.form1.burc.value = "İkizler"; }
if (********.form1.ay.selectedIndex == 6 && ********.form1.gun.selectedIndex >= 21) { ********.form1.burc.value = "Yengeç"; }
if (********.form1.ay.selectedIndex == 7 && ********.form1.gun.selectedIndex <= 21) { ********.form1.burc.value = "Yengeç"; }
if (********.form1.ay.selectedIndex == 7 && ********.form1.gun.selectedIndex >= 22) { ********.form1.burc.value = "Aslan"; }
if (********.form1.ay.selectedIndex == 8 && ********.form1.gun.selectedIndex <= 21) { ********.form1.burc.value = "Aslan"; }
if (********.form1.ay.selectedIndex == 8 && ********.form1.gun.selectedIndex >= 22) { ********.form1.burc.value = "Başak"; } //www.bilisimogretmeni.com
if (********.form1.ay.selectedIndex == 9 && ********.form1.gun.selectedIndex <= 21) { ********.form1.burc.value = "Başak"; }
if (********.form1.ay.selectedIndex == 9 && ********.form1.gun.selectedIndex >= 22) { ********.form1.burc.value = "Terazi"; }
if (********.form1.ay.selectedIndex == 10 && ********.form1.gun.selectedIndex <= 21) { ********.form1.burc.value = "Terazi"; }
if (********.form1.ay.selectedIndex == 10 && ********.form1.gun.selectedIndex >= 22) { ********.form1.burc.value = "Akrep"; }
if (********.form1.ay.selectedIndex == 11 && ********.form1.gun.selectedIndex <= 21) { ********.form1.burc.value = "Akrep"; }
if (********.form1.ay.selectedIndex == 11 && ********.form1.gun.selectedIndex >= 22) { ********.form1.burc.value = "Yay"; }
if (********.form1.ay.selectedIndex == 12 && ********.form1.gun.selectedIndex <= 20) { ********.form1.burc.value = "Yay"; }
if (********.form1.ay.selectedIndex == 12 && ********.form1.gun.selectedIndex >= 21) { ********.form1.burc.value = "Oğlak"; }
if (********.form1.ay.selectedIndex == "x" || ********.form1.gun.selectedIndex == "y") return;
}
function validate() {
if (********.form1.ay.selectedIndex == 2 && ********.form1.gun.selectedIndex > 29) { alert("Şubat ayında en fazla 29 gün seçebilirsiniz"); return false; }
if (********.form1.ay.selectedIndex == 4 && ********.form1.gun.selectedIndex == 31) { alert("Nisan ayında sadece 30 gün vardır."); return false; }
if (********.form1.ay.selectedIndex == 6 && ********.form1.gun.selectedIndex == 31) { alert("Haziran ayında sadece 30 gün vardır."); return false; }
if (********.form1.ay.selectedIndex == 9 && ********.form1.gun.selectedIndex == 31) { alert("Eylül ayında sadece 30 gün vardır."); return false; } //www.bilisimogretmeni.com
if (********.form1.ay.selectedIndex == 11 && ********.form1.gun.selectedIndex == 31) { alert("Kasım ayında sadece 30 gün vardır."); return false; }
else {
return true;
}
}
</script>
</head>
<body>
<form name="form1">
<table border="0" bgcolor="c0c0c0" cellspacing="0" cellpadding="1">
<tr>
<td>
<font size="1" face="verdana, arial, helvetica, sans-serif"><b> Ay </b></font>
</td>
<td>
<font size="1" face="verdana, arial, helvetica, sans-serif"><b> Gün </b></font>
</td>
<td rowspan="2">
<font size="3" face="verdana, arial, helvetica, sans-serif"><b> <b>:</b> </b></font>
</td>
<td>
<font size="1" face="verdana, arial, helvetica, sans-serif"><b> Burç </b></font>
</td>
</tr>
<tr>
<td>
<select name="ay">
<option value="x" selected>< Ay Seçin > </option>
<option value="1">Ocak</option>
<option value="2">Şubat</option>
<option value="3">Mart</option>
<option value="4">Nisan</option>
<option value="5">Mayıs</option>
<option value="6">Haziran</option>
<option value="7">Temmuz</option>
<option value="8">Ağustos</option>
<option value="9">Eylül</option>
<option value="10">Ekim</option>
<option value="11">Kasım</option>
<option value="12">Aralık</option>
</select>
</td>
<td>
<select name="gun" onChange="validate()">
<option value="y" selected>< Gün Seçin > </option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
</td>
<td>
<input name="burc" size="12" value="??" /> <input type="button" value="Burç Bul" onClick="burcbul()">
</td>
</tr>
</table>
</form>
</body>
</html>