[求助]关于图片显示问题???
主要代码如下:fileExt=lcase(getFileExtName(zp_rs("zp_url"))) '取得文件后缀;
<%
if fileExt ="jpg" or fileExt = "gif" or fileExt = "bmp" then
if zp_rs("zp_url")="" then
<img src="images/nopic.gif" border="0" width="105" height="80">
<%
else
%>
<img src="<%=zp_rs("zp_url")%>" border="0" width="105" height="80">
<%
end if
else
if fileExt = "swf" then
%> <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='105' height='84'>
<param name=movie value='<%=zp_rs("zp_url")%>'>
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<param name='wmode' value='transparent'>
<embed src='<%=zp_rs("zp_url")%>' width='105' height='84' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
</object>
<%
end if
end if
%>
getFileExtName函数是取得文件的后缀,比如gif..
但是现在是显示不出图片来,去掉这句判断if fileExt ="jpg" or fileExt = "gif" or fileExt = "bmp" then
就可以显示了,但是我打印了fileext显示的是gif.不知道是哪里出现问题了.大家帮忙看看!!