Не сте регистриран!
Регистрирайте се БЕЗПЛАТНО, за да използвате услугите на сайта!
Меню - инфо
Автор
eminem (21.03.2005 10:40)
съобщение до автора
Погледнат
1087 пъти
добави към любими
Оценка
добави коментар
Гласове
1
изпрати на приятел
Коментари
(1)
абонирай се за JavaScript
Този уникален скрипт представлява меню, което като натиснеш върху един линк ти дава само инфо (пр. IT-Place - Широкоразпространен сайт, кой предлага много и висококачествени уроци...) и отдолу има бутон GO! Ако речеш да посетиш сайта просто натискаш Go! и сте готови. Ето ви скрипта:
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<! DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 3.2 Final//EN " >
< HTML >
< HEAD >
< SCRIPT LANGUAGE = " JavaScript " >
<!-- Begin
function go_to_station () {
if ( document . stationform . stationselect . options [ 0 ] . selected ) {
window . location . href = " http://www.abctelevision.com " ; }
else if ( document . stationform . stationselect . options [ 1 ] . selected ) {
window . location . href = " http://www.cbs.com " ; }
else if ( document . stationform . stationselect . options [ 2 ] . selected ) {
window . location . href = " http://www.nbc.com " ; }
else if ( document . stationform . stationselect . options [ 3 ] . selected ) {
window . location . href = " http://www.foxnetwork.com " ; }
else if ( document . stationform . stationselect . options [ 4 ] . selected ) {
window . location . href = " http://www.filmzone.com " ; }
else if ( document . stationform . stationselect . options [ 5 ] . selected ) {
window . location . href = " http://www.discovery.com " ; }
else if ( document . stationform . stationselect . options [ 6 ] . selected ) {
window . location . href = " http://www.cs.brandeis.com " ; }
else if ( document . stationform . stationselect . options [ 7 ] . selected ) {
window . location . href = " http://www.qvc.com " ; }
else if ( document . stationform . stationselect . options [ 8 ] . selected ) {
window . location . href = " http://www.historychannel.com " ; }
else if ( document . stationform . stationselect . options [ 9 ] . selected ) {
window . location . href = " http://www.mtv.com " ; }
else if ( document . stationform . stationselect . options [ 10 ] . selected ) {
window . location . href = " http://www.cnn.com " ; }
else if ( document . stationform . stationselect . options [ 11 ] . selected ) {
window . location . href = " http://www.aetv.com " ; }
else if ( document . stationform . stationselect . options [ 12 ] . selected ) {
window . location . href = " http://www.amctv.com " ; }
else if ( document . stationform . stationselect . options [ 13 ] . selected ) {
window . location . href = " http://www.bravotv.com " ; }
else if ( document . stationform . stationselect . options [ 14 ] . selected ) {
window . location . href = " http://www.c-span.org " ; }
else if ( document . stationform . stationselect . options [ 15 ] . selected ) {
window . location . href = " http://www.comcentral.com " ; }
else if ( document . stationform . stationselect . options [ 16 ] . selected ) {
window . location . href = " http://espnet.sportszone.com " ; }
else if ( document . stationform . stationselect . options [ 17 ] . selected ) {
window . location . href = " http://www.fxnetworks.com " ; }
else if ( document . stationform . stationselect . options [ 18 ] . selected ) {
window . location . href = " http://www.hbohomevideo.com " ; }
else if ( document . stationform . stationselect . options [ 19 ] . selected ) {
window . location . href = " http://www.scifi.com " ; }
else if ( document . stationform . stationselect . options [ 20 ] . selected ) {
window . location . href = " http://showtimeonline.com " ; }
else if ( document . stationform . stationselect . options [ 21 ] . selected ) {
window . location . href = " http://vh1.com " ; }
else if ( document . stationform . stationselect . options [ 22 ] . selected ) {
window . location . href = " http://www.weather.com " ; }
else if ( document . stationform . stationselect . options [ 23 ] . selected ) {
window . location . href = " http://www.disneychannel.com " ; }
return true ;
}
function textValue () {
var stationInteger , stationString
stationInteger = document . stationform . stationselect . selectedIndex
stationString = document . stationform . stationselect . options [ stationInteger ] . text
document . stationform . stationtext . value = " Go to " + stationString + " ! "
}
// End -->
</ SCRIPT >
</ HEAD >
< BODY >
< center >< BR >
< FORM name = " stationform " >
< SELECT name = " stationselect " onChange = " textValue() " multiple size = " 5 " >
< option > ABC
<option > CBS
<option > NBC
<option > Fox
<option > Cartoon Network
<option > Discovery Channel
<option > Warner Brothers Network
<option > QVC
<option > History Channel
<option > MTV
<option > CNN
<option > A & E
<option > American Movie Classics ( AMC )
<option > Bravo
<option > C - SPAN
<option > Comedy Central
<option > ESPN
<option > fX
<option > HBO
<option > Sci - Fi Channel
<option > Showtime
<option > VH - 1
<option > Weather Channel
<option > Disney Channel
</SELECT >
< br >
< p >
< input type = " button " name = " stationbutton " value = " Go! " onClick = " go_to_station() " >
< p >
< input type = " text " name = " stationtext " value = "" size = " 35 " maxlength = " 35 " >
< p >
</ FORM >
</ center >
</ BODY >
</ HTML >
Дано ви свърши работа!
1 посетител чете този скрипт (0 потребители и 1 гост)
Активни потребители:
---