yuesu/aspxadmin/controls/Uponepic.ascx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Uponepic.ascx.cs" Inherits="Mvcb2b.aspxadmin.controls.Uponepic" %>
<script type="text/javascript">
var editorpath2 = "<%=Webd%>editors/"
$("#filediv3").ready(function() { cfm3(); });
function cfm3() {
newElem = document.getElementById("filediv3");
newElem.innerHTML = "";
var frm = document.createElement("iframe");
frm.setAttribute("name", "ifr3");
frm.setAttribute("id", "ifr3");
var upfile = editorpath2 + "uploadinc/Uponepic.aspx?w=<%=Width%>";
upfile = encodeURIComponent(upfile);
var inputname = "<%=picurl_txt.ClientID %>";
frm.setAttribute("src", editorpath2 + "Uphtml.aspx?input=" + inputname + "&save=" + upfile);
frm.setAttribute("marginwidth", "0");
frm.setAttribute("marginheight", "1");
frm.setAttribute("width", "100%");
frm.setAttribute("height", "25");
frm.setAttribute("scrolling", "no");
frm.setAttribute("border", "0");
frm.setAttribute("frameborder", "0");
/*var frm = document.createElement("<iframe name='ifr' id='ifr' src='' marginwidth='' marginheight='1' width='260' height='25' scrolling='no' border='0' frameborder='0'></iframe>"); //chrome不支持*/
newElem.appendChild(frm);
}
function uperror(msg) {
alert(msg);
cfm3();
}
function parentcfm3(str,picid) {
var webd = "<%=Webd%>";
var imgstr = '<img src="' + webd + str + '" onload="javascript:if(this.width>380){this.width=380;}" alt="" />';
var picsmall = "#<%=picurl_txt.ClientID %>";
$(picsmall).val(str); //赋值完
document.getElementById("smallpic").innerHTML = imgstr;
document.getElementById("smalldel").innerHTML = '<a onclick="delsmall(\'' + str + '\');" href="#">删除</a>';
cfm3();
}
function delsmall(path) {
if (confirm('确实要删除吗?')) {
$.ajax({
type: "POST",
url: "jquery/Delsmallpic.aspx",
dataType: "html",
data: { "p": "" + path + "" }, //p传输的参数
success: function(html) {
if (html != "0") {
alert("图片删除成功")
document.getElementById("<%=picurl_txt.ClientID %>").value = "";
document.getElementById("smallpic").innerHTML = "";
}
}, error: function(html) { alert("没有权限!"); }
});
}
}
function showsmall(str) {
if (str != "") {
var webd = "<%=Webd%>";
var imgstr = '<img src="' + webd + str + '" onload="javascript:if(this.width>380){this.width=380;}" alt="" />';
后面还有 19 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
