16,554
社区成员
发帖
与我相关
我的任务
分享
Dim li As HtmlElement = browser.Document.CreateElement("LI")
li.Id = "li" & mID.ToString
li.SetAttribute("classname", "li1")
Dim inSpanBtnDel As HtmlElement = browser.Document.CreateElement("SPAN")
With inSpanBtnDel
.Id = li.Id & "_spanBtnDel"
.InnerText = "删除"
.SetAttribute("classname", "span_btn_normal")
.SetAttribute("onmouseover", "function(){this.className='span_btn_over';}")
.SetAttribute("onmouseout", "function(){this.className='span_btn_normal';}")
.SetAttribute("onclick", "javascript:window.external.ReceiveMessage(this.id,'onclick')")
End With
li.AppendChild(inSpanBtnDel)