| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2111 人关注过本帖
标题:[求助]上传图片代码
只看楼主 加入收藏
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
 问题点数:0 回复次数:11 
[求助]上传图片代码


我这个代码是一个图片页,我现增加了一个上传图片的功能,但发现当留言内容为空时上传图片按钮就点击失效,没法上传图片,初步发现是代码<%end sub%> 在作怪,当放置以下红色位置时,留言框和上传框都不可见了,但放到 蓝色代码位置时,留言为空时就失效,希望这里的高手能不能指点一二,谢了


<%
set rs=server.createobject("adodb.recordset")
sql="select * from photo where id="&request("id")
rs.open sql,conn,1,1
yearDate=trim(rs("yearDate"))
WeekDate=trim(rs("WeekDate"))
MonthDate=trim(rs("MonthDate"))

sql="update photo set allHits=allHits+1,yearHits=yearHits+1,WeekHits=WeekHits+1,MonthHits=Monthhits+1 where id=" & request("id")
conn.execute sql
if datediff("yyyy",yearDate,date)>=1 then
sql="update photo set yeardate=Now(),yearHits=1 where id=" &request("id")
conn.execute sql
end if

if datediff("Ww",WeekDate,date)>=1 then
sql="update photo set WeekDate=Now(),WeekHits=1 where id=" &request("id")
conn.execute sql
end if
if datediff("M",MonthDate,date)>=1 then
sql="update photo set MonthDate=Now(),MonthHits=1 where id=" &request("id")
conn.execute sql
end if

%>

