js文件
function player123(aid){
document.write("<object classid='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' id='aboutplayer' width='460' height='64'>");
document.write("<param name='url' value='musicurl.php?aid=" + aid + "'>");
document.write("<param name='volume' value='100'>");
document.write("<param name='enablecontextmenu' value='0'>");
document.write("<param name='enableerrordialogs' value='0'>");
document.write("<param name='loop' value='true' />");
document.write("</object>");
}
musicurl.php如下(测试输出正常)
$rt = $db->get_one("SELECT * FROM pw_attachs WHERE aid=" . pwEscape($aid));
$a_url = geturl($rt['attachurl']);
if (empty($a_url) || $rt['needrvrc'] > 0) {
Showmsg('job_attach_error');
}
//return $a_url[0];
//echo "$a_url[0]";
//
$asx="";
$asx.="<ASX version =\"3.0\">\n";
$asx.="<Entry SKIPIFREF=\"YES\">\n";
$asx.="<Title>sdfdf</Title>\n";
$asx.="<Ref href =\"http://localhost/wind/$a_url[0]\"/>\n";
$asx.="<author>sdfsdf</author>\n";
$asx.="<copyright>本歌曲版权属于歌手及其唱片公司所有 本站只作试听用途</copyright>\n";
$asx.="<param name=\"Artist\" value=\"asdasd\"/>\n";
$asx.="<param name=\"Album\" value=\"本歌曲共点播1次\"/>\n";
$asx.="<param name=\"Title\" value=\"sdfdf\"/>\n";
$asx.="</Entry>\n";
$asx.="</ASX>\n";
echo $asx;
另一个php文件调用js文件的play123();
结果输出播放器、就是不能播放音乐、请问一下这是什么问题啊?