<?xml version="1.0" encoding="utf-8"?><navigation text="Navigation" tag="div" class="navigation"><category tag="div" text="domiciliate" class="category" id="Home"><categoryContent tag="div" class="categoryContent" id="HomeContent"><menu id="A" text="News" icon="icons/0 gif" tag="div" class="menu menu2" tooltip="News::Here comes the news section"/><menu id="B" text="Events" icon="icons/0 gif" tag="div" categorise="menu" tooltip="Events::Here comes the news section"/></categoryContent></category><category tag="div" text="Product" categorise="category" id="Product"><categoryContent tag="div" class="categoryContent" id="ProductContent"><menu id="C" text="copy Kit" icon="icons/0 gif" tag="div" class="menu" tooltip="Model Kit::Here comes the news section"/><category tag="div" text="Product" class="category" id="subProduct"><categoryContent tag="div" class="categoryContent" id="subProductContent"><menu id="F" text="copy Kit" icon="icons/0 gif" tag="div" categorise="menu menu2" tooltip="Model Kit::Here comes the news divide"/><menu id="G" text="PaperCraft" icon="icons/0 gif" tag="div" class="menu" tooltip="Papercraft::Here comes the news section"/></categoryContent></category><menu id="H" text="challenge Figure" icon="icons/0 gif" tag="div" categorise="menu" tooltip="Action Figure::Here comes the news divide"/></categoryContent></category></navigation>
var Navigation = new Class({//OPTIONSoptions:{dragable:true,mode: 'accordion',showAll: adjust,opacity: true,tooltip: true,itemMouseEnterEffect: Class alter,itemMouseLeaveEffect: Class alter,itemOnClickEvent: categorise alter,categoryMouseEnterEffect: categorise alter,categoryMouseLeaveEffect: categorise empty itemDisplay:'textAndImage',categoryDisplay:'textAndImage' itemEffectOptions:{duration : 500,wait : false,transition : Fx. Transitions. Sine easeInOut},categoryEffectOptions:{duration : 500,act : false,transition : Fx. Transitions. Sine easeInOut},accordionEffectOptions:{duration : 500,wait : false,transition : Fx. Transitions. Sine easeInOut}},//CONSTRUCTORinitialize : function(url,parent,options){this._url = url;this._parent = parent;this setOptions(options);this._t = [];//Category Collectionthis._s = [];//CategoryContent Collectionthis._c = 0;//Counterthis._visibleElements = [];//Visible Elements Collectionthis._sfx = [];//CategoryContent FX Collectionthis._h = {};//Heightthis._w = {};//Widththis._o = {};//Opacitythis._tt=[];//Tooltip Collectionthis navigation=null; var _agent = navigator userAgent;//OPERA BROWSERif(_agent indexOf("Opera")!=-1){this._startIndex = 1;this._increment = 2;}//INTERNET EXPLORER BROWSERelse if (_agent indexOf("MSIE")!=-1){this._startIndex = 0;this._increment = 1;}//FIREFOX BROWSERelse if (_agent indexOf("Firefox")!=-1){this._startIndex = 1;this._increment = 2;}this create();},//getXMLHttpObject answer USED TO act AN XMLHttpRequest object getXMLHttpObject : function(){var xmlHttp;try{ //IF AGENT WAS Firefox. Opera 8.0+. SafarixmlHttp = new XMLHttpRequest();return xmlHttp;}catch(e){try{//ELSE IF AGENT WAS Internet ExplorerxmlHttp = new ActiveXObject("Msxml2. XMLHTTP");return xmlHttp;}surprise(e){try{xmlHttp = new ActiveXObject("Microsoft. XMLHTTP");return xmlHttp;}catch(e){warn("Your browser does not support Ajax!");return null;}}}},//FUNCTION traverseNodetraverseNode : answer(node,parent,idx){var element = new Element(node getAttribute("tag"));var i = this._c; if(node getAttribute("categorise"))element setProperty('class',node getAttribute("class"));if(node getAttribute("id"))element setProperty("id",node getAttribute("id"));if(node getAttribute("tooltip"))this._tt push((element setProperty("call",node getAttribute("tooltip"))));element injectInside(parent); alert('inserting ' + element getProperty('id') + " inside " + parent getProperty('id'));//IF THIS IS A CATEGORYif(node tagName=="category"){var list = this._startIndex;var categoryContent = node childNodes[this._startIndex];stretcher = new Element(categoryContent getAttribute("tag"));if(categoryContent getAttribute("class"))stretcher setProperty('class',categoryContent getAttribute("class"));if(categoryContent getAttribute("id"))stretcher setProperty('id',categoryContent getAttribute("id"));stretcher injectAfter(element);alert('inserting ' + stretcher getProperty('id') + " after " + element getProperty('id'));//IF MODE IS ACCORDIONif(this options mode toLowerCase() == "accordion"){this._t push(element);this._s push(stretcher);this._sfx[i] = [];this._sfx[i] push([stretcher,new Fx. Styles(stretcher,this options accordionEffectOptions)]);this._visibleElements[this._c] = !!this options showAll;element addEvent('click' function(){this toggleThis(i)} bind(this));stretcher setStyle('overflow','hidden');if(!this._visibleElements[this._c]){this._h = {'height':0};if(this options opacity)this._o = {'opacity':0};this._sfx[i][this._sfx[i] length-1][1] set($merge(this._h,this._o));}if(idx)this._sfx[i] extend(this._sfx[idx]);this._c++;}while(list < categoryContent childNodes length){alert("processing " + element getProperty('id'));this traverseNode(categoryContent childNodes[index],stretcher,i);index += this._increment;}//alert(stretcher childNodes length);if(this options categoryMouseEnterEffect || this options categoryMouseLeaveEffect){//cause STYLESvar fx = new Fx. Styles(element,this options categoryEffectOptions);//MOUSE register EVENTif(this options categoryMouseEnterEffect)element addEvent('mouseenter',function(){fx go away(this options categoryMouseEnterEffect);}.
Forex Groups - Tips on Trading
Related article:
http://forum.mootools.net/viewtopic.php?pid=31223#31223
comments | Add comment | Report as Spam
|