Hey guys just wondering how this guy at this site dailysnap.com did what he did. On the top he has a + sign and you click it and a menu comes done. Is there any free scripts that I can use that does this?
// Application Notes // Executed by event call to zxcCngHeight(zxcobj,zxcdir,zxcminh,zxcdly) // where // parameter 0 = object or object ID name (object or string) // parameter 1 = < 1 reduce height, > 1 increase height (digits) // parameter 2 = the minimum height (digits) // parameter 3 = the maximum height (digits) // parameter 4 = (optional) delay (default 100mSec) (digits) // parameter 5 = (optional) true = remove element when at minimim height (true or null)
// Note: parameters 2,3 and 5 cannot be changed after the first element call
// Functional Code NO NEED to Change
var zxcOOPCnt=0
function zxcCngHeight(zxcobj,zxcdir,zxcminh,zxcmaxh,zxcdly,zxcrmv){ if (typeof(zxcobj)=='string'){ zxcobj=document.getElementById(zxcobj);} if (!zxcobj.oopch){ zxcobj.oopch=new zxcOOPCngHeight(zxcobj,zxcdir,zxcminh,zxcmaxh,zxcdly,zxcrmv); } clearTimeout(zxcobj.oopch.to); zxcobj.oopch.dir=zxcdir; zxcobj.oopch.delay=zxcdly||zxcobj.oopch.delay; if (zxcdir>0){ zxcobj.style.display=''; } zxcobj.oopch.cngheight(); }
zxcOOPCngHeight.prototype.cngheight=function(){ if ((this.dir<0&&this.cnt-this.dir>=this.minh)||(this.dir>0&&this.cnt+this.dir<=this.maxh)){ this.obj.height=(this.cnt+=this.dir)+'px'; this.setTimeOut("cngheight();",this.delay); } else if (this.dir<0){ this.obj.height=this.minh+'px'; if (this.rmv){ this.obj.display='none'; } } else if (this.dir>0){ this.obj.height=this.maxh+'px'; }