jquery播放和暂停按钮特效

 

jquery播放和暂停按钮特效,点击可以查看大图
需      要: 0.0 金币
折      扣: 100 (% 折)
 
相关搜索: jquery 播放 暂停 按钮 
下载次数: 5
支持一下(1)
100.00%
踩一下(0)
0.00%
  • 下载等级:
  • 编  号: 20120601160807
  • 浏览器兼容IE7.0,IE8.0,IE9.0,Firefox9.0及以前,Firefox10.0,Chrome17.0及以前,Chrome18.0
  • 更新日期: 2012-06-01
  • 大  小: 124.64K
  • 浏览次量: 2287
  • 开发者链接: 官网  演示
  • 相  关: 违规举报
  • 收  藏:( 0 人收藏) 加入收藏
  • 此内容校验人员: sinacomcn
分享到:   
pengbinhai  
 上士 上传于/2012-06-01 16:10:46
零星会员   
   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jquery播放和暂停按钮 by 25175</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8"/>
</head>
<style>
body { font-family:Arial; background:#fff url(title.png) no-repeat top left; }
a.button { padding: 5px 10px 6px; color: #fff; font-weight:bold; background-color:#999; text-decoration: none; -moz-border-radius: 5px; -webkit-border-radius: 5px; -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25); border-bottom: 1px solid rgba(0, 0, 0, 0.25); float:right; cursor: pointer; }
a.button:hover { background-color: #111; color: #fff; }
a.back { width:167px; height:39px; position:absolute; bottom:15px; left:15px; background:#fff url(back.png) no-repeat top left; }
</style>
<body>
<a id="playbutton" class="button">Pause / Play</a>
<div id="player" class="player"> <img id="play" src="images/play.png" width="100" height="100" style="display:none;"/> <img id="pause" src="images/pause.png" width="100" height="100" style="display:none;"/> </div>
<div class="info"> <a class="back" href="http://www.25175.com"></a> </div>


<div style="width:550px;margin:20px auto;">
<p><strong><a href="http://www.25175.com" target="_blank">25175</a></strong> </p>

</div>

<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
            $(function() {
                $(document).keypress(function(e){
                    if ((e.which && e.which == 32) || (e.keyCode && e.keyCode == 32)) {  
                        togglePlay();            
                        return false;  
                    } else {  
                        return true;  
                    }  
                });
                $('#playbutton').click(function(){
                    togglePlay();
                    return false;
                });
                
                function togglePlay(){
                    var $elem = $('#player').children(':first');
                        $elem.stop()
                             .show()
                             .animate({'marginTop':'-175px','marginLeft':'-175px','width':'350px','height':'350px','opacity':'0'},function(){
                                $(this).css({'width':'100px','height':'100px','margin-left':'-50px','margin-top':'-50px','opacity':'1','display':'none'});
                             });    
                        $elem.parent().append($elem);
                }
            });
        </script>
        
        
</body>
</html>

 购买记录
cping1210
新兵
tayir
新兵
刘涛_90
新兵
zanenanhai
新兵
jganguly
新兵
会员评论:  

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。

  验证码:
 
反馈请帮助我们提高!意见反馈