forked from KitoVallim/java-script-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (81 loc) · 2 KB
/
index.html
File metadata and controls
98 lines (81 loc) · 2 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
87
88
89
90
91
92
93
94
95
96
97
98
<!Doctype html>
<html>
<head>
<title>Menu CSS jQuery</title>
<meta charset="utf-8">
<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"
},400);
},function(){
$(this).find('span').stop().animate({
marginTop:"0px"
},300);
},function(){
});
//$('#menu ul li span').css('display','inline');
$("body").css("background", "MidnightBlue");
$("#menu ul li span").css("background", "yellow");
$("#menu ul li span").css("color", "green");
$("a").css("color","#00BFFF");
alert('Seja bem-vindo!')
});
</script>
<style>
body{background:black;
}
#menu{width:700px;
margin:auto;
}
#menu ul{list-style:none;
font-size:18px;
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:#FFFFFF;
/*background:url("images/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>