Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ò»¸öASPÌæ»»º¯ÊýimgÀïÃæ¶àÓàµÄ´úÂë

Ò»¸öASPÌæ»»º¯ÊýimgÀïÃæ¶àÓàµÄ´úÂë
 
<%
Response.Write(Server.HTMLEncode(FixImg("<img onclick=""if(this.width>screen.width-461) window.open('qq/20082181405371.jpg');"" alt="""" border=""0"" src=""qq/20082181405371.jpg"" />")))
%>
<%
'¹¦ÄÜ:½«IMG´úÂë¸ñʽ»¯Îª<img src="XXX" />¸ñʽ.
Function FixImg(sString)
Dim sReallyDo, regEx, iReallyDo
Dim oMatches, cMatch
Dim tStartTime, tEndTime
If IsNull(sString) Then
FixImg = ""
Exit Function
End If
sReallyDo = sString
On Error Resume Next
sReallyDo = Replace(sReallyDo, vbCr, " ")
sReallyDo = Replace(sReallyDo, vbLf, " ")
sReallyDo = Replace(sReallyDo, vbTab, " ")
sReallyDo = Replace(sReallyDo, "<img ", vbCrLf & "<img ", 1, -1, 1)
sReallyDo = Replace(sReallyDo, "/>", " />", 1, -1, 1)
sReallyDo = ReplaceAll(sReallyDo, "= ", "=", True)
sReallyDo = ReplaceAll(sReallyDo, "> ", ">", True)
sReallyDo = Replace(sReallyDo, "><", ">" & vbCrLf & "<")
sReallyDo = Trim(sReallyDo)
On Error GoTo 0
Set regEx = New RegExp
regEx.IgnoreCase = True
regEx.Global = True
'//È¥³ýonclick,onloadµÈ½Å±¾
regEx.Pattern = "\s[on].+?=([\""|\'])(.*?)\1"
sReallyDo = regEx.Replace(sReallyDo, "")
'//½«SRC²»´øÒýºÅµÄͼƬµØÖ·¼ÓÉÏÒýºÅ
regEx.Pattern = "<img.*?\ssrc=([^\""\'\s][^\""\'\s>]*).*?>"
sReallyDo = regEx.Replace(sReallyDo, "<img src=""$1"" />")
'//ÕýÔòÆ¥ÅäͼƬSRCµØÖ·
regEx.Pattern = "<img.*?\ssrc=([\""\'])([^\""\']+?)\1.*?>"
sReallyDo = regEx.Replace(sReallyDo, "<img src=""$2"" />")
FixImg = sReallyDo
End Function
%>
<%
'¹¦ÄÜ£º·µ»Ø×Ö·û´®£¬ÆäÖÐÖ¸¶¨ÊýÄ¿µÄij×Ó×Ö·û´® È«²¿ ±»Ì滻ΪÁíÒ»¸ö×Ó×Ö·û´®¡£
'À´Ô´£ºhttp://jorkin.reallydo.com/article.ASP?id=406
'ÐèÒªBintº¯Êý:http://jorkin.reallydo.com/article.ASP?id=395
Function ReplaceAll(sExpression, sFind, sReplaceWith, bAll)
If IsNull(sExpression) Then ReplaceAll = "" : Exit Function
If (StrComp(bAll, "True", 1) = 0) Or (CBool(Bint(


Ïà¹ØÎĵµ£º

asp Éú³É GUIDÖµ

GUID¸ÅÊö
Globally Unique Identifier£¨È«ÇòΨһ±êʶ·û£© Ò²³Æ×÷ UUID(Universally Unique
IDentifier)
GUID/UUIDÊÇͨ¹ýÌض¨Ëã·¨²úÉúµÄÒ»¸ö¶þ½øÖƳ¤¶ÈΪ128λµÄÊý×Ö¡£
ÔÚ¿Õ¼äÉϺÍʱ¼äÉϾßÓÐΨһÐÔ£¬±£Ö¤Í¬Ò»Ê±¼ä²»Í¬µØ·½²úÉúµÄÊý×Ö²»Í¬¡£
ÊÀ½çÉϵÄÈκÎÁ½Ì¨¼ÆËã»ú¶¼²»»áÉú³ÉÖظ´µÄ GUID Öµ¡£GUID Ö÷ÒªÓÃÓÚÔÚÓµÓжà¸ö½Ú ......

²¿ÊðASPÍøÕ¾Åöµ½µÄÎÊÌⱸÍü


ÔÚ ¼ÆËã»ú¹ÜÀí->InterNetÐÅÏ¢·þÎñ -> ĬÈÏÍøÕ¾ -> ÓÒ¼ü -> н¨ -> ÐéÄâĿ¼ £¨±ðÃû£ºÏ൱ÓÚÎļþ¼Ð£©-> Ñ¡ÔñÔ´ÎļþµÄ·¾¶£¬Ð½¨Íê³É
ÓÒ¼üµã»÷¸Õ¸Õн¨µÄÐéÄâĿ¼£º
ÐéÄâĿ¼£º¹´Ñ¡ ¶ÁÈ¡¡£Ö´ÐÐȨÏÞ£º´¿½Å±¾¡£ºóÀ´ÓÖÓöµ½ÁËÕâÑùµÄ´íÎó£º ÔÚ
Ó¦ÓóÌÐò¼¶±ðÖ®ÍâʹÓÃ×¢²áΪ allowDefinition='MachineToAppl ......

windows server 2008 ÈÃIIS7Ö§³ÖASP Access


1. ÈÃIIS7Ö§³ÖASP
Windows VistaÖÐIIS7ÊÇĬÈϲ»°²×°µÄ£¬ËùÒÔÔÚ°²×°ÍêWindows VistaÖ®ºóÈç¹ûÐèÒª°²×°IIS7µÄ»°£¬¾ÍÒª×Ô¼º¶¯ÊÖÁË¡£°²×°µÄ²½ÖèΪ£º¿ªÊ¼¡·¿ØÖÆÃæ°å¡·³ÌÐò¡·´ò¿ª»ò¹Ø±ÕWindows¹¦ÄÜ¡·InternetÐÅÏ¢·þ Îñ(ÒÔÇ°²Ù×÷ϵͳ°æ±¾ÀïÃæµÄ"Windows components” ÔÚVistaÀïÃæ½Ð×ö"Programs and Features")¡£IIS7°²×°Ê±Ð ......

Asp È«Ñ¡ ¶àÑ¡ÔñÏî JSÒýÓÃ

<script language="JavaScript">
function CheckAll(form) {
var x=form.elements;
for (var i=0;i<x.length;i++)
{
var e = x[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
</script>
--Ò³ÃæcheckboxÄÚ²¿
<input type='checkbox' value='"&rs("ID")&"' name ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