首页 >web前端 >html教程 >html中关于object标签的classid收集分享

html中关于object标签的classid收集分享

黄舟
黄舟原创
2017-06-30 11:32:392251浏览

 今天用到了wbbrowser控件做页面打印,感觉非常强大。索性收集了html object标签的一些知识,整理于此供需要时查阅。

   首先将这个强大web页面打印例子(pintTest.html)贴上来。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
</HEAD>
<BODY>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT ></OBJECT>
<a class="NOPRINT" href="#" style="cursor:hand" title="打印" onclick="document.all.WebBrowser.ExecWB(6,6);">打印表一</a>
<br><br>
<table BORDER="1">
<tr><td>1</td></tr>
<tr><td>我将被打印啦!</td></tr>
</table>
<br>
<table class="NOPRINT" BORDER="1">
<tr><td>2</td></tr>
<tr><td>因为我的class=‘NOPRINT’所以我将不被打印</td></tr>
</table>
</BODY>
</HTML>

 接下来我将收集到的html object控件标签罗列在此,具体应用的例子后续有时间补上。

--------------------------------------WebBrowser控件 ---------------------------------------------

<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT></OBJECT>
<input type=button value=打开 onclick=document.all.WebBrowser.ExecWB(1,1)>
<input type=button value=另存为 onclick=document.all.WebBrowser.ExecWB(4,1)>
<input type=button value=全选 onclick=document.all.WebBrowser.ExecWB(17,1)>
<input type=button value=属性 onclick=document.all.WebBrowser.ExecWB(10,1)>
<input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
<OBJECT id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT><PARAM name="Command" value="Minimize"></OBJECT>
<input type=button value="Min" onclick="min.Click()">
<OBJECT id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT><PARAM name="Command" value="Maximize"></OBJECT>
<input type=button value="Max/Restore" onclick="max.Click()" id=button1 name=button1>

-------------------------------------------realplayer的-------------------------------------------

<OBJECT id=RVOCX1 height=240 width=320
classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA name=player1>
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350">
<PARAM NAME="AUTOSTART" VALUE="-1">
<PARAM NAME="SHUFFLE" VALUE="0">
<PARAM NAME="PREFETCH" VALUE="0">
<PARAM NAME="NOLABELS" VALUE="0">
<PARAM NAME="SRC" VALUE="rtsp://11.20.49.27/7/film/fallinnewyorkB.rm">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="CONSOLE" VALUE="Clip1">
<PARAM NAME="LOOP" VALUE="0">
<PARAM NAME="NUMLOOP" VALUE="0">
<PARAM NAME="CENTER" VALUE="0">
<PARAM NAME="MAINTAINASPECT" VALUE="0">
<PARAM NAME="BACKGROUNDCOLOR" VALUE="#ffffff">
</OBJECT>
<BR> <OBJECT id=RVOCX1 height=20 width=320
classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA name=control>
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="529">
<PARAM NAME="AUTOSTART" VALUE="-1">
<PARAM NAME="SHUFFLE" VALUE="0">
<PARAM NAME="PREFETCH" VALUE="0">
<PARAM NAME="NOLABELS" VALUE="0">
<PARAM NAME="SRC" VALUE="rtsp://11.20.49.27/7/film/fallinnewyorkB.rm">
<PARAM NAME="CONTROLS" VALUE="ControlPanel">
<PARAM NAME="CONSOLE" VALUE="Clip1">
<PARAM NAME="LOOP" VALUE="0">
<PARAM NAME="NUMLOOP" VALUE="0">
<PARAM NAME="CENTER" VALUE="0">
<PARAM NAME="MAINTAINASPECT" VALUE="0">
<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">
</OBJECT>

-------------------------------------------找到一个了时间的---------------------------------------

找到一个了时间的,绝对经典,没有重复吧!

<OBJECT classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" name=fccrq width=145 height=22
updown="0">
<param name="CalendarTrailingForeColor" value="11184810">
<param name="CalendarTitleForeColor" value="15658734">
<param name="CalendarTitleBackColor" value="11141120">
<param name="CalendarForeColor" value="0">
<param name="CalendarBackColor" value="16777215">
<param name="format" value="0">
<param name="CurrentDate" value="<%=DateDiff("d","1899/12/31","2002/11/11")+1%>">
</object>

------------------------------------- flash插件---------------------------------------------------

<object classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D" id="mschart1" style="HEIGHT: 326px; WIDTH: 651px" CODEBASE="mschart.cab">
</object>
flash插件
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>

--------------------------------最小化 --- 最大化---- 强制关闭------------------------------------

最小化

<object id=min classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize"></object>

最大化

<object id=max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"></object>

强制关闭

<OBJECT id=cle classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close"></OBJECT>

------------------------------------ 有光驱的可以试试---------------------------------------------

<object id=oWMP classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"></object>
<SCRIPT language=VBScript>
<!--
&#39;Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next &#39; cdrom
End If
-->
</SCRIPT>

----------------------------------------- 这是realplay播放器的代码--------------------------------

<object classid=clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa height=244 id=RP2 style="left: 0px; top: 0px; " width=392>
<param name="AUTOSTART" value="-1">
<param name="SRC" value="rtsp://vmovie/sd.RM">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
</object>

-----------------------------------关闭窗口无提示 ------------------------------------------------

//IE6+SP1以下有效
<OBJECT id=closeit classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close"></OBJECT>
<a href="javascript:closeit.Click()">点这里关闭窗口</a>
//IE5.5以上有效
<input type=button value=关闭 onclick="window.opener=&#39;null&#39;;window.close()">
//IE5.5以上有效
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)>

------------------------------- ms页面小精灵,可以说英语滴----------------------------------------

<OBJECT classid="clsid:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F" id="Agent" CODEBASE="#VERSION=2,0,0,0" VIEWASTEXT>
</OBJECT>
<OBJECT classid="clsid:B8F2846E-CE36-11D0-AC83-00C04FD97575" id="TruVoice" CODEBASE="#VERSION=6,0,0,0" VIEWASTEXT>
</OBJECT>

--------------------------注册表里多的是是不一定都好玩---------------------------------------

<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 
codebase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 ID=index WIDTH=468 HEIGHT=60> 
<PARAM NAME=movie VALUE=/adv/soft/Sina_468X60_Banner.swf> 
<PARAM NAME=quality VALUE=high></OBJECT>
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<param NAME="LPKPath" VALUE="mschart.lpk">
</object>
<object classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D"
id=mschart1 style="HEIGHT: 326px; WIDTH: 651px" codebase="mschart.cab">
</object>

以上是html中关于object标签的classid收集分享的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn