|
function myShowModalDialog(url, args, width, height) {
var tempReturnValue = "";
if (navigator.userAgent.indexOf("Chrome") > 0) {
var paramsChrome = 'height=' + height + ', width=' + width + ', top=' + (((window.screen.height - height) / 2) - 50) +
',left=' + ((window.screen.width - width) / 2) + ',toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no';
window.open(url, "newwindow", paramsChrome);
} else {
var params = 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;status:no;dialogLeft:' + ((window.screen.width - width) / 2) + 'px;dialogTop:' + (((window.screen.height - height) / 2) - 50) + 'px;';
tempReturnValue = window.showModalDialog(url, args, params);
}
return tempReturnValue;
}
我会在chick里的谋个部分调用,请问一下怎么写?
应用场景是这样的,我做一个视频播放的功能,但是由于服务器支持的空间以及带宽都不够
我就想自己写一段其他的云存储的页面来进去视频管理,然后我这里写得功能就是要打开自己写得七牛云的接口页面,
然后获取选择到的信息,例如视频的名称以及URL地址,请问一下你们有解决的方法吗?
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|