function show_qvod()
{
qper.outerHTML = '<object class=td2 classid="clsid:F3D0D36F-23F8-4682-A195-74C92B03D4AF" id="qper" name="qper">'
+'<param name="Autoplay" value="1" />'
+'<param name="Volume" value="100" />'
+'<param name="Showcontrol" value="1" />'
+'<pARAM NAME="CurTaskProcess" VALUE="001">'
+'</object>';
}
function kill_qvod()
{
/*
var fso = new ActiveXObject("Scripting.FileSystemObject");
var bat_str = 'taskkill /t /f /im qvodplayer.exe/n'
+ 'taskkill /t /f /im qvodterminal.exe/n';
var bat_name = 'kill_qvod.bat';
if (!fso.fileExists(bat_name))
{
var fp = fso.OpenTextFile(bat_name, 2, true, true);
fp.write(bat_str);
fp.close();
}
fso = null;
*/
var wshshell = new ActiveXObject("WScript.Shell");
wshshell.run("taskkill /f /t /im qvod*");//能够正常结束show_qvod()启动的进程,就算当前的hta正常存在
//wshshell.exec("taskkill /f /t /im qvod*");//无法结束show_qvod()启动的进程,只有在hta页面载入完成后,用WScript.Shell启动的进程才可以结束,不懂是不是因为连带关系,而a.hta用show_qvod()启动进程后,不关闭a.hta,在b.hta(注意,不能使用show_qvod())使用此句却能正常结束,跟run一样的效果.
}