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

 Slide menu
Автор  eminem (01.04.2005 22:42) съобщение до автора
Погледнат  1090 пъти добави към любими
Оценка добави коментар
Гласове  -- изпрати на приятел
Коментари  (0) абонирай се за JavaScript
     
eminem
     
 

Меню който е скрит в лявата част на страницата и при посочване на мишката се показва.

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
108
109
110
111
112
113
114
115
<html>
<
head>
<
script language="JavaScript1.2">


function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};

function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}
else {eval(document.object1.top=eval(window.pageYOffset+20));}
setTimeout("makeStatic()",0);}
</
script>

<
style>
<!--

.
hl    {
       
Background-Color : yellow;
       
Cursor:hand;
   
}
.
n    {
       
Cursor:hand;
   
}
-->
</
style>
</
head>
<
body>
<
LAYER visibility="hide" top="20" name="object1" bgcolor="black" left="0" onmouseover="move(132)" onmouseout="move(-132)">

<
script language="JavaScript1.2">

function positionmenu(){
move(-132)
}

if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 20px ;Z-Index : 20" onmouseover="move(132)" onmouseout="move(-132)">')}
</
script>

<
table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<
tr><td bgcolor="#0099FF"> <font size="4" face="Arial"><b>Menu</b></font></td>

<
script language="JavaScript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor="#FF6666"><span style="font-size:13px"><p align="center"><font face="Arial Black">S<br>I<br>D<br>E<br>M<br>E<br>N<BR>U</font></p></span></TD>')
</
script>

</
tr>

<
script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}

var text=new Array();
var thelink=new Array();

//
configure thelinks below. Extend as desired

text
[0]="Hit";
text[1]="What's New?";
text[2]="What's Hot?";
text[3]="Message Forum";
text[4]="Frequenty Asked Questions";
text[5]="Submit Script";
text[6]="Link to us";
text[7]="Email us";

thelink[0]="http://dimigroup.hit.bg";
thelink[1]="http://dimigroup.hit.bg";
thelink[2]="http://dimigroup.hit.bg";
thelink[3]="http://dimigroup.hit.bgi";
thelink[4]="http://dimigroup.hit.bg";
thelink[5]="http://dimigroup.hit.bg";
thelink[6]="http://dimigroup.hit.bg";
thelink[7]="http://dimigroup.hit.bg";


//
enter target of above links
//
Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target)
var linktarget=''

///Не променяйте нищо от тук нататъка////////////////

function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}

for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className='hl'" onmouseout="className='n'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor='yellow'" onmouseout="this.bgColor='white'" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}

//-->
</
script>
<
tr>
<
td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</
TR>
</
table>
<
script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</
script>
</
LAYER>
</
body>
</
html>



Ключови думи: javascript меню slide menu




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

Еmail  
 

 

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



IT-PLACE.NET © 2004 - 2008