Ajax Loader
×
HTML
<div id="header">
1
<div id="header">
2
<ul>
3
  <li id="home" class="entypo-home"></li>
4
  <li id="shop" class="entypo-tag"></li>
5
  <li id="about" class="entypo-book"></li>
6
  <li id="contact" class="entypo-feather"></li>
7
  <li id="rate" class="entypo-gauge"></li>
8
</ul>
9
</div>
 
CSS
@import url(http://weloveiconfonts.com/api/?family=entypo);
1
@import url(http://weloveiconfonts.com/api/?family=entypo);
2
 
3
/* entypo */
4
[class*="entypo-"]:before {
5
  font-family: 'entypo', sans-serif;
6
}
7
 
8
#header {
9
  width:100%;
10
  height:100px;
11
  margin:0;
12
  position:fixed;
13
  background:#ccc;
14
  vertical-align: baseline;
15
  overflow:hidden;
16
}
17
ul {
18
  font-size:25px;
19
  margin:0;
20
  padding:0;
21
}
22
 
23
li {
24
  cursor:pointer;
25
  padding:40px 20px;
26
  border-right:1px solid #ddd;
27
  display:block;
28
  float:left;
29
  -webkit-transition: .5s;
30
  -moz-transition: .5s;
31
  -o-transition: .5s;
32
  transition: .5s;
33
  -webkit-transition-delay: .1s;
34
  -moz-transition-delay: .1s;
35
  -o-transition-delay: .1s;
36
  transition-delay: .1s;
37
}
38
 
39
li:hover {
40
  color:#ccc;
41
  background:#000;
42
  -webkit-transition: .5s;
43
  -moz-transition: .5s;
44
  -o-transition: .5s;
45
  transition: .5s;
46
}
 
JavaScript
document.getElementById("home").onmouseover = function() { document.getElementById("home").innerHTML = " Home"}
1
document.getElementById("home").onmouseover = function() { document.getElementById("home").innerHTML = " Home"}
2
document.getElementById("home").onmouseout = function() { document.getElementById("home").innerHTML = ""}
3
document.getElementById("shop").onmouseover = function() { document.getElementById("shop").innerHTML = " Shop"}
4
document.getElementById("shop").onmouseout = function() { document.getElementById("shop").innerHTML = ""}
5
document.getElementById("about").onmouseover = function() { document.getElementById("about").innerHTML = " About"}
6
document.getElementById("about").onmouseout = function() { document.getElementById("about").innerHTML = ""}
7
document.getElementById("contact").onmouseover = function() { document.getElementById("contact").innerHTML = " Contact"}
8
document.getElementById("contact").onmouseout = function() { document.getElementById("contact").innerHTML = ""}
9
document.getElementById("rate").onmouseover = function() { document.getElementById("rate").innerHTML = " Rate"}
10
document.getElementById("rate").onmouseout = function() { document.getElementById("rate").innerHTML = ""}
11
 
 

Untitled

CSSDeck G+