以文本方式查看主题

-  ╋艺 镇╋  (http://wdystv.com/bbs/index.asp)
--  ┣◇网站建设&Web语言  (http://wdystv.com/bbs/list.asp?boardid=4)
----  自动调用mediaplayer  (http://wdystv.com/bbs/dispbbs.asp?boardid=4&id=1384)

--  作者:admin
--  发布时间:2008/4/30 22:52:28
--  自动调用mediaplayer

〈head〉与〈/head〉间
<script>
function op(dir,nanme)
{
var win=window.open("","","width=268 height=150");
win.document.write(\'<body topmangin="0" leftmargin="0" rightmargin="0" bottommargin="0"><titles\'+name+\'</title><embed name=player scr="\'+dir+\'" type=audio/x-pn-realaudio=plugin width="268"
height="100" border="0" autostart="true"></embed><center>copyright:szs<br><a herf="mailto:asdfasf@eyou.com">sansdfa@eyou.com</a>
</center></body>\');
}
</script>

〈body〉与〈/body〉间调用函数
<a herf="javascript:op(\'http://music.njau.edu.cn/song/yx/1.mp3\',\'sdfsdfsdfsdf\')">歌曲名称</a>