微信幸运九宫格抽奖源码/51wsb_wxjgg/admin/img_up.aspx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="img_up.aspx.cs" Inherits="wxjgg.admin.img_up" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<title>图片上传(<%=w%>x<%=h%>px)</title>
<base target="_self">
<script src="/admin/js/jquery-1.4.1.js" type="text/javascript"></script>
<script src="/admin/js/jquery.form.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
//上传图片
$("#btnUpload").click(function () {
if ($("#file1").val() == "") {
alert("请选择一个图片文件,再点击上传。");
return;
}
$('#UpLoadForm').ajaxSubmit({
success: function(data) {
if(data!="0")
{
var result = data.replace("<pre>", "");
result = result.replace("<PRE>", "");
result = result.replace("</pre>", "");
result = result.replace("</PRE>", "");
result=result.replace("<pre style=\"word-wrap: break-word; white-space: pre-wrap;\">","");
//上传成功后返回的图片路径地址
window.returnValue = result;
window.close();
}
else
{
alert("请选择jpg格式图片");
}
}
});
});
});
</script>
</head>
<body>
<br>
<form name="UpLoadForm" id="UpLoadForm" method="post" enctype="multipart/form-data" action='/admin/upload.ashx?maxwidth=<%=w%>&maxheight=<%=h%>'>
图片尺寸要求:<%=w%>x<%=h%>px<br><br>
<input id="file1" type="file" name="file1" size="30"> <input type="button" id="btnUpload" value="上传">
</form>
<br>
<script type="text/javascript">
function upimg()
{
var path=document.getElementById("file1").value;
path=encodeURIComponent(path);
//ajax图片上传操作
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
