Index: platform/inc/nlsmenueffect.js =================================================================== diff -u -N --- platform/inc/nlsmenueffect.js (revision 12930) +++ platform/inc/nlsmenueffect.js (revision 0) @@ -1,241 +0,0 @@ -/** -* nlsmenueffect.js v.2.0.1 -* Copyright 2005-2007, addobject.com. All Rights Reserved -* Author Jack Hermanto, www.addobject.com -*/ -var nlsEffectList={ - barn:"progid:DXImageTransform.Microsoft.Barn(Duration=0.3,motion=out,orientation=vertical);", - blinds:"progid:DXImageTransform.Microsoft.Blinds(Duration=0.3,Bands=8,direction=right);", - checkerboard:"progid:DXImageTransform.Microsoft.Checkerboard(Duration=0.3,Direction=right,SquaresX=20,SquaresY=20);", - fade:"progid:DXImageTransform.Microsoft.Fade(Duration=0.3,Overlap=1.00);", - inset:"progid:DXImageTransform.Microsoft.Inset(Duration=0.3);", - iris:"progid:DXImageTransform.Microsoft.Iris(Duration=0.3,irisstyle=CIRCLE,motion=in);", - pixelate:"progid:DXImageTransform.Microsoft.Pixelate(Duration=0.3,MaxSquare=10);", - radialwipe:"progid:DXImageTransform.Microsoft.RadialWipe(Duration=0.3,wipestyle=WEDGE)", - randombars:"progid:DXImageTransform.Microsoft.RandomBars(Duration=0.3,Orientation=horizontal);", - randomdissolve:"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3);", - slide:"progid:DXImageTransform.Microsoft.Slide(Duration=0.3,slidestyle=HIDE,Bands=5);", - spiral:"progid:DXImageTransform.Microsoft.Spiral(Duration=0.3,GridSizeX=64,GridSizeY=64);", - stretch:"progid:DXImageTransform.Microsoft.Stretch(Duration=0.3,stretchstyle=HIDE);", - strips:"progid:DXImageTransform.Microsoft.Strips(Duration=0.3,motion=rightdown);", - wheel:"progid:DXImageTransform.Microsoft.Wheel(Duration=0.3,spokes=10);", - gradienwipe:"progid:DXImageTransform.Microsoft.GradientWipe(Duration=0.3,GradientSize=0.75,wipestyle=0,motion=forward);", - zigzag:"progid:DXImageTransform.Microsoft.Zigzag(Duration=0.3,GridSizeX=8,GridSizeY=8);", - itemfade:"progid:DXImageTransform.Microsoft.Fade(Duration=0.2,Overlap=0.75);", - itemdissolve:"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3);", - aoslide:"Duration:2" -}; - -function NlsMenuEffect(mId, effName) { - this.mId=mId; - this.elm=null; - this.effName=effName; - this.isOut=false; - this.prop=new Object(); - this.onShow=function() {}; - this.onHide=function() {}; - - this.start=_defStart; - this.run=_defRun; - - if (effName=="aoslide") { - this.start=_slideStart; - this.run=_slideRun; - } - return this; -}; - -/*default effect*/ -var _fadeTm=null; -var _fadesEff=new Object(); - -function _defStart(isOut) { - var mn=NlsMenu.$GE(this.mId); - mn.childNodes[0].style.position=""; - nlsMenu[this.mId].rt.ready=true; - this.elm=NlsMenu.$GE("effwin_"+this.mId); - if (nls_isIE) { - this.elm.style.filter=nlsEffectList[this.effName]; - if (this.elm.filters.length>0) this.elm.filters[0].apply(); - } else { - this.elm=this.elm.parentNode; - this.isOut=(isOut==true); - if (!this.prop["init"]) { - this.elm.style.MozOpacity=(isOut?1:0); - this.elm.style.opacity=(isOut?1:0); - } - this.prop["init"]=true; - this.prop["dur"]=20; - this.prop["rng"]=100; - this.prop["spd"]=20; - } -}; - -function _defRun() { - if (nls_isIE) { - if (this.elm.filters.length>0) this.elm.filters[0].play(); - } else { - var me=this; - if (this.elm.style.MozOpacity) this.prop["opa"]="MozOpacity"; else this.prop["opa"]="opacity"; - var p=new Object(); - p.x1=this.elm.style[this.prop["opa"]]*this.prop["rng"]; - if (this.isOut) { p.x2=0; } else { p.x2=this.prop["rng"]-1; } - _fc_fade(p); - this.prop["pt"]=p; - this.prop["sd"]=0; - - _fadesEff[this.mId]=this; - if (!_fadeTm) _fadeTm=setInterval(function() {_fadeAnimate();}, this.prop["spd"]); - } -}; - -function _fadeAnimate() { - var b=true; - for (var it in _fadesEff) { - var eff=_fadesEff[it]; - var p=eff.prop["pt"]; - if (eff.prop["sd"]0) this.elm.filters[0].apply(); -}; - -NlsMenuItemEffect.prototype.start=function() { - if(!nls_isIE) return; - if (this.elm.filters.length>0) this.elm.filters[0].play(); -}; -/*end*/ - -/*NlsMenuBorder class*/ -function NlsMenuBorder(bTop, bBottom, bLeft, bRight) { - var border = ""; - var sTop="", sBottom="", sLeft="", sRight=""; - if (bTop) sTop=""; - if (bBottom) sBottom=""; - if (bLeft) { - sLeft=""; - if (bTop) sTop=""+sTop; - if (bBottom) sBottom=""+sBottom; - } - if (bRight) { - sRight=""; - if (bTop) sTop+=""; - if (bBottom) sBottom+=""; - } - if (sTop!="") sTop=""+sTop+""; - if (sBottom!="") sBottom=""+sBottom+""; - border=border+sTop+""+sLeft+""+sRight+""+sBottom; - border+="
  
@menu
"; - - this.applyBorder = function (smenu, stlprf) { - var b=border.replace(/@stlprf_/gi, stlprf); - return b.replace(/@menu/gi, smenu); - }; - - return this; -}; \ No newline at end of file