感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.user_btn {
width: 60px;
height: 30px;
background: #FC9;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
text-align: center;
}
</style>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
function shoucang(which){
if($(which).attr("value")=="收藏")
{
$(which).attr("value","已收藏");
else if($(which).attr("value")=="已收藏")
$(which).attr("value","收藏");
</script>
</head>
<body>
<input name="收藏" type="button" value="收藏" class="user_btn" onclick="shoucang(this)"/>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
输入 CSS 代码……