日期:2014-05-17  浏览次数:20728 次

新手问:ewebeditor怎样插入图片?分分
我用ewebeditor插入图片的时候,显示出来是红叉叉的,用的是eWebEdit   or   ASP   3.7,要怎样修改才可以正常显示啊?
      后来我看了一些文章,在ewebeditor文件夹内修改那个upload.asp文件,把Function   RelativePath2RootPath(url)
Dim   sTempUrl
sTempUrl   =   url
If   Left(sTempUrl,   1)   =   "/ "   Then
RelativePath2RootPath   =     sTempUrl      
Exit   Function
End   If

Dim   sWebEditorPath
sWebEditorPath   =   Request.ServerVariables( "SCRIPT_NAME ")
sWebEditorPath   =   Left(sWebEditorPath,   InstrRev(sWebEditorPath,   "/ ")   -   1)
Do   While   Left(sTempUrl,   3)   =   "../ "
sTempUrl   =   Mid(sTempUrl,   4)
sWebEditorPath   =   Left(sWebEditorPath,   InstrRev(sWebEditorPath,   "/ ")   -   1)
Loop
RelativePath2RootPath   =   sWebEditorPath       &       "/ "       &       sTempUrl
End   Function


中的     RelativePath2RootPath   =   sWebEditorPath       &       "/ "       &       sTempUrl     改成     RelativePath2RootPath   =   Server.MapPath( "UploadFile ")       &       "\ "   也是显示不了,请大虾们教教路吧,送分,谢谢!

------解决方案--------------------
出现红叉叉的话你转到代码视图里面看下代码,看看路径有没有问题,如果路径正确,那到那个目录看看文件有没有上传上去,其实我想EWEBEDIT的源代码里的东西应该不大会错的吧。可能是你的目录没有开写权限,所以图片文件没能上传上去。
------解决方案--------------------
把ewebeditor放在本目录,不要放进多一个文件夹,我是这样解决了的,我也不明白为什么一定要这样,但这样就可以解决了,一定要给分我哦!一定可以解决的!