问问题
26359 次
1 回答
3
在线演示:http: //jsfiddle.net/thefourtheye/GP5HE/
代替 SPAN 标签,您可以使用它
<select onChange="playVideo(this)">
<option value="Trailer5">Terms and Conditions may Apply</option>
<option value="Trailer10">How to Train your Dragon 2</option>
</select>
并且必须像这样修改脚本
<script type='text/javascript'>
function playVideo(a)
{
a = document.getElementById(a.value);
b = document.getElementById("videoPlayback");
b.innerHTML = a.innerHTML;
}
</script>
于 2013-10-13T06:05:49.300 回答