오늘은 페이지 인쇄에 wbbrowser 컨트롤을 사용했는데 매우 강력한 느낌을 받았습니다. 나는 단순히 html 객체 태그에 대한 지식을 수집하고 필요할 때 참조할 수 있도록 여기에 컴파일했습니다.
먼저 이 강력한 웹페이지 인쇄 예제(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 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>
--------- -- ------리얼 플레이어--------------- --- -----------------------------
<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>
---------------------------- 플래시 플러그인------ -- ------------------------------------------------ --
<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>
------ ------------------ CD-ROM 드라이브가 있으면 시도해 볼 수 있습니다. 그거------------ ------
<object id=oWMP classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"></object> <SCRIPT language=VBScript> <!-- '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 ' cdrom End If --> </SCRIPT>
- -------------- ---------------- 실제 플레이용 코드입니다. 플레이어------------
<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='null';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 중국어 웹사이트의 기타 관련 기사를 참조하세요!