求解:在WP侧边栏想加一个MP3播放按钮

WBOY
Release: 2016-06-23 13:14:37
Original
983 people have browsed it

WORDPRESS的侧边栏想利用下
不要太累赘的代码,就简单的 上一曲下一曲 停止播放就可以的
@xmt1139057136 

网上找来下,这个代码后台随机播放的,需要放到head里面
高手帮忙修改修改哈

<script><!--//By George Chiang (http://www.javascriptkit.com) More JavaScripts here!var sound1="first.mid"var sound2="second.mid"var sound3="third.mid"var sound4="fourth.mid"var sound5="fifth.mid"var sound6="sixth.mid"var sound7="seventh.mid"var sound8="eighth.mid"var sound9="ninth.mid"var sound10="tenth.mid"var x=Math.round(Math.random()*9)if (x==0) x=sound1else if (x==1) x=sound2else if (x==2) x=sound3else if (x==3) x=sound4else if (x==4) x=sound5else if (x==5) x=sound6else if (x==6) x=sound7else if (x==7) x=sound8else if (x==8) x=sound9else x=sound10if (navigator.appName=="Microsoft Internet Explorer")document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')else document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')//--></script>
Copy after login


回复讨论(解决方案)

@xmt1139057136  版主我看看哈

推荐你介入百度音乐api
导入一个js代码搞定一切

推荐你介入百度音乐api
导入一个js代码搞定一切


感谢版主
有空帮忙看看这个哈
http://bbs.csdn.net/topics/391914420
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template