導航:首頁 > 編程語言 > js透明音樂播放器

js透明音樂播放器

發布時間:2023-09-03 14:04:06

① 關於PHP及Html5或js網頁音樂播放器問題

HTML5自帶有音頻擴展,現在瀏覽器基本都支持HTML5(守著(古董當寶貝就算了)

<audiosrc="song.ogg"controls="controls">
</audio>

由於內音頻版權問題,各種瀏容覽器支持格式略有差異

除了載入第三方音樂控制項,否則什麼全兼容、自定義ui還是死了這心吧,每個幾百萬沒公司敢做

② js音樂播放器

<audio id="aaa" src="yinyue.mp3" autoplay controls></audio>
<input type=button value=暫停 onclick="aaa.pause();">
<input type=button value=播放 onclick="aaa.play();">

③ 怎樣用javascript做一個音樂播放器CD旋轉的效果

<!DOCTYPEhtml>


<head>
<metacharset="utf-8"/>
<title></title>
<styletype="text/css">
.image{
border-radius:50%;
width:80px;
height:80px;
margin:100pxauto;
display:block;
border:dottedsolid#666;
padding:5px;
}
</style>
</head>
<body>
<div>
<imgsrc="1.png"id="img"class="image"onclick="timeout?stopAnim():startAnim()"/>
</div>

<scripttype="text/javascript">
vartimeout,rotate=0;
functionstartAnim(){
timeout=setInterval(function(){
varimg=document.getElementById("img");
varrotateStyle="rotate("+rotate+"deg)";
img.style.transform=rotateStyle;
img.style["-moz-transform"]=rotateStyle;
img.style["-webkit-transform"]=rotateStyle;
img.style["-o-transform"]=rotateStyle;
img.style["-ms-transform"]=rotateStyle;

rotate+=6;
if(rotate>360){
rotate=0;
}
},30);
}
functionstopAnim(){
clearInterval(timeout);
timeout=null;
}

startAnim();
</script>
</body>
</html>

img標簽的src改為你自己的圖片路徑。

本實例不支持ie11以下瀏覽器,請用谷歌或者火狐瀏覽器打開。

閱讀全文

與js透明音樂播放器相關的資料

熱點內容
生意轉租用什麼app 瀏覽:683
廣義的網路信息保密性是指 瀏覽:657
qq背景唯美簡約圖片 瀏覽:292
sky網路電話怎麼收費 瀏覽:599
編程公司哪個比較好 瀏覽:182
修改歸檔日誌文件的路徑 瀏覽:8
配置文件替換 瀏覽:117
mac右鍵沒有刪除文件 瀏覽:624
蘋果手機游戲文稿和數據在哪清理 瀏覽:326
qq旋風文件名 瀏覽:270
手機system文件 瀏覽:672
我的網路被房東禁了 瀏覽:505
c獲取配置文件 瀏覽:476
蘋果5s5gwifi 瀏覽:261
棋類程序編程一般用什麼演算法 瀏覽:792
dnf86版本紅字 瀏覽:452
xp去掉域登陸密碼 瀏覽:729
淘寶全屏顯示代碼 瀏覽:921
大數據內涵體現在下列哪個方面 瀏覽:105
數據網路怎麼自己打開了 瀏覽:688

友情鏈接