首頁 >web前端 >html教學 >html中關於object標籤的classid收集分享

html中關於object標籤的classid收集分享

黄舟
黄舟原創
2017-06-30 11:32:392257瀏覽

 今天用到了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
上一篇:html中標籤的重要屬性詳解下一篇:html中標籤的重要屬性詳解