Не сте регистриран! Регистрирайте се БЕЗПЛАТНО, за да използвате услугите на сайта!

  Зодиакален показалец
Автор  deam0n (20.02.2005 14:57) съобщение до автора
Погледнат  674 пъти добави към любими
Оценка добави коментар
Гласове  -- изпрати на приятел
Коментари  (0) абонирай се за JavaScript
     
deam0n
     
 

Koпирай между <Head> и </Head>

CODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<script language="javascript" type="text/javascript">
<!--
Copyright 2001, Sandeep Gangadharan (sivam@bol.net.in) -->
<!--
For more free scripts go to http://web1.mtnl.net.in/~sivam/ -->

<!--

function sunsign() {
  
document.form1.date.selectedIndex;
  
document.form1.month.selectedIndex;
  
document.form1.sign.value;
  
if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex <=19) {document.form1.sign.value = "Koзирог";}
  
if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex >=20) {document.form1.sign.value = "Водолей";}
  
if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex <=18) {document.form1.sign.value = "Водолей";}
  
if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex >=19) {document.form1.sign.value = "Риби";}
  
if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Риби";}
  
if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Овен";}
  
if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Овен";}
  
if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Телец";}
  
if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Телец";}
  
if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Близнаци";}
  
if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Близнаци";}
  
if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Рак";}
  
if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Рак";}
  
if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Лъв";}
  
if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Лъв";}
  
if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Дева";}
  
if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Дева";}
  
if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Везни";}
  
if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Везни";}
  
if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Скорпион";}
  
if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Скорпион";}
  
if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Стрелец";}
  
if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Стрелец";}
  
if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Козирог";}

  
if (document.form1.month.selectedIndex == "x" || document.form1.date.selectedIndex == "y") return;
 
}

function validate() {
  
if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex > 29) {alert("There are only a maximum of 29 days in February."); return false;}
  
if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in April."); return false;}
  
if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in June."); return false;}
  
if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in September."); return false;}
  
if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in November."); return false;}
  
return true;

 
}

// -->
</
script>

Koпирай между <Body> и </Body>

CODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<form name="form1">
<
table border="0" bgcolor="c0c0c0" cellspacing="0" cellpadding="1">
  <
tr>
    <
td bgcolor="#000080" colspan="4"><font size="2" face="verdana, arial, helvetica, sans-serif" color="ffffff">
         <
b>Зодиакален показалец</b></font>
    </
td>
  </
tr>
  <
tr>
    <
td>
        <
font size="1" face="verdana, arial, helvetica, sans-serif"><b> Mесец </b></font>
    </
td>
    <
td>
        <
font size="1" face="verdana, arial, helvetica, sans-serif"><b> Дата </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> Зодия </b></font>
    </
td>
  </
tr>
  <
tr>
      <
td>
           <
select name="month">
          <
option value="x" selected>< Избери > </option>
          <
option value="1">Януари</option>
          <
option value="2">Февруари</option>
          <
option value="3">Mарт</option>
          <
option value="4">Aприл</option>
          <
option value="5">Mай</option>
          <
option value="6">Юни</option>
          <
option value="7">Юли</option>
          <
option value="8">Август</option>
          <
option value="9">Септември</option>
          <
option value="10">Oктомври</option>
          <
option value="11">Ноември</option>
          <
option value="12">Декември</option>
                    </
select>
    </
td>
    <
td>
         <
select name="date" onChange="document.form1.sign.focus(); validate();">
        <
option value="y" selected>< Избери > </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="sign" size="12" value="??" onFocus="sunsign();" onBlur="reset();" />
      <
/td>
  </
tr>
</
table>



Ключови думи: java script sript скрипт зодиакален показалец




 1 посетител чете този скрипт (0 потребители и 1 гост)  
Активни потребители: ---
   
  

Еmail  
 

 

 
  • Интересно от Софтуер
 
  • Интересно от myLINKS
 
 
 
 



IT-PLACE.NET © 2004 - 2008