| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 655 人关注过本帖
标题:怎么才能完成一下MusicOVer()函数?
只看楼主 加入收藏
pobear
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-4-9
收藏
 问题点数:0 回复次数:0 
怎么才能完成一下MusicOVer()函数?
求众位高手指点一下。
下面代码是一个flash播放器的JS控制接口。其中playMusic(music,lrc)是播放歌曲的函数。还有一个onMusicOver()函数是需要写的函数,要实现的功能是通过playMusic(music,lrc)能够连续播放多首歌曲。
我弄了好久也没有整明白,请大家帮个忙,先谢谢大家了~~~
function pasteMusic(){
var url=window.clipboardData.getData("Text");
window.document.S2.SetVariable("music",url);
window.document.S2.TCallFrame("jsAPI",1);
}
function pasteLRC(){
var url=window.clipboardData.getData("Text");
window.document.S2.SetVariable("lrc",url);
window.document.S2.TCallFrame("jsAPI",2);

}
function playMusic(music,lrc){
window.document.S2.SetVariable("music",music);
window.document.S2.SetVariable("lrc",lrc);
window.document.S2.SetVariable("loop",false);
window.document.S2.TCallFrame("jsAPI",3);
}
function onMusicOver(){

}
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function S2_DoFSCommand(command, args){
switch(command){
case "pasteMusic":
pasteMusic();
break;
case "pasteLRC":
pasteLRC();
break;
case "onMusicOver":
//JavasSript 扩展,当音乐播放完时使用(注意:必须在循环播放关闭时)
onMusicOver();
break;
}

}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub S2_FSCommand(ByVal command, ByVal args)\n');
document.write(' call S2_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
搜索更多相关主题的帖子: 函数 MusicOVer window lrc 
2006-04-09 19:27
快速回复:怎么才能完成一下MusicOVer()函数?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020053 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved