我的页面上有一个音乐播放器,其代码如下:
<!--SCM Music Player by Adrian C Shum - http://scmplayer.net-->
<script type="text/javascript" src="http://scmplayer.net/script.js" ></script>
<script type="text/javascript">
SCMMusicPlayer.init("{'skin':'skins/black/skin.css','playback':{'autostart':'true','shuffle':'true','volume':'40'},'playlist':[{'title':'2Spooky Battle','url':'http://a.tumblr.com/tumblr_mbdoptQ5LT1rte8jio1.mp3'}], 'onplay': function() {alert('playing');},'placement':'bottom','showplaylist':'false'}");
</script>
<!--End of SCM Music Player script-->
我也有两张图片,其代码如下所示:
<html>
<head>
<style type="text/css">
#img1{
position: fixed;
right: 10px;
bottom: 100px;
z-index: 10;
visibility:hidden;
}
#img2{
position: fixed;
left: 10px;
top: 10px;
z-index: 10;
visibility:hidden;
}
</style>
</head>
<body>
<img src="IMAGE1.png" id="img1">
<img src="IMAGE2.png" id="img2">
</body>
</html>
我想这样做,以便在播放器启动时这两个都变得“可见”。我需要添加/取出/替换什么才能使它起作用?