asp»ñȡһ¸öÎļþ¼Ð¼°Æä×ÓÎļþ¼ÐϵÄËùÓÐͼƬµØÖ·
ÔÎÄÁ´½Ó:http://www.iwapr.cn/article/daima/30.html
ASP/Visual Basic´úÂë
<%
dim picurl,all_picurl
'½ÔÊÇÈ«¾Ö±äÁ¿:·Ö±ð¶¨ÒåͼƬµÄÁ´½ÓµØÖ·;ËùÓÐÖ¸¶¨Îļþ¼Ð(°üÀ¨Ö¸¶¨Îļþ¼ÐµÄ×ÓÎļþ¼ÐÏÂͼƬurlµØÖ·)
picurl="" 'ÉèÖÃͼƬÁ´½ÓµØÖ·Ä¬ÈÏֵΪ¿Õ,ΪÏÂÃæµÄcheckfolders()º¯ÊýÖ´ÐÐpicurl=picurl&"..."×ö×¼±¸.
Function checkRegExp(strPattern,str) 'ÕýÔòÆ¥ÅäËã·¨,strPattern´ú±íÕýÔò±í´ïʽ,str´ú±íÐèÒª²éѯƥÅäµÄ×Ö·û´®
Dim Exp
if str="" or isnull(str) then '¼ì²âÄãÒª²éѯµÄ×Ö·û´®ÊÇ·ñΪ¿Õ,Èç¹ûΪ¿Õ¾Í·µ»Øfalse
checkRegExp=false
end if
Set objExp=New regExp
objExp.pattern=strPattern 'Ö¸¶¨Æ¥ÅäÄ£°å
objExp.ignoreCase=false 'ÊÇ·ñºöÂÔ´óСд,ÕâÀï²»ºöÂÔ,ÄãÒ²¿ÉÒÔÉèÖúöÂÔ
objExp.Global=True 'Ö¸¶¨ÊÇ·ñÈ«¾ÖÆ¥Åä,ÕâÀïÉèÖÃΪȫ¾ÖÆ¥Åä
checkRegExp=objExp.Test(str) '·µ»Ø²éѯ½á¹û,Ò²¿ÉÒÔÕâÑùд return objExp.Test(str)
End function
Ïà¹ØÎĵµ£º
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<!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>
<meta http-equi ......
Ò»¡¢ÕâÑùÅäÖõĺô¦£¿
²»Öª´ó¼ÒÓÐûÓÐÌý¹ýÅÔ×¢£¿ÎÒ¼òµ¥µÄ½âÊÍһϰɣºÓиöÈËÏëºÚµôAÕ¾µã£¬µ«ÕÒÀ´ÕÒÈ¥¶¼Ã»·¢ÏÖ¿ÉÀûÓõÄ©¶´£¬ÎÞÒâÖÐËû·¢ÏÖÓëAͬ·þÎñÆ÷ÉÏ»¹ÓиöBÕ¾µã£¬²¢ÇÒÔÚBÕ¾µãÉÏÕÒµ½ÁË¿ÉÀûÓõÄ©¶´£¬ÓÚÊÇËû½«Ä¾Âí´ÓBÕ¾ÖÐÉÏ´«ÖÁ·þÎñÆ÷£¬Èç¹û·þÎñÆ÷ȨÏÞÅäÖò»µ±£¬ÄÇôÏÖÔÚËû¾Í¿ÉÒÔºÚµô·þÎñÆ÷ÉϵÄËùÓÐÕ¾µãÁË£¡Èç¹ûÎÒÃÇΪà ......
txtÎļþÊÇÏÂÃæÕâÑùµÄ£¬
Ò»ÐÐÒ»ÌõÊý¾Ý£¬ÓöººÅ·Ö¸ô
ÏÂÃæÐ´³öaspÎļþ
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="inc/conn.asp" -->
<%
filespec=server.mappath("txt.txt")
Const ForRead ......
<%
Const New_img=10
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & New_img & " * from 0791idc_Product order by ID"
rs_Product.open sqltext,conn,1,1
if not rs_Product.EOF then%>
<div align='center' id='demo' style='o ......
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from 0791idc_News where BigClassName='¼Ò×°¿ÎÌÃ' order by ID desc"
rs.Open sql,Conn,1,1
if rs.eof and rs.bof then
response.Write("ÔÝʱûÓмǼ")
else
%>
......