第一次使用fckeditor 这东西,不知道它的图片上传时路径能不能改为绝对路径啊?
教教我吧。
先谢谢大家了。  ^_^

解决方案 »

  1.   

    ''================================================
    '' 函数名:ChkMapPath
    '' 作  用:相对路径转换为绝对路径
    '' 参  数:strPath ----原路径
    '' 返回值:绝对路径
    ''================================================
    Function ChkMapPath(ByVal strPath)
     Dim fullPath
     strPath = Replace(Replace(Trim(strPath), "/", "\"), "\\", "\") If strPath = "" Then strPath = "."
     If InStr(strPath,":\") = 0 Then
      fullPath = Server.MapPath(strPath)
     Else
      strPath = Replace(strPath,"..\","")
      fullPath = Trim(strPath)
      If Right(fullPath, 1) = "\" Then
       fullPath = Left(fullPath, Len(fullPath) - 1)
      End If
     End If
     ChkMapPath = fullPath
    End Function 
      

  2.   

    fckeditor在webconfig中配置的时候要用相对路径
    不能用绝对路径
    不知道lz为什么非要绝对路径?