⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourcetest.xml

📁 在流览器上仿CS界面的JAVASCRIPT脚本
💻 XML
字号:
<?xml version="1.0"?><Application>	<Window caption="Resource Test"		width="50%" height="50%" centered="true"/>	<Resources>		<!--		    Any object can be preloaded but only a few make any real sense.			Good examples of useful resources are BiXmlTextLoader and its sub			classes and BiImage. Basically any object that requires loading			external data is useful to preload. However, to be able to wait			for the loading of the data the resource loader uses the method			getLoaded() and the load event to determine if the resource is			loaded. If the object is not an instance of BiEventTarget or does			not have a loaded getter the resource is assumed to be loaded.		    If the class has a load method that will be called after the object			has been created. The resource loader waits for "load" events and			"error" events. The "Bi" prefix may be emitted.			<Script src="sUri"/> and <Script>code</Script> are special cases. The			resources will be loaded in the order that they are declared.			BiIframe does not work very well as a resource because it requires			creation to start the loading (instantiation is not enough).			BiImagePreloader does not work well as a resource because it does not			have a uri setter. This might be changed/fixed in the future but			using BiImage will also preload the image file.		-->		<TextLoader uri="ResourceTest.xml" id="text-loader"/>		<XmlLoader uri="ResourceTest.xml" id="xml-loader"/>		<Image uri="images/ie.png" id="image"/>		<Script><![CDATA[function ResourceTest(){	var win = application.getWindow();	var tl = application.getResourceById( "text-loader" );	var xl = application.getResourceById( "xml-loader" )	var img = application.getResourceById( "image" )	var l1 = new BiTextArea;	l1.setWrap( false );	l1.setLocation( 5, 5 );	l1.setBottom( 5 );	l1.setWidth( 200 );	l1.setText( tl.getText() );	var l2 = new BiTextArea;	l2.setWrap( false );	l2.setLocation( 210, 5 );	l2.setBottom( 5 );	l2.setWidth( 200 );	l2.setText( xl.getDocument().documentElement.tagName );	img.setLocation( 415, 5 )	win.add( l1 );	win.add( l2 );	win.add( img );}ResourceTest.main = function (){	new ResourceTest();};		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -