代码的相关部分已包含在内。问题是我的脚本不会调用它的子脚本。
<script language="javascript" type="text/javascript">
if (document.documentElement.clientwidth < 640) {
document.getElementById('other').innerHTML = '<script type="text/javascript" src="http://shoutcast.mixstream.net/js/external/flash/metalradio.mcast.com:44536:1:000000:f fffff:ffffff:::1"> <\/scr' + 'ipt>';
};
</script>
<body>
<div id = "other">
<!--Nothing happens using above script-->
</div>
<div id ="another">
<!--displays flash player -->
<script type="text/javascript" src="http://shoutcast.mixstream.net/js/external/flash/metalradio.mcast.com:44536:1:000000:f fffff:ffffff:::1"></script>
</div>
<body>
我错过了一些转义字符还是什么?我已拥有一切。