主题:替换整个网页(文档)的HTML代码 作者:白々哉 时间:2011-07-20 14:18 |
; ******************************************************* ; 示例 1 - Create an empty browser, write customer HTML to it - in this case a ; FRAMESET - and then update the contents of each of the frames ; ******************************************************* ; #include <IE.au3> $oIE = _IECreate () $sHTML = "" $sHTML &= "<HTML>" & @CR $sHTML &= "<HEAD>" & @CR $sHTML &= "<TITLE>_IE_示例('frameset')</TITLE>" & @CR $sHTML &= "</HEAD>" & @CR $sHTML &= "<FRAMESET rows='25,200'>" & @CR $sHTML &= " <FRAME NAME=Top SRC=about:blank>" & @CR $sHTML &= " <FRAMESET cols='100,500'>" & @CR $sHTML &= " <FRAME NAME=Menu SRC=about:blank>" & @CR $sHTML &= " <FRAME NAME=Main SRC=about:blank>" & @CR $sHTML &= " </FRAMESET>" & @CR $sHTML &= "</FRAMESET>" & @CR $sHTML &= "</HTML>" _IEDocWriteHTML ($oIE, $sHTML) _IEAction ($oIE, "refresh") Local $oFrameTop = _IEFrameGetObjByName ($oIE, "Top") Local $oFrameMenu = _IEFrameGetObjByName ($oIE, "Menu") Local $oFrameMain = _IEFrameGetObjByName ($oIE, "Main") _IEBodyWriteHTML ($oFrameTop, '$oFrameTop = _IEFrameGetObjByName($oIE, "Top")') _IEBodyWriteHTML ($oFrameMenu, '$oFrameMenu = _IEFrameGetObjByName($oIE, "Menu")') _IEBodyWriteHTML ($oFrameMain, '$oFrameMain = _IEFrameGetObjByName($oIE, "Main")') |
1楼:qq1034686579(2011-07-20 14:21) |
沙发耶丶 我都要了丶 我不想解释!! |
2楼:〆______安静(2011-07-21 08:13) |
不会用耶。。。。。 |
3楼:不死鸟之魂(2011-07-21 08:21) |
谢谢LZ分享 |