〈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>