Location: PHPKode > projects > Streber > themes/starlight/moz-behaviors.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
<!--
	moz-behaviors.xml - version 1.1 (pre-release) (2005/01/17)
	Copyright 2004-2005, Dean Edwards
	Web: http://dean.edwards.name/moz-behaviors/

	This software is licensed under the CC-GNU LGPL
	Web: http://creativecommons.org/licenses/LGPL/2.1/
-->
<!--
=======================================================================
 TO DO
=======================================================================

hideFocus
fix CSSStyleDeclaration pixel*.__defineGetter__
behaviors FAQ
test Event.returnValue

=======================================================================
 DONE
=======================================================================

styleFloat
allow upper case tags/attributes
support for external JS files
better support for oncontentready/ondocumentready
support for multiple behaviors in css
ActiveXObject

=======================================================================
-->

<!-- add a behavior through css -->
<binding id="behavior" extends="#-moz-behaviors">
<implementation><constructor>
<![CDATA[
addBehavior(0);
]]></constructor></implementation>
</binding>

<binding id="-moz-behaviors">
<implementation><constructor>
<![CDATA[if(!this.addBehavior){
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'[\xa1-\xff]+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp(e(c),'g'),k[c]);return p}('¤ ý=-1;ü.¥.¢®=¢(³){À{¨(³===0){¤ b=Ô(¡,®).î("-¢÷-¢ö");b=b.±(/^¢õ\\(([^)]*)\\)$/,"$1").¢¯("#");¨(b){¤ p=b[0].±(/[^\\/]+$/,"");¤ h=b[1].¢¯("|");¤ i=h.Å;Ä(i--)¡.¢®(p+h[i])}}¨(!³)£;¨(!°.²[³]){¤ S=";";¢ È(n){¤ t=n.¢ô.ð();£ t.·(t.¢«(":")+1)};¢ ©(n,a){£ n.¶(a)||n.¶(a.¢ó())};¢ ¢ª(b){¢­(È(b)){´"µ":¤ Ë=©(b,"Ë");£(Ë)?"¤ "+Ë+"={¢ò:¢(µ){¸.æ(\'"+©(b,"¹")+"\',µ)}}":"";´"¢©":¤ n=©(b,"¹");¤ g=©(b,"¢ñ")||"¢(){£ ¶(\'"+n+"\')}";g="¦(\'"+n+"\',"+g+")";¤ p=©(b,"¢¬")||"";¨(p)p+=".þ(¸,Ê);";p="¢(Ê){"+p+"¢ð(\'"+n+"\',Ê)}";p="­(\'"+n+"\',"+p+")";£ g+S+p;´"¢ï":£"¸."+©(b,"¹")+"="+©(b,"¹");´"¢î":¤ h=©(b,"¢í")||"";h+=(h)?"()":©(b,"¢ì");h="¢(µ){½.µ=µ;£ "+h+"}";¤ e=©(b,"µ");¢­(e){´"¢ë":£"½.¢ê("+h+",1)";´"¢é":£"°.².Ã.Ø("+h+")"}£(©(b,"¾")||"¸")+".Ò(\'"+e.·(2)+"\',"+h+",¯)";´"¢è":¢ç:£""}};¢ ¢¨(n){£(©(n,"¢¬"))?";¤ Ç=¶(\'"+©(n,"¹")+"\')||"+(©(n,"Ê")||"®")+";¨(Ç!=®)¸[\'"+©(n,"¹")+"\']=Ç":""};¢ ¢¦(f){ÿ(¢æ(f))£ ·(¢«("{")+1,¢å("}"))};¤ É=º ¢¥;¢ Û(u){À{É.¢ä("¢ã",u,¯);É.¢â(®);£ É.¢á}¿(i){}};¤ Ù=[];¤ Æ="";¤ §="";¢ ¢§(){¤ d=(º ¢à).¢ß(Û(³),"¢Þ/¢Ý");¤ c=d.¢Ü.Ú,n;¾(¤ i=0;(n=c[i]);i++){¨(n.â==á.à){¨(È(n)=="¢Û"){¤ s=©(n,"¢Ú");¨(s){§+=Û(s)}Ð{¾(¤ j=0;j<n.Ú.Å;j++)§+=n.Ú[j].¢Ù}}Ð{Ù.Ø(¢ª(n));¨(È(n)=="¢©"){Æ+=¢¨(n)}}}}Æ+=";û Ç"};¢§();§=¢¦(º ¢¡(§));¤ A=/\\¢Ø\\s+¢×\\s*\\(\\s*(["\'])\\w\\.¢Ö\\1\\s*\\)/¢Õ;§=§.±(A,"º ¢¥()");§=§.±(/#/g,"\\\\¢Ô");¤ $=[Ù.¢¢(S)];¤ B=/(\\"[^\\"\\n]+\\")|(\\/[^\\/\\n]+\\/)|(\\{[^\\{\\}]*\\})/g;¤ ¢Ó=/#(\\d+)\\b/g;¢ ¢¤(m){£"#"+$.Ø(m)};¢ ¢Ò(m,i){£ $[i-1]};Ä(B.¢Ñ(§)){§=§.±(B,¢¤)}¤ F=/\\n\\s*¢[^\\n]*\\n/g;¤ ¢£=§.¢Ð(F)||[];§=§.±(F,"");§=¢£.¢Ï("#1",§).¢¢(S);¤ i=$.Å;¢Î §=§.±("#"+i,$[--i]);Ä(i);§+=Æ;°.²[³]=º ¢¡("¸","ÿ(¡){"+§+"}")}°.²[³].þ(¡,¡);£ ý}¿(e){£ 0}};ü.¥.¢Í=¢(c){};°.²={Ã:[]};½.Ò("¢Ì",¢(){À{¤ h=°.².Ã;¤ i=h.Å;Ä(i)h[--i]();û °.².Ã}¿(i){}},¯);«.¥.¦("ú",¢(){£ ¡.ù});«.¥.­("ú",¢(v){¡.ù=v});«.¥.¦("ø",¢(){£ Â(¡.÷)||0});«.¥.­("ø",¢(v){¡.÷=v+"Á"});«.¥.¦("ö",¢(){£ Â(¡.õ)||0});«.¥.­("ö",¢(v){¡.õ=v+"Á"});«.¥.¦("ô",¢(){£ Â(¡.ó)||0});«.¥.­("ô",¢(v){¡.ó=v+"Á"});«.¥.¦("ò",¢(){£ Â(¡.ñ)||0});«.¥.­("ò",¢(v){¡.ñ=v+"Á"});À{¤ c=Ô(¡,®);¤ t=c.¢Ë}¿(i){}¢Ê{¨(!t){¤ U=/[A-Z]/g;¢ ï(m){£"-"+m.ð()};¢ í(p){£ p.±(U,ï)};¾(¤ p ¢É ¡.Ó){¨(å ¡.Ó[p]=="¢È"){«.¥.¦(p,¢(){£ ¡.î(í(p))})}}}}ì.¥.¦("ë",¢(){£ ¡.ê("*")});ì.¥.¼=¢(){£ °.¢Ç("¢Æ")};ª.¥.¦("ë",¢(){£ ¡.ê("*")});ª.¥.¦("ã",¢(){£(¡.Î==¡.Ñ)?®:¡.Î});ª.¥.¦("é",¢(){¨(!×.Ö.Õ)×.Ö.Õ=0;¤ u="¢Å"+×.Ö.Õ++;½[u]=¡;¡.¦("é",¢(){£ u});£ u});ª.¥.¦("¢Ä",¢(){£ Ô(¡,®)});ª.¥.¦("¢Ã",¢(){£ ¡.Ó});ª.¥.¦("è",¢(){£ ¡.ç});ª.¥.­("è",¢(v){¡.ç=v});ª.¥.¢Â=¢(n,h){¡.Ò(n.·(2),h,¯)};ª.¥.¢Á=¢(n,h){¡.¢À(n.·(2),h,¯)};ª.¥.¼=¢(){£ ¡.Ñ.¼()};ª.¥.æ=¢(n,e){¨(!e)e=¡.Ñ.¼();e.¢¿(n.·(2),¯,¯);¡.¢¾(e);¨(å ¡[n]=="¢")¡[n]();Ð ¨(¡.¶(n))¢½(¡.¶(n))};ª.¥.ä=¢(e){£ ¢¼(e==¡||(e&&¡.ä(e.ã)))};¬.¥.¦("Í",¢(){£(¡.Ï.â==á.à)?¡.Ï:¡.Ï.Î});¬.¥.¦("¢»",¢(){£(¡.»=="Ý")?¡.Þ:(¡.»=="ß")?¡.Í:®});¬.¥.¦("¢º",¢(){£(¡.»=="ß")?¡.Þ:(¡.»=="Ý")?¡.Í:®});¬.¥.¦("¢¹",¢(){£(¡.Ü==1)?1:(¡.Ü==2)?4:2});¬.¥.¦("Ì",¢(){£ ¢¸});¬.¥.­("Ì",¢(v){¨(¡.¢·&&!v){¡.¢¶();¡.¦("Ì",¢(){£ ¯})}});¬.¥.­("¢µ",¢(v){¨(v)¡.¢´()});¬.¥.¦("¢³",¢(){£ ¡.¢²});¬.¥.¦("¢±",¢(){£ ¡.¢°});',95,182,'this|function|return|var|prototype|__defineGetter__|_0|if|_1|HTMLElement|CSSStyleDeclaration|Event|__defineSetter__|null|false|document|replace|behaviorUrns|_2|case|event|getAttribute|slice|element|name|new|type|createEventObject|window|for|catch|try|px|parseInt|__private|while|length|_3|__tmp|_4|_5|value|id|returnValue|srcElement|parentNode|target|else|ownerDocument|addEventListener|style|getComputedStyle|count|callee|arguments|push|_6|childNodes|_7|which|mouseover|relatedTarget|mouseout|ELEMENT_NODE|Node|nodeType|parentElement|contains|typeof|fireEvent|textContent|innerText|uniqueID|getElementsByTagName|all|HTMLDocument|_8|getPropertyValue|_9|toLowerCase|width|pixelWidth|top|pixelTop|height|pixelHeight|left|pixelLeft|cssFloat|styleFloat|delete|Element|_10|call|with|Function|join|_11|_12|XMLHttpRequest|_13|_14|_15|property|_16|indexOf|put|switch|addBehavior|split|layerY|offsetY|layerX|offsetX|stopPropagation|cancelBubble|preventDefault|cancelable|true|button|toElement|fromElement|Boolean|eval|dispatchEvent|initEvent|removeEventListener|removeEvent|attachEvent|runtimeStyle|currentStyle|moz_id|Events|createEvent|string|in|finally|display|load|removeBehavior|do|concat|match|test|_17|_18|x23|gi|XMLHTTP|ActiveXObject|bnew|nodeValue|src|script|documentElement|xml|text|parseFromString|DOMParser|responseText|send|GET|open|lastIndexOf|String|default|defaults|ondocumentready|setTimeout|oncontentready|onevent|handler|attach|method|setAttribute|get|fire|toUpperCase|tagName|url|binding|moz'.split('|'),0,{}))
}]]></constructor></implementation>
</binding>

<binding id="block-netscape6">
<content>
<html:script type="text/javascript"><![CDATA[
// netscape6 does not retain the -moz-binding css property value
//  so we disable moz-behaviors
if (/netscape6/i.test(navigator.userAgent)) {
	document.styleSheets[0].insertRule("*{-moz-binding:none!important}", 0);
}
]]></html:script>
<children/>
</content>
</binding>

<!-- manually attach behaviors to child elements of <table>s -->
<binding id="table">
<implementation><constructor><![CDATA[
	var i, j;
	if (tHead) tHead.addBehavior(0);
	for (i = 0; i < tBodies.length; i++) tBodies[i].addBehavior(0);
	for (i = 0; i < rows.length; i++) {
		for (j = 0; j < rows[i].cells.length; j++) {
			rows[i].cells[j].addBehavior(0);
		}
	}
	if (tFoot) tFoot.addBehavior(0);
]]></constructor></implementation>
</binding>

</bindings>

Return current item: Streber