<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<html>
<head>
<title>天电摄影俱乐部</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script>
var flag=false;
function DrawImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 700/700){
if(image.width>700){
ImgD.width=700;
ImgD.height=(image.height*700)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
}
else{
if(image.height>700){
ImgD.height=700;
ImgD.width=(image.width*700)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
}
}
}
</script>
<link href="css.css" rel="stylesheet" type="text/css">
<STYLE>
body
{background-image:url(../index2/bg-solid.gif); background-position:center }
.style2 {color: #666666}
</STYLE>
</head>

<body topmargin="0"><!--#include file="top1.asp"-->

<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="130" bgcolor="#2F557F"> </td>
<td width="652" height="30" bgcolor="#2F557F"> </td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="73" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px #CFD1CC solid;border-bottom:1px #CFD1CC solid;border-left:1px #CFD1CC solid;border-right:1px #CFD1CC solid;">
<tr>
<td height="28" align="center" valign="bottom"><font color="#0066CC"><%=rs("title")%></font></td>
</tr>
<tr>
<td height="25" align="center"><a href="showuser.asp?username=<%=rs("username")%>" target="_blank"><%=rs("username")%></a>&nbsp;发表于&nbsp;<%=rs("addtime")%>&nbsp;&nbsp;&nbsp;拍摄地点:<%=rs("address")%>&nbsp;&nbsp;&nbsp;使用相机:<%=rs("qc")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;拍摄闪光:<%=rs("sg")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人气:&nbsp;<%=rs("allhits")%>&nbsp;</td>
</tr>
<tr>
<td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#333333" height="1"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1082" align="center" valign="top"><br>
<%=rs("content")%><br>
<%if rs("pic")<>"" then%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3"></td>
<td width="12" align="right" height="3"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("pic")%>" target="_blank"><IMG src="<%=rs("pic")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10"></td>
</tr>
<tr>
<td><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%"></td>
<td width="90" height="11" align="right"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<%end if%>

<br><%if rs("pic2")<>"" then%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3"></td>
<td width="12" align="right" height="3"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>



搜索更多相关主题的帖子: 上传图片 代码 yearDate trim 
2006-01-02 21:45
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 

<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("pic2")%>" target="_blank"><IMG src="<%=rs("pic2")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10"></td>
</tr>
<tr>
<td><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%"></td>
<td width="90" height="11" align="right"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<%else%>
<%response.Write("")%>
<%end if%>
<br><%if rs("pic3")<>"" then%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3"></td>
<td width="12" align="right" height="3"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("pic3")%>" target="_blank"><IMG src="<%=rs("pic3")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10"></td>
</tr>
<tr>
<td><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%"></td>
<td width="90" height="11" align="right"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<%else%>
<%response.Write("")%>
<%end if%>
<br><%if rs("pic4")<>"" then%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3"></td>
<td width="12" align="right" height="3"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR> <TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("pic4")%>" target="_blank"><IMG src="<%=rs("pic4")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10"></td>
</tr>
<tr>
<td><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%"></td>
<td width="90" height="11" align="right"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<%else%>
<%response.Write("")%>
<%end if%>
<br><%if rs("pic5")<>"" then%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3"></td>
<td width="12" align="right" height="3"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("pic5")%>" target="_blank"><IMG src="<%=rs("pic5")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10"></td>
</tr>
<tr>
<td><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%"></td>
<td width="90" height="11" align="right"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<%else%>
<%response.Write("")%>
<%end if%>
<br>
<br>
<table width="600" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px #cccccc solid;border-left:1px #cccccc solid;border-right:1px #cccccc solid;border-top:1px #cccccc solid;" >
<tr>
<td height="25" bgcolor="#F2F2F2">&nbsp;<strong><font color="#FF6600">拍摄心得:</font></strong>
</td>
</tr>
<tr>
<td height="25">&nbsp;<%=rs("xd")%></td>
</tr>
</table><br>
<%
dim MaxPerPage
dim sql
dim rs
dim gstBookID
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
if not isempty(request("page")) then '这个page是后面的select里面的
currentPage=cint(request("page")) '这里一定要转换成int否则不行!!
else
currentPage=1
end if
set rs = server.CreateObject("adodb.recordset")
sql = "select * from say where sayid="&request.QueryString("id")&" order by id desc"
rs.open sql,conn,1,1
i=1

if rs.eof and rs.bof then
else
rs.pagesize=10
totalPut=rs.recordcount '记录总数
totalPage=rs.pagecount
MaxPerPage=rs.pagesize
if currentpage>totalPage then
currentpage=totalPage
end if
if currentPage=1 then
showContent
showpages
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark '移动到开始显示的记录位置
showContent
showpages
end if
end if
rs.close
end if
set rs=nothing
conn.close
set conn=nothing

sub showContent
dim i
dim k
k=(totalPut-MaxPerPage*(currentPage-1))+1
i=1
do while not (rs.eof or err)
k=k-1
%>

<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="19%" height="25" align="left">&nbsp;<strong><span class="style2">讨论者:</span><a href="showuser.asp?username=<%=rs("rename")%>" target="_blank"><%=rs("rename")%></a></strong></td>
<td width="40%" height="25" align="center" valign="middle"><div align="left"></div></td>


</tr>
</table></td>
</tr>
<tr>
<td height="50">&nbsp;<%=rs("content")%>
<%
<%
'==================================
'增加贴图显示开始weini2006.1.1
'==================================
%>
<TABLE cellSpacing=0 cellPadding=0 width=117
border=0 align="center" >
<TBODY>
<TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="3" align="left">
<p align="center"><img src="images/photo_top1.gif" width="6" height="3"></td>
<td width="100%" background="images/photo_top_bg.gif" height="3">
<p align="center"></td>
<td width="12" align="right" height="3">
<p align="center"><strong><img src="images/photo_top2.gif" width="12" height="3"></strong></td>
</tr>
</table></TD>
</TR>
<TR> <%if rs("img")<>"" then%>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=117
border=0>
<TBODY>
<TR>
<TD width="3" background="images/angle_03.gif"> </TD>
<TD width="101" align="center"> <a href="<%=rs("img")%>" target="_blank"><IMG src="<%=rs("img")%>" border=0 onload="javascript:DrawImage(this);" ></a>
</TD>
<TD width="9" valign="bottom" background="images/photo_left_bg.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10">
<p align="center"></td>
</tr>
<tr>
<td>
<p align="center"><img src="images/angle_04.gif" width="9" height="70"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="right" height="11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="11" align="left">
<p align="center"><img src="images/photo_bottom1.gif" width="12" height="11"></td>
<td height="11" background="images/photo_bottom_bg.gif" width="100%">
<p align="center"></td>
<td width="90" height="11" align="right">
<p align="center"><img src="images/angle_02.gif" width="90" height="11"></td>
</tr>
</table></TD>
</TR>
</TBODY>
<%else%>
<%response.Write("")%>
<%end if%>

<%
'==================================
'增加贴图显示结束weini2006.1.1
'==================================
%>
</td>
</tr>
</table>
<%
i=i+1
if i>=MaxPerPage then exit do '循环时如果到尾部则先退出,如果记录达到页最大显示数,也退出 >
rs.movenext
loop
end sub

sub showpages()
dim n
n=totalPage
%><br><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class=12h>
<form action="showphoto.asp?id=<%=request("id")%>" method="post">
<tr>
<td height="25" align="center" bgcolor="#FFFFFF" class="12">

<%
If currentPage <> 1 Then
Response.Write "<A HREF=showphoto.asp?id="&request("id")&"&sort="&request("sort")&"&page=1>第一页</A> "
Response.Write "<A HREF=showphoto.asp?id="&request("id")&"&sort="&request("sort")&"&Page=" & (currentPage-1) & ">上一页</A> "
End If
If currentPage <> rs.PageCount Then
Response.Write "<A HREF=showphoto.asp?id="&request("id")&"&sort="&request("sort")&"&Page=" & (currentPage+1) & ">下一页</A> "
Response.Write "<A HREF=showphoto.asp?id="&request("id")&"&sort="&request("sort")&"&Page=" & totalPage & ">最后一页</A> "
End If
%>
第&nbsp;<%=currentPage%>&nbsp;页,共&nbsp;<%=totalPage%>&nbsp;页
共&nbsp;<%=rs.recordcount%>&nbsp;&nbsp;条评语
<% response.write "转到:<select name='page' size=1 style='BACKGROUND-COLOR:#FFffff;font-family: verdana; font-size:7pt;'>"

for i=1 to n
response.write "<option value="& i
if currentpage=i then
response.write " selected"
end if
response.write ">"& i &"</option>"
next
response.write "</select>"
response.write "&nbsp;<input class=buttonface type='submit' value='GO' name='cndok' style='border: 1px #333333 solid; background-color: #ffffff; font-family:verdana; font-size: 7pt;'>"
%>
&nbsp;

</td>
</tr>
<tr>
</form >
</table>


<%end sub%>
<form name=myform action="savesay.asp" method="post">

<table width="600" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px #cccccc solid;border-left:1px #cccccc solid;border-right:1px #cccccc solid;border-top:1px #cccccc solid;" >
<tr>
<td height="25" bgcolor="#F2F2F2">&nbsp;<font color="#FF6633">我的感想:</font>

<% if session("username")="" then%>
<input type="hidden" name="rename" value="游客">
<%else%>
<input type="hidden" name="rename" value="<%=session("username")%>">
<%end if%>
<input type="hidden" name="sayid" value="<%=request("id")%>"></td>
</tr>

<tr>
<td height="25" bgcolor="#F2F2F2">
<p align="center">
<input name="img" type="text" id="img" size="38" maxlength="40">
&nbsp;&nbsp;
<input type="button" name="Submit252" value="上传图片" onClick="window.open('upload_flash.asp?formname=myform&editname=img&uppath=uploadimg&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">


<%end sub%>

</td>
</tr>
<tr>
<td height="78" align="center" style="border-bottom:1px #CFD1CC solid;border-top:1px #CFD1CC solid;"><textarea name="content" cols="50" rows="3" id="content"></textarea></td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F2F2F2"><input type="submit" name="Submit" value="确定"></td>
</tr>
</table>

</form>
</td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>因不清楚问题原因所在,把整个页面代码都送上,帖子有点长,希望高手耐心点看了
2006-01-02 21:47
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 

看的头晕,兄弟,以后写程序注意点缩进好不好!!

拷下了,慢慢个你找,得先把代码整齐!!

[此贴子已经被作者于2006-1-2 22:00:39编辑过]


专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-01-02 21:57
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 
谢谢兄弟关心,这里现谢了 应该是sub的问题,但不知怎样改?我给个全点的代码,兄弟帮看下
完整代码如下:
BjBZgFUz.rar (7.13 KB)

[此贴子已经被作者于2006-1-2 22:35:33编辑过]

2006-01-02 22:28
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 
VkE8Hajp.rar (11.66 KB) [求助]上传图片代码




稍微改了一点,运行后看可对!!

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-01-03 08:42
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 
谢谢兄弟,昨晚看到1点多阿?!谢谢!!!!!
运行后出现以下错误,一起帮我看看
讨论者:潍猊
ffff

Microsoft VBScript 运行时错误 '800a01c2'

错误的参数个数或无效的参数属性值: 'showpages'

\wwwroot\photos\showphoto.asp, line 198

2006-01-03 09:02
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 
早上好兄弟:

我把sub showpages(totalPage)中的参数去掉后,可以运行程序,但是上传图片的按钮失效了,点击还是无效???

2006-01-03 09:23
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 

那你把我给你加的那个参数去掉,就是在分页行数那的!!


专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-01-03 09:28
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 
他存在的问题是当新的图片上传后还没有留言时,我猜测页数循环语句判断有问题导致留言框不能提交留言,而上传图片框如果蓝色<%end sub%>放置其后,就会不显示上传图片框。
2006-01-03 09:32
潍猊
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-1-2
收藏
得分:0 
谢谢兄弟,我用了那个简化的,再把那个参数去掉就ok了,呵呵,真是感谢你啊,兄弟哪里人,有没有机会请你吃饭
2006-01-03 09:46
快速回复:[求助]上传图片代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020153 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved