<! DOCTYPE html>
<meta charset= "UTF-8" >
<title></title>
<style type= "Text/css" >
. contain-foot-nav {
width:33.3%;
Float:left;
Text-align:center;
position:relative;
}
. contain-foot-nav img {
Display:block;
margin:0 Auto;
}
. foot-nav-top {
width:100%;
height:120px;
Position:absolute;
}
. Contain-foot-nav h2{
margin-top:120px;
}
. Contain-foot-nav H3 {
font-size:16px;
Color: #4CD1A2;
}
</style>
<body>
<div class= "Contain-foot-nav" >
<div class= "Foot-nav-top" >
<a href= "tel://020-38353308" ></a>
</div>
</div>
<script src= "Js/jquery-1.9.1.min.js" type= "Text/javascript" charset= "Utf-8" ></script>
<script type= "Text/javascript" >
$ (function () {
var set = SetInterval (function () {
Top ();
Bottom (); Start timer
}, 1500);
Top ();
Bottom ();
function Top () {
$ (". Foot-nav-top"). Animate ({
Top: "15px"
});
};
function Bottom () {
$ (". Foot-nav-top"). Animate ({
Top: "1px"
});
};
$ (". Foot-nav-top"). MouseEnter (function () {
Clearinterval (set); Clear Timer
})
$ (". Foot-nav-top"). MouseLeave (function () {
Set = SetInterval (function () {//Start timer
Top ();
Bottom ();
}, 1500);
})
});
</script>
</body>
Jqery implement an icon up and down slide effect