?? iframetest.xml
字號:
<?xml version="1.0"?><!-- Basic test with iframes inside internal windows--><application> <window caption="Iframe Test" width="800" height="600"/> <resources> <script><![CDATA[function IframeTest() { var appWin = application.getWindow(); var dp = new BiDesktopPane(); dp.setLocation(0,0); dp.setRight(0); dp.setBottom(0); appWin.add(dp); var w1 = new BiWindow("/"); w1.setSize(640, 480); w1.setCanMinimize(false); dp.add(w1); var f = new BiIframe; f.setLocation(0,0); f.setRight(0); f.setBottom(0); //f.setSrc("http://webfx.eae.net"); f.setSrc("/"); w1.getContentPane().add(f); var w2 = new BiWindow("Google"); w2.setSize(640, 480); w2.setCanMinimize(false); dp.add(w2); var f2 = new BiIframe; f2.setLocation(0,0); f2.setRight(0); f2.setBottom(0); f2.setSrc("http://www.google.com"); w2.getContentPane().add(f2); var w3 = new BiWindow("No Iframe"); w3.setSize(100, 100); w3.setCanMinimize(false); dp.add(w3); w3.getContentPane().add(new BiButton("Hello World")); var t = new BiTimer(100); t.addEventListener("tick", function (e) { try { var d = f.getContentDocument(); w1.setCaption( d.title || d.location.href ); } catch (ex) { w1.setCaption( ex.message ); } }); t.start();}IframeTest.main = function () { new IframeTest; }; ]]></script> </resources></application>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -