zoukankan      html  css  js  c++  java
  • JS

         $(".gameSound").bind("click",function() {
                var audio = document.getElementById('music1');
               
                if(audio.paused){
                    $(".gameSound").css({ //切换到播放的背景图片
                        "background": "url(../../../img/game/Sound.png) center no-repeat",
                  "background-size": "cover"
                    })
                    audio.play();//audio.play();//播放
                }else{
                    $(".gameSound").css({ //切换到暂停的背景图片
                        "background": "url(../../../img/game/SoundClose.png) center no-repeat",
                  "background-size": "cover"
                    })
                    audio.pause();// 暂停
                }
             })
  • 相关阅读:
    招标问什么
    其他房产
    长沙
    flume kafka
    http://www.zhihu.com/question/24301047
    38.NOW() 函数
    35.MID() 函数
    36.LEN() 函数
    34.UCASE() LCASE() 函数
    33.HAVING 子句
  • 原文地址:https://www.cnblogs.com/500m/p/11288396.html
Copyright © 2011-2022 走看看