<TD width=250  Align="center">
    <applet name = "OnlineTime" width="65" height="15"  code="testlink.class" >
    <param name=language_type    value= "chinese">
    <param name=ServerIp            value="218.3.23.3">
     </applet>          
          </TD>
如上我想把ServerIp的参数也就是value="218.3.23.3" 改成"192.168.18.2" 怎么做呀?
thanks!

解决方案 »

  1.   

    用webbrowser的document取得此OnlineTime对象,再对此对象输入相应的值

    for i=0 to wb.document.all.length
        if wb.document.all(i).name="OnlineTime" then
            set wb.docment.all(i).params("ServerIp")="192.168.18.2"  '这句不知道对不对,要看系统的对象类型
        end if
    next
      

  2.   

    If WebBrowser1.Document.All(i).Name = "OnlineTime" Then 这行出错-对象不支持该属性或方法,还有别的办法吗?
      

  3.   

    那就试一下取WebBrowser1.Document.All(i).tagName= "applet"