以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  关于html  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=150678)

--  作者:ygg8310
--  发布时间:2020/6/4 16:10:00
--  关于html
如何引入一段html?
--  作者:有点蓝
--  发布时间:2020/6/4 16:18:00
--  
http://foxtable.com/bbs/dispbbs.asp?boardid=2&Id=150626

引入到哪里?

--  作者:ygg8310
--  发布时间:2020/6/4 20:44:00
--  
就是一段这样的代码
<html>
<body bgcolor="#d0d0d0">

</body>
</html>
我想学会引入
http事件这样设置但没效果不知道错在哪里
Dim fl As String = "d:\\web\\" & e.path
If filesys.FileExists(fl)
    Dim idx As Integer = fl.LastIndexOf(".")
    Dim ext As String  = fl.SubString(idx)
    Select Case ext
        Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm"
            e.WriteFile(fl)
    End Select
End If
e.WriteString("Hello World")

--  作者:有点蓝
--  发布时间:2020/6/4 21:27:00
--  
不要使用这种事件头了:http://www.foxtable.com/mobilehelp/topics/0276.htm

HttpServer.Prefixes.Add("http://*/")
HttpServer
.WebPath = "d:\\web"  \'指定静态文件存储位置
HttpServer
.Start()

httprequest事件
e.WriteString("<html><body bgcolor=""#d0d0d0"">Hello World</body></html>")

直接引入html参考这种用法:http://www.foxtable.com/mobilehelp/topics/0014.htm