Microsoft Slider Control, version 6.0 当前值: 最大值: <!-- function init(){ currentValue.value=0; Slider.max=50000000; maxValue.value=Slider.max; } function setValue(){ Slider.value=currentValue.value; } function setMax(){ Slider.max=maxValue.value; } //--> <!-- currentValue.value=Slider.value; //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 泣红亭:因这控件有危害性(我也中招了。。)。。就不让它能立即运行了。。maya不厚道啊。。。7.Microsoft TreeView Control, version 6.0 Microsoft TreeView Control, version 6.0 当前节点: <!-- function init(){ TreeView.LineStyle = 1; TreeView.Style = 7; } //--> <!-- if (TreeView.Nodes.Count > 0){ index = TreeView.SelectedItem.index; caption.value = TreeView.SelectedItem.Text; } //--> <!-- Dim index Dim strNodeText Dim strCaption Sub addItem() On Error Resume Next strNodeText = strNode.value strCaption = caption.value If Len(strNodeText)=0 Then Exit Sub If Len(caption.value)>0 Then TreeView.Nodes.Add index, 4, , strNodeText Else TreeView.Nodes.Add , 0, ,strNodeText End If End Sub Sub delItem() On Error Resume Next If Len(strCaption)>0 Then TreeView.Nodes.Remove index End if End Sub //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 8.ScriptControl Object ScriptControl Object Const Name = "Anbert" Sub Test() Dim strTest strTest = Replace("你好,世界!" & vbCrlf & "我是$name。", "$name", Name) MsgBox strTest,64,"Just Test it" End Sub <!-- function runCode(){ SC.Language = "VBScript"; SC.AllowUI = true; SC.AddCode (Content.value); SC.Run ("Test"); } //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 9.System Monitor Control System Monitor Control [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 10.Microsoft SysInfo Control, version 6.0 Microsoft SysInfo Control, version 6.0 <!-- function init(){ var ACStatus = SysInfo.ACStatus; var BatteryFullTime = SysInfo.BatteryFullTime; var BatteryLifePercent = SysInfo.BatteryLifePercent; var BatteryLifeTime = SysInfo.BatteryLifeTime; var BatteryStatus = SysInfo.BatteryStatus; var OSBuild = SysInfo.OSBuild; var OSPlatform = SysInfo.OSPlatform; var OSVersion = SysInfo.OSVersion; var strRes; strRes = "你的电脑当前使用"; if(ACStatus==1){ strRes += "直流电源,"; }else{ strRes += "电池,"; strRes += "电池续航时间:$mm分钟, ".replace("$mm",BatteryFullTime/60); strRes += "电池剩余使用时间:$mm分钟, ".replace("$mm",BatteryLifeTime/60); } strRes += " "+"操作系统为 " if (OSPlatform==1) { strRes += "windows95/98/ME,"; }else if(OSPlatform==2){ strRes += "windowsNT/2000/xp/2003,"; } strRes += "版本号为 "+OSBuild+"."+OSVersion; document.write(strRes); } //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 11.ProgView Class ProgView Class waiting........ <!-- tip.innerText=""; //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]