-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (85 loc) · 1.95 KB
/
index.html
File metadata and controls
86 lines (85 loc) · 1.95 KB
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
<!Doctype html>
<html>
<head>
<title>Menu CSS jQuery</title>
<meta charset="utf-8">
<meta name="author" value="Marco Vallim 2L11">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#menu ul li').prepend('<span></span>');
$('#menu ul li').each(function(){
var texto= $(this).find('a').text();
$(this).find('span').text(texto);
});
$('#menu ul li').hover(function(){
$(this).find('span').stop().animate({
marginTop:"-40px"
},300);
},function(){
$(this).find('span').stop().animate({
marginTop:"0px"
},2000);
});
});
</script>
<style>
body{background:black;
}
body::after{
content:"";
background-image:url("bgGrid.jpg");
opacity: 6;
margin: 0;
position: absolute;
z-index: -1;
}
#menu{
width: 700px;
margin: 0 auto;
}
#menu ul{list-style:none;
font-size:1em;
font-family:"Hobo Std";
margin:0px;
padding:0px;
height:40px;
overflow:hidden;
}
#menu ul li{float:left;
}
#menu ul li a, #menu ul li span{width:100px;
padding:10px 20px;
height:18px;
color:#003355;
background:url("Degrade_img.jpg") repeat-x;
background:red;
text-decoration:none;
overflow:hidden;
text-align:center;
}
#menu ul li span{
display:block;
cursor:pointer;
}
#menu ul li a{
float:left;
background:url("Degrade_img.jpg") repeat-x left bottom;
color:#000000;
height:10px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Portifólio</a></li>
<li><a href="#">Localização</a></li>
<li><a href="#">Empresa</a></li>
<li><a href="#">Contato</a></li>
</ul>
</div>
</body>
</html>