aardio利用web.blink的事件回调实现只显示网页部分内容
生活随笔
收集整理的這篇文章主要介紹了
aardio利用web.blink的事件回调实现只显示网页部分内容
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
實現效果和sunny中間件實現效果一致。代碼如下:
//瀏覽器事件回調 import win.ui; /*DSG{{*/ var winform = win.form(text="瀏覽器事件回調";right=848;bottom=585;maximize=1) winform.add( custom={cls="custom";text="custom";left=26;top=16;right=823;bottom=565;db=1;dl=1;dr=1;dt=1;z=1} ) /*}}*/import console; import web.blink.form; var mb = web.blink.form(winform.custom); var data=/***<html><head><title>光慶·程序·在線</title><link rel="shortcut icon" href="/favicon.ico"><link rel="bookmark" href="/favicon.ico"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta content="all" name="Robots"><meta content="MSHTML 6.00.3790.2706" name="GENERATOR"><link href="images/Style.css" type="text/css" rel="stylesheet"></head><body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0"> <table class="toptable" height="27" cellspacing="0" cellpadding="0" width="100%" align="center" border="0"><tbody><tr><td height="100"><img src="images/banner.gif"></td></tr></tbody></table> <style type="text/css">table.change:hover{background-color:#eeeeee}</style><script type="text/javascript">function rowClick (fileurl) {window.open(fileurl);}</script><table width="100%" align="center"><tbody><tr><td style="WIDTH: 200px; HEIGHT: 21px; TEXT-ALIGN: center" align="left" valign="top"><table height="100%" width="200px"><tbody><tr height="36px"><td bgcolor="#3399ff" style="FONT-SIZE: 14px;FONT-WEIGHT: bold; COLOR: white; HEIGHT: 25px; TEXT-ALIGN: center; TEXT-DECORATION: none">首頁 》 網站公告</td></tr><tr><td class="table" style="FONT-SIZE: 14px;padding:10;" width="200px" valign="top" height="100%">1、本站主要用來發布本人[光慶]原創的軟件作品。<br>2、同時,搜集了一些比較好用的軟件。特別是一些綠化的、無廣告的軟件,值得珍藏。<br>3、用來推薦一些比較好的軟件下載站。<br>4、承接軟件定做業務。<p>業務QQ:17950677<br>微信號:godking888</p></td></tr></tbody></table></td><td style="WIDTH:100%; HEIGHT: 21px" align="center" valign="top"><table style="WIDTH: 100%; HEIGHT: 182px"><tbody><form id="form1" name="form1" method="post" action="index.asp"></form><tr height="36px"><td colspan="3" valign="middle" bgcolor="#3399ff" style="FONT-SIZE: 14px;FONT-WEIGHT: bold; COLOR: white; TEXT-DECORATION: none"> 文件類型:<select name="ClassID" id="ClassID" style="FONT-SIZE: 14px;"><option value="0">全部類型</option><option value="11">aardio資源</option><option value="4">裝機工具</option><option value="5">應用軟件</option><option value="10">精品網站</option><option value="1">其它資料</option><option value="12">精彩文章</option></select> 操作系統:<select name="System" id="System" style="FONT-SIZE: 14px;"><option value="">全部系統</option><option value="Win 32位">Win 32位</option><option value="Win 64位">Win 64位</option><option value="安卓系統">安卓系統</option><option value="網址">網址</option><option value="其他">其他</option></select> 關鍵字:<input name="keyword" type="text" id="keyword" size="20" value=""> <input type="submit" name="Submit" value="搜索"></td></tr><tr><td class="table" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3" style="border-collapse: collapse;"><tbody><tr height="150"><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #f55901; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: red; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">置頂</font><font style="font-size:18px; font-family: Microsoft YaHei;">aardio資源下載</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #f55901;"><img onclick="rowClick('https://wws.lanzoui.com/b026gmeta')" src="images/view_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202110041531443238.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">aardio資源 / Win 32位 / 0 Byte<br>本人編寫的aardio庫等資源文件下載。使用方法可以參考本人CSDN博客,一般都有相關文章。<font color="red">瀏覽密碼:123</font><br></p></td></tr></tbody></table></td><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #f55901; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: red; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">置頂</font><font style="font-size:18px; font-family: Microsoft YaHei;">CSDN光慶的學習筆記</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #f55901;"><img onclick="rowClick('https://blog.csdn.net/sdlgq')" src="images/view_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202108101503325112.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">精品網站 / 網址 / 0 Byte<br>CSDN光慶的學習筆記,用來記錄站長學習中積累的知識點。<br></p></td></tr></tbody></table></td><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #1e90ff; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: #f55901; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">原創</font><font style="font-size:18px; font-family: Microsoft YaHei;">考勤管理系統(單機版)</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #1e90ff;"><img onclick="rowClick('https://wwr.lanzoui.com/iLQ2Hsmlebg')" src="images/download_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202108141700586833.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">應用軟件 / Win 32位 / 943 KB<br>考勤管理系統,登記員工每日考勤,含早班、白班、晚班、加班,自動生成每日考勤表,可統計每班簽到人數、查看每個員工的考勤情況,實時查看欠班天數。默認登錄授權密碼:123。<br>密碼:6kok<br></p></td></tr></tbody></table></td></tr><tr height="150"><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #1e90ff; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: #f55901; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">原創</font><font style="font-size:18px; font-family: Microsoft YaHei;">中文打字練習</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #1e90ff;"><img onclick="rowClick('https://wwr.lanzoui.com/io8qpsmksdg')" src="images/download_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202108141648393895.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">應用軟件 / Win 32位 / 420 KB<br>中文練習工具,練習中文輸入速度,提升中文輸入能力。非常適合漢字錄入人員練習使用。<br>密碼:dw7u<br></p></td></tr></tbody></table></td><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #1e90ff; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: #f55901; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">原創</font><font style="font-size:18px; font-family: Microsoft YaHei;">小鍵盤練習</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #1e90ff;"><img onclick="rowClick('https://wwr.lanzoui.com/iDK54smk9dc')" src="images/download_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202108141636041668.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">應用軟件 / Win 32位 / 465.5 KB<br>小鍵盤練習工具,練習小鍵盤輸入速度,提升數字輸入能力。非常適合柜臺收銀員練習使用。<br>密碼:3xok<br></p></td></tr></tbody></table></td><td width="33%" height="80px"><table class="change" cellspacing="0" cellpadding="0" style="border:0px solid #1e90ff; border-collapse: collapse;background: #eeeeee;" width="100%" height="100%"><tbody><tr style="border-bottom: 0px solid #dddddd;"><td colspan="2" style="padding: 0 0 0 10; height:30px; font-size:18px; vertical-align: middle; background: #eeeeee;"><font style="background: #f55901; font-size:14px; color: white; padding: 3 5; border-radius: 3px;">原創</font><font style="font-size:18px; font-family: Microsoft YaHei;">算鈔練習</font></td><td style="cursor:pointer; height: 30px; width: 80px; vertical-align: middle; background: #1e90ff;"><img onclick="rowClick('https://wwr.lanzoui.com/iow6dsmjxwj')" src="images/download_btn.gif"> </td></tr><tr><td style="vertical-align: top; padding: 10px; width: 80px; "><div style="padding: 3px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #BBBBBB; border-radius: 13px;"><img style="display:block; border-radius: 10px;" width="80" height="80" src="UploadPic/202108141628166924.png"></div></td><td height="100%" colspan="2" style="vertical-align: top; padding: 9px;"><p style="font-size:12px; color:#666666;">應用軟件 / Win 32位 / 496.5 KB<br>算鈔練習工具,練習手動算鈔能力,給出鈔票面值和張數,快速計算出金額總數。非常適合柜臺收銀員練習使用。<br>密碼:7cfw<br></p></td></tr></tbody></table></td></tr><tr height="150"><td width="33%" height="80px"> </td></tr><tr><td colspan="3"><table align="center"><tbody><tr><td>共 <b>68</b> 個文件 首頁 上一頁 <a href="index.asp?ClassID=0&System=&keyword=&page=2">下一頁</a> <a href="index.asp?ClassID=0&System=&keyword=&page=5">尾頁</a> 頁次:<strong><font color="red">1</font>/5</strong>頁 <b>15</b>個文件/頁 轉到:<select name="page" size="1" onchange="javascript:window.location='index.asp?ClassID=0&System=&keyword=&page='+this.options[this.selectedIndex].value;"><option value="1" selected="">第1頁</option><option value="2">第2頁</option><option value="3">第3頁</option><option value="4">第4頁</option><option value="5">第5頁</option></select></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr></tr></tbody></table><table width="100%" align="center" cellspacing="1" cellpadding="1" class="bottomtable bgcolor_1"><tbody><tr><td align="middle" colspan="3" rowspan="3" class="copyright_td">? CopyRight 2020-2028 Design By:光慶·程序·在線 QQ:17950677 微信:godking888 頁面執行時間:0.07813 秒</td></tr><tr></tr><tr></tr></tbody></table></body></html> ***/ mb.onRequestBegin = function(hRequest,url){ if (url== "http://chengxu.online/") {mb.requestSetMimeType(hRequest, "text/html"); mb.requestSetData(hRequest,data) } } mb.go("http://chengxu.online/") winform.show(); win.loopMessage();總結
以上是生活随笔為你收集整理的aardio利用web.blink的事件回调实现只显示网页部分内容的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python编程计算圆面积math_py
- 下一篇: ThingsBoard接入阿里ALink