国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

DOM瀏覽器(方便需要dom操作的朋友)

2024-08-26 00:15:43
字體:
來源:轉載
供稿:網友

Open a folder view, launch this application, click on init, it detects all instances. Just drill-down to see the properties of the objects recursively.
You can now update properties and invoke methods on running instances !

File Name : DOM_Explorer.hta
Requirement : IE 5.5 (not tested on IE5.1)
Author : Jean-Luc Antoine
Submitted : 31/10/2001
Updated : 19/11/2001
Category : HTA
Remember : The file extension has to be *.HTA

代碼如下:
<html>
<head>
<title>Dom Explorer</title>
<HTA:APPLICATION
 APPLICATIONNAME="Dom_Explorer"
 BORDER="thick" BORDERSTYLE="normal"
 CAPTION="yes" CONTEXTMENU="yes"
 ID="oHTA" alert(oHTA.applicationName);
 INNERBORDER="yes" MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes"
 NAVIGABLE="no" SCROLL="yes" SCROLLFLAT="no"
 SELECTION="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="no"
 SYSMENU="yes" VERSION="0.5" WINDOWSTATE="normal">
<script language=vbscript>
option explicit
dim shApp
set shApp=createobject("shell.application")

Function SP2(name,obj,RW,ObjPath) 'Properties
 Dim Chaine
 Chaine="<TR><TD>"
 If isobject(obj) Then
  If obj is Nothing Then
   If HideNull.Checked Then
    SP2=""
    exit function
   End If
   Chaine=Chaine & Name
  ElseIf VarType(obj)=0 Then
   Chaine=Chaine & Name
  Else
   Chaine=Chaine & "<a href=""#"" OnClick='vbscript:ShowProp " &_
   ObjPath & "." & name & ",""" & ObjPath & "." & name &_
   """' title='" & ObjPath & "." & name & "'>" & name & "</a>"
  End If
 Else
  Chaine=Chaine & Name
 End If
 Chaine=Chaine & "</TD><TD>" & typeName(obj) & "</TD><TD>" & RW & "</TD><TD>"

 Select Case VarType(Obj)
 Case 0 'Empty
  Chaine=Chaine & "<font color=red>Uninitialized</font>"
 Case 1 'Null 'If IsNull(Obj) Then
  If HideNull.Checked Then
   SP2=""
   exit function
  End If
  Chaine=Chaine & "<font color=red>No value</font>"
 Case 9 'Object
  Chaine=Chaine & "<font color=red>Can't display</font>"
 Case Else
  If RW="Read/Write" Then
   Chaine=Chaine & "<span ID=""" & name & """ contenteditable=true><b>" &_
     Replace(obj,"<","<") & "</b></span> <a href='#' onclick='vbscript:" &_
      ObjPath & "." & name & "="
   Select Case VarType(Obj)
   'Case 2 'vbInteger - CInt()
   'Case 3 'vbLong - CLng()

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 上杭县| 资溪县| 青浦区| 济宁市| 高台县| 葵青区| 会同县| 仁寿县| 巢湖市| 阜宁县| 安吉县| 芜湖县| 靖宇县| 安远县| 隆林| 定日县| 井冈山市| 包头市| 增城市| 固安县| 白沙| 泗洪县| 南溪县| 巴中市| 乳源| 永清县| 西乌珠穆沁旗| 武冈市| 习水县| 新龙县| 京山县| 开平市| 平度市| 西盟| 民权县| 讷河市| 德钦县| 浙江省| 平阴县| 寻乌县| 孟州市|