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

(完整代码) 1KB

<?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="link" extends="base.xml#base">
		<content>
			<html:a 
				anonid="anonlink" href="javascript:void(0)" class="customlink"
				><html:span anonid="linktext">
				</html:span><children/></html:a>
		</content>
	    
	    <implementation>
	    	<property name="customStyle">
	    		<getter><![CDATA[
	    			return "";
	    		]]></getter>
	    	</property>
	    	
	    	<method name="update">
	    		<body><![CDATA[
	    			var anonlink = document.getAnonymousElementByAttribute(this, "anonid", "anonlink");
	    			//this.cloneAttributes(this, anonlink, new Array("href"));
	    			var href = anonlink.getAttribute("href");
	    			
	    			var css = this.customStyle;
	    			if (css != null && css != "") {
	    				anonlink.style.cssText = css;
	    			}
	    			
	    			var value = this.getAttribute("value");
	    			if (value != null && value != "") {
	    				this.updateText(value, "linktext");
	    			}
	    			
	    			//if (href == null || href == "")
	    			//	anonlink.setAttribute("href", "javascript:void(0)");
	    			//}
	    		]]>
	    		</body>
	    	</method>
	    </implementation>
	    
	    <handlers>
	    	<handler event="DOMAttrModified" phase="capturing">
	    		event.stopPropagation();
	    	</handler>
	    </handlers>
	</binding>
	
</bindings>

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

AI 解读 AI

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

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