js错误
我看到个帖子,这个还是没法运行啊。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<div id="mian1">
<div id="aside" style="margin-left:10px;margin-top:10px; border-right:0px solid #d1d2d2;">
<ul>
<li style="overflow:hidden"><a href="javascript:play('http://swf.ws.126.net/openplayer/v02/-0-2_M85KB5UHS_M85KDUDPK-vimg1_ws_126_net//image/snapshot_movie/2012/7/U/B/M85KDUQUB-.swf','1);">1</a></li>
<li style="overflow:hidden"><a href="javascript:play('http://swf.ws.126.net/openplayer/v02/-0-2_M85KB5UHS_M85M7RDOV-vimg1_ws_126_net//image/snapshot_movie/2013/8/R/N/M95NEMKRN-.swf','2');">2</a></li>
</ul>
</div>
<div id="radio_container">
<embed align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash" id="video1"
src="http://swf.ws.126.net/openplayer/v02/-0-2_M85KB5UHS_M85M7RDOV-vimg1_ws_126_net//image/snapshot_movie/2013/8/R/N/M95NEMKRN-.swf" name="player" volume="100"> </embed></div>
<div id="rside" >
</div>
</html>
<script>
function play(url, desc) {
document.getElementById('video1').src=url;
document.getElementById('video1').setAttribute("src",url);
document.getElementById('video1').outerHTML = "<embed id='video1' src='"+url+"'></embed>"; // IE下是可以的
}
</script>
</body>
[解决办法]
<li style="overflow:hidden"><a href="javascript:play('http://swf.ws.126.net/openplayer/v02/-0-2_M85KB5UHS_M85KDUDPK-vimg1_ws_126_net//image/snapshot_movie/2012/7/U/B/M85KDUQUB-.swf','1');">1</a></li>
//这里少了'