求教web发布模块如何设置略缩图入库
通过winsock抓包得到pe!=''){
var url='下载地址'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='5'&type!=''){
var url='图片名称'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='6'&type!=''){
var url='影片名称'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='4'||sModuleIDs=='9'||(sModuleIDs=='10'&type=='4'))
{
obj.value+=strT+'\n';
}
else
{
obj.value=strT;
}
if (objname2!='')
{
parent.document.getElementById(objname2).value+=strT;
}
}
}
function AddUploadFiles(objname,files,filesv){
if(objname!=''){
//alert("OK!");
var obj = parent.document.getElementById(objname);
obj.options=new Option(filesv,files);
}
}
</SCRIPT>
</HEAD>
<BODY topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0>
<TABLE border=0 cellspacing=2 cellpadding=0 WIDTH="100%" HEIGHT="100%">
<SCRIPT language=javascript>SaveFilesUrl('3','','{$download_dir}/Shop/2009-4/2009040913214084863.jpg|','pic','');AddUploadFiles('TempUploadFiles','{$download_dir}/Shop/2009-4/2009040913214084863.jpg','2009040913214084863.jpg');</script><Script Language="JavaScript">alert('上传文件成功!');location.href='http://www.57netcom.com/include/Upload.asp?ID=3&Type=0&Obj=pic&TObj=TempUploadFiles';</Script>
如何设置图片发布
&pic 朋友,你弄错了,这个不是数据包,你重新抓取一下。 谢谢楼上的
HTTP/1.1 200 OK
Cache-Control: private
Date: Thu, 09 Apr 2009 05:21:41 GMT
Content-Length: 2130
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Set-Cookie: %B8%FC%D0%C2=login%5Fmode=&iscookies=&login%5Fusername=&login%5Fid=&login%5Fpassword=&cookies%5Ftrue=yes; expires=Thu, 09-Apr-2009 05:51:40 GMT; path=/
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>57综合信息网 新疆生活网 - 上传文件</TITLE>
<style type="text/css">
/* Css */
</style>
<SCRIPT language=javascript>
if (top.location==self.location) { top.location="./"; }
function upload_submit()
{
var strFileName=document.frm_upload.FileName.value;
if (strFileName=="")
{
alert("请选择要上传的文件");
document.frm_upload.FileName.focus();
return false;
}
}
function SaveFilesUrl(sModuleIDs,type,arr,objname,objname2)
{
if(objname!='')
{
var obj = parent.document.getElementById(objname);
var strT=arr.split('|');
if (sModuleIDs=='2'&ty
这个呢 GET /include/Upload.asp?ID=3&Type=0&Obj=pic&TObj=TempUploadFiles HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/QVOD, */*
Referer: http://www.57netcom.com/admin/admin_Shop.asp?Action=Add&ChannelIDs=3
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: www.57netcom.com
Connection: Keep-Alive
Cookie: QQ_IPAddress=%u65B0%u7586%2C%u4E4C%u9C81%u6728%u9F50%u5E02; ASPSESSIONIDQQBCTQQD=LBNKGOHCFLFJACMOHGGPNDLP; QQ_IPAddress=%u65B0%u7586%2C%u4E4C%u9C81%u6728%u9F50%u5E02; %B8%FC%D0%C2=login%5Fmode=&iscookies=&login%5Fusername=&login%5Fid=&login%5Fpassword=&cookies%5Ftrue=yes HTTP/1.1 200 OK
Cache-Control: private
Date: Thu, 09 Apr 2009 05:23:36 GMT
Content-Length: 2147
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Set-Cookie: %B8%FC%D0%C2=cookies%5Ftrue=yes&login%5Fpassword=&login%5Fid=&login%5Fusername=&iscookies=&login%5Fmode=; expires=Thu, 09-Apr-2009 05:53:36 GMT; path=/
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>57综合信息网 新疆生活网 - 上传文件</TITLE>
<style type="text/css">
/* Css */
</style>
<SCRIPT language=javascript>
if (top.location==self.location) { top.location="./"; }
function upload_submit()
{
var strFileName=document.frm_upload.FileName.value;
if (strFileName=="")
{
alert("请选择要上传的文件");
document.frm_upload.FileName.focus();
return false;
}
}
function SaveFilesUrl(sModuleIDs,type,arr,objname,objname2)
{
if(objname!='')
{
var obj = parent.document.getElementById(objname);
var strT=arr.split('|');
if (sModuleIDs=='2'&ty
pe!=''){
var url='下载地址'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='5'&type!=''){
var url='图片名称'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='6'&type!=''){
var url='影片名称'+(obj.length+1)+'|'+strT;
obj.options=new Option(url,url);
}
else if (sModuleIDs=='4'||sModuleIDs=='9'||(sModuleIDs=='10'&type=='4'))
{
obj.value+=strT+'\n';
}
else
{
obj.value=strT;
}
if (objname2!='')
{
parent.document.getElementById(objname2).value+=strT;
}
}
}
function AddUploadFiles(objname,files,filesv){
if(objname!=''){
//alert("OK!");
var obj = parent.document.getElementById(objname);
obj.options=new Option(filesv,files);
}
}
</SCRIPT>
</HEAD>
<BODY topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0>
<TABLE border=0 cellspacing=2 cellpadding=0 WIDTH="100%" HEIGHT="100%">
<FORM name=frm_upload ACTION="Upload.asp?action=up&id=3&type=0&obj=pic&Tobj=TempUploadFiles" method=post ENCTYPE="multipart/form-data">
<INPUT type=hidden NAME="UploadCode30" VALUE="1638">
<TR><TD><INPUT type=file name=FileName VALUE="" size=30 class=txt> <INPUT type=submit name=submit VALUE="上传" class=btn></TD></TR>
</FORM>
</TABLE>
</BODY>
</HTML>
页:
[1]