.metadata/.plugins/com.genuitec.eclipse.webdesigner3/bindings/inputs.xml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" 
		  xmlns:xbl="http://www.mozilla.org/xbl" 
		  xmlns:html="http://www.w3.org/1999/xhtml">
	
	<binding id="input" extends="base.xml#base">
		<implementation>
			<field name="inputImage">""</field>
			<field name="styleNodeId">""</field>
			<field name="paddingRight">"0px"</field>
			
			<property name="inputLabel">
				<getter><![CDATA[
					return "";
				]]></getter>
			</property>
			
			<method name="update">
	    		<body><![CDATA[
	    			var outer = document.getAnonymousElementByAttribute(this, "anonid", "outer");
	    			var input = document.getAnonymousElementByAttribute(this, "anonid", "input");
	    			this.cloneAttributes(this, input, new Array("value", "size", "maxlength", "alt"));
	    			
	    			// if we have a anon label element we need to update it
	    			var label = this.inputLabel;
	    			if (label != null && label != "") {
	    				this.updateText(label, "label");
	    			}
	    			
	    			if (this.styleNodeId != "") {	
	    				var styleNode = document.getAnonymousElementByAttribute(this, "anonid", this.styleNodeId);
	    				styleNode.style.backgroundImage = "url(\"" + this.inputImage + "\")";
	    			}
	    			if (outer != null) {
	    				outer.style.paddingRight = this.paddingRight;
	    			}
	    		]]>
	    		</body>
	    	</method>
	    	
		</implementation>		
		<handlers>
	    	<handler event="DOMAttrModified" phase="capturing">
	    		event.stopPropagation();
	    	</handler>
	    </handlers>
	</binding>
	
	<!--
	<binding id="inputs" extends="base.xml#base">
		<content>
			<html:wd3span anonid="outer" class="custominput">
				<html:input anonid="cb1" type="checkbox" />
				<html:input anonid="radio1" type="radio" />
				<html:input anonid="file1" type="file"/>
				<html:input anonid="text1" type="text" style="background-position: bottom right; background-repeat: no-repeat"/>
				<html:input anonid="password1" type="password" style="background-position: bottom right; background-repeat: no-repeat"/></html:wd3span><html:wd3span anonid="label">
				</html:wd3span><html:span style="display:none"><children/></html:span>
		</content>
		
后面还有 56 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。