導航:首頁 > 編程語言 > 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透明音樂播放器相關的資料

熱點內容
手機system文件 瀏覽:672
我的網路被房東禁了 瀏覽:505
c獲取配置文件 瀏覽:476
蘋果5s5gwifi 瀏覽:261
棋類程序編程一般用什麼演算法 瀏覽:792
dnf86版本紅字 瀏覽:452
xp去掉域登陸密碼 瀏覽:729
淘寶全屏顯示代碼 瀏覽:921
大數據內涵體現在下列哪個方面 瀏覽:105
數據網路怎麼自己打開了 瀏覽:688
可編程式控制制器的優點有哪些 瀏覽:623
g502配置文件 瀏覽:159
1024b數據多少位元組 瀏覽:720
java俄羅斯方塊設計說明書 瀏覽:313
英雄聯盟710版本銳雯 瀏覽:818
keil編譯後顯示代碼大小 瀏覽:959
一份多頁紙質文件轉換成pdf 瀏覽:43
論文數據很少怎麼辦 瀏覽:972
哪個app可以賣二手課程 瀏覽:474
互聯網app如何算毛利 瀏覽:300

友情鏈接