yuesu/aspxadmin/comja/up.js
(完整代码) 2KB$(function(){
startbox();
$('#zoomtueditor').on("click",".oneCloseBtn",function () {
$('#wrapeditor').hide();
$('#zoomtueditor').slideUp('slow');
});
});
function startbox(){
var elmodal = document.createElement('div');
elmodal.setAttribute("id", "zoomtueditor");
/*
//elmodal.setAttribute("class", "modaleditor clearfix");ie7不支持
*/
elmodal.className="modaleditor clearfix";
document.body.appendChild(elmodal);
var elwrap = document.createElement('div');
elwrap.setAttribute("id", "wrapeditor");
document.body.appendChild(elwrap);
}
function cfmeditor(upfile) {
var ztu = $('#zoomtueditor')[0];
ztu.innerHTML = "";
var frm = document.createElement("iframe");
frm.setAttribute("name", "ifr_editor_upload");
frm.setAttribute("id", "ifr_editor_upload");
frm.setAttribute("src", "upfile.aspx?save="+upfile);
frm.setAttribute("marginwidth", "0");
frm.setAttribute("marginheight", "1");
frm.setAttribute("width", "320");
frm.setAttribute("height", "150");
frm.setAttribute("scrolling", "no");
frm.setAttribute("border", "0");
frm.setAttribute("frameborder", "0");
ztu.appendChild(frm);
$('<div class="clear"></div><div class="oneCloseBtn"><a href="javascript:void(0);" rel="nofollow"></a></div>').prependTo($('#zoomtueditor'));
// var ifr = window.frames['ifr_editor'];
// createcfmeditor(ifr,upfile);
}
function upfilebox(upfile){
//var text="<iframe name='ifr' id='ifr' src='"+upfile+"' marginwidth='0' marginheight='0' width='300' height='100' scrolling='no' border='0' frameborder='0'></iframe>";
cfmeditor(upfile);
var ztu=$('#zoomtueditor');
//var text = '<div class="oneCloseBtn"><a href="javascript:void(0);" rel="nofollow"></a></div>';
//ztu.prependTo(text);
$('#wrapeditor').show();
var w=320;
var h=150;
ztu.width(w);
ztu.height(h);
var br_height=document.documentElement.clientHeight;
var topheight =((br_height-(h + 48))/2 +$(document).scrollTop()) + "px";
ztu.css("top", topheight);
ztu.css("margin-left", "-" + (w + 36) / 2 + "px");
ztu.fadeIn('slow');
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
