标签:dex soft dialog func 文件 url artdialog row 录音
function getPath(path){ //window.open(‘http://219.141.70.185:9600/rec_d/‘+path); //var browser = navigator.appName //var b_version = navigator.appVersion var url=‘http://219.141.70.185:9600/rec_d/‘+path; var html; if(navigator.userAgent.indexOf("Chrome") > -1){ //Chrome: html=‘‘; }else if(navigator.userAgent.indexOf("Firefox")!=-1){ //Firefox: html=‘‘; }else if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE6.0"){ //IE(6): html=‘‘; }else if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE7.0"){ //IE(7): html=‘‘; }else if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE8.0"){ //IE(8): html=‘‘; }else if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE9.0"){ //IE(9): html=‘‘; }else if(navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE10.0"){ //IE(10) html=‘‘; }else if(!!window.ActiveXObject || "ActiveXObject" in window){ //IE(11) html=‘‘; }else if(navigator.userAgent.indexOf("Safari") > -1 && navigator.userAgent.indexOf("Chrome") < 1){ //Safari html=‘‘; }else if(navigator.appName.indexOf("Opera")!=-1){ //Opera 待定 //html=‘‘; //html=‘‘; }else{ alert("不支持的浏览器类型!"); } if(html){ artDialog( { content:html, lock:true, style:‘succeed noClose‘, width : ‘300px‘, title:"播放录音" } ); } }
标签:dex soft dialog func 文件 url artdialog row 录音
原文地址:http://www.cnblogs.com/gongshenruju/p/7102722.html