网站开发代码

ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术

恢复&字符


function ClearHTML(ByVal reString)    
    Dim Str:Str=reString    
    If Not IsNull(Str) Then   
        Str = Replace(Str, "&", "&")    
        ClearHTML = Str     ...

反转换HTML代码


Function HTMLDecode(ByVal reString)     
    Dim Str:Str=reString    
    If Not IsNull(Str) Then   
        Str = Replace(Str, ">", ">")    
        Str = Replace(Str, &...

转换HTML代码


Function HTMLEncode(ByVal reString)     
    Dim Str:Str=reString    
    If Not IsNull(Str) Then   
        Str = Replace(Str, ">", ">")    
        Str = Replace(Str, &...

过滤特殊字符


Function CheckStr(byVal ChkStr)     
    Dim Str:Str=ChkStr    
    If IsNull(Str) Then   
        CheckStr = ""   
        Exit Function     
    End If   
    Str = Replace(Str, &quo...

过滤文件名字


Function FixName(UpFileExt)    
    If IsEmpty(UpFileExt) Then Exit Function   
    FixName = Ucase(UpFileExt)    
    FixName = Replace(FixName,Chr(0),"")    
    FixName = Replace(FixN...

过滤超链接


Function checkURL(ByVal ChkStr)    
    Dim str:str=ChkStr    
    str=Trim(str)    
    If IsNull(str) Then   
        checkURL = ""   
        Exit Function     
    End If   
    D...

加亮关键字


Function highlight(byVal strContent,byRef arrayWords)    
    Dim intCounter,strTemp,intPos,intTagLength,intKeyWordLength,bUpdate    
    if len(arrayWords)<1 then highlight=strContent:exit funct...

检测是否只包含英文和数字


Function IsValidChars(str)    
    Dim re,chkstr    
    Set re=new RegExp    
    re.IgnoreCase =true    
    re.Global=True   
    re.Pattern="[^_\.a-zA-Z\d]"   
    IsValidChars=Tru...

限制上传文件类型


Function IsvalidFile(File_Type)    
    IsvalidFile = False   
    Dim GName    
    For Each GName in UP_FileType    
        If File_Type = GName Then   
            IsvalidFile = True   
    ...

ASP转换时间为GMT格式时间函数


Function DateTimeToGMT(sDate)
   Dim dWeek,dMonth
   Dim strZero,strZone
   strZero="00"
   strZone="+0800"
   dWeek=Array("Sun","Mon","Tue",&quo...
分页: « 8 9 10 11 12 13 14 15 16 17 18 ... 53 »

网站目录

友情链接

:: Copyright 2004-2006 PhpBlog.Cn. All Rights Reserved ::