本帖最后由 guland 于 2010-1-15 00:01 编辑
凑合用吧, 哈哈#include <GUIConstantsEx.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 337, 175, 326, 333)
$oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 6, 6, 175, 70)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_time()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
func _time()
If FileExists(@TempDir&"\time.htm") Then
FileDelete(@TempDir&"\time.htm")
EndIf
FileWriteLine(@TempDir&"\time.htm","<html>"&@CRLF&"<head>")
FileWriteLine(@TempDir&"\time.htm","<head>")
FileWriteLine(@TempDir&"\time.htm",'<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />')
FileWriteLine(@TempDir&"\time.htm","<title></title>")
FileWriteLine(@TempDir&"\time.htm","</head>")
FileWriteLine(@TempDir&"\time.htm",'<body scroll="no">')
FileWriteLine(@TempDir&"\time.htm",'<iframe name="I1" marginwidth="0" marginheight="0" width="240" vspace="-180" hspace="-50" align="middle" height="240" scrolling="no" border="0" frameborder="0" src=http://open.baidu.com/static/time/beijingtime.html ></iframe>')
FileWriteLine(@TempDir&"\time.htm","</body>")
FileWriteLine(@TempDir&"\time.htm","</html>")
_IENavigate($oIE,@TempDir&"\time.htm")
EndFunc
|