新鞋子旧鞋子(侯德健 程琳)
<div style="width: 1000px;height: 563px;MARGIN-LEFT:0px;margin-top:50px;box-shadow:0px 0px 0px 2px #ffffff, 0px 0px 15px 15px #880000;overflow:hidden;border-radius:1%;bgcolor:#B22222;"><video src="https://kvideo01.youju.sohu.com/eb7580d7-fd1a-4417-8de0-c8ba14b7e13a0_0_0.mp4" loop autoplay muted width="100% "height="100%"></video>
<div id="playframe" style="position:relative; text-align:left; align-content: center;position:relative; margin-left:3px; width:100%; overflow:hidden; font-size:16px; font-weight: bold; height: 563px; margin-top: -550px; " align="center">
<div style='top:40px; left:0x; width:100%; height:32px; font-family :迷你简雪峰; font-size:45px; color:#0000ff; text-align:center; align-content:center; ' align="center" >新鞋子旧鞋子(侯德健 程琳)</div>
</div>
<script type="text/javascript">
var audioArray = [["http://storage.live.com/items/1965B2B1656C2AF6!1178?", "熊猫咪咪(程琳)"],
["http://storage.live.com/items/1965B2B1656C2AF6!1179?", "趁你还年轻"],
["http://storage.live.com/items/1965B2B1656C2AF6!1176?", "新鞋子旧鞋子"],["http://storage.live.com/items/1965B2B1656C2AF6!1177?", "就让它像一首歌"],
["http://storage.live.com/items/1965B2B1656C2AF6!1180?", "酒干倘卖无"],
["http://storage.live.com/items/1965B2B1656C2AF6!1181?", "归去来兮"],
["http://storage.live.com/items/1965B2B1656C2AF6!1182?", "Well I need to be alone"],
["http://storage.live.com/items/1965B2B1656C2AF6!1183?", "你和我的明天"]
];
var opts = {
audioParas:audioArray,
frameID:"playframe"
};
function playMP4(opts) {
var dFrame = document.getElementById(opts.frameID);
var player = document.createElement('audio');
player.autoplay = true;
dFrame.appendChild(player);
var divObj = document.createElement('div');
divObj.style.width = '300px';
divObj.style.height = '200px';
divObj.style.position = 'absolute';
divObj.style.left = '0px';
divObj.style.top = '30px';
divObj.style.color = '#000000';
var olObj = document.createElement('ol');
olObj.style.width = '100%';
olObj.height = '100%';
olObj.style.color = 'blue';
olObj.style.cursor = 'pointer';
var items = new Array();
for(i = 0 ; i < opts.audioParas.length; i++) {
oli = document.createElement('li');
oTxt = document.createTextNode(opts.audioParas);
oli.appendChild(oTxt);
olObj.appendChild(oli);
items = oli;
}
divObj.appendChild(olObj);
dFrame.appendChild(divObj);
//
dFrame.onmouseover = function() {
divObj.style.visibility = 'visible';
}
dFrame.onmouseout = function() {
divObj.style.visibility = 'hidden';
}
player.onended = function() {
items.style.color = 'blue';
player.pause();
curIdx++;
if(curIdx >= items.length) curIdx = 0;
player.src = opts.audioParas;
items.style.color = 'red';
player.play();
}
for(n = 0; n < items.length; n++) {
items.onclick = function() {
player.pause();
items.style.color = 'blue';
for(j = 0; j < items.length; j++) {
if(this.innerHTML == opts.audioParas) {
player.src = opts.audioParas;
this.style.color = 'red';
curIdx = j;
break;
}
}
player.play();
}
}
var curIdx = 0;
player.focus();
player.src = opts.audioParas;
items.style.color = 'red';
}
playMP4(opts);
</script> 欣赏老师佳作。点赞! 欣赏!问好朋友! 欣赏一下,谢谢。
欣赏收藏老师的《新鞋子旧鞋子》很好听,点赞!
页:
[1]