<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery仿skype按钮效果</title>
<script type="text/javascript" src="//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".button").hover(function(){
.animate({top:"-10px"}, 200).animate({top:"-4px"}, 200)
.animate({top:"-7px"}, 100).animate({top:"-4px"}, 100)
.animate({top:"-6px"}, 100).animate({top:"-4px"}, 100);
body{font-family: Arial, Helvetica, Sans-Serif;font-size: 12px;margin: 20px;}
.button{padding: 4px 10px 3px 25px;border: solid 1px #8AB134;position: relative;cursor: pointer;display: inline-block;background-image: url( '//ku.shouce.ren/files/images/201601/56a36dc4f3c5a.png' );background-repeat: repeat-x;font-size: 11px;height: 16px;text-decoration: none;color: #40740D;-moz-border-radius-bottomleft: 5px;-moz-border-radius-bottomright: 5px;-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;}
.button img{position: absolute;top: -4px;left: -12px;border: none;}
.button: hover{color: #8AB134;}
input, textarea{display: block;margin-bottom: 10px;width: 300px;}
<h1>如何使用jQuery生成一个仿Skype风格的button?</h1>
<label for="name">请输入您的姓名:</label><input type="text" id="name" />
<a class="button" href="#"><img src="//ku.shouce.ren/files/images/201601/56a36dc579808.png" alt="" />确认提交</a> or <a href="#">取消</a><br /><img src="//ku.shouce.ren/files/images/201601/56a36dc651900.png" alt="Click here">