Help Postioning Sidebar on screen. OPEN ME!

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: May 2008
Posts: 3
Reputation: Confused@JS is an unknown quantity at this point 
Solved Threads: 0
Confused@JS Confused@JS is offline Offline
Newbie Poster

Help Postioning Sidebar on screen. OPEN ME!

 
1
  #1
May 12th, 2008
I need help positioning my sidebar on my browser. Every time I scroll down the sidebar follows down the screen causing me to lose half the info on the sidebar and only showing what fits in the screen. It has became a really pain in the @ss and I would appreciate any help passed my way or any helpful suggestions. Thanks

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. var awmav=navigator.appVersion, awma5=(parseFloat(awmav.substring(awmav.indexOf("MSIE")+5,awmav.indexOf("MSIE")+8)))>5;var awmBef5=(parseFloat(awmav.substring(awmav.indexOf("MSIE")+5,awmav.indexOf("MSIE")+8)))<5;var awmprp,awmhd=200,awmDefaultStatusbarText="",n=null,awmcrm,awmcre,awmmo,awmso,awmctm=n,awmuc,awmud,awmctu,awmun,awmdid,awmsht="",awmsoo=0,awmlsx=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft)), awmlsy=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop)),awmIEOffsetX,awmIEOffsetY;var awmalt=["left","center","right"],awmplt=["absolute","relative"],awmvlt=["visible","hidden","inherit"],awmctlt=["default","hand","crosshair","help","move","text","wait"];var awmRightToLeftFrame;if (awmso>0){awmsoo=awmso+1;}else {var awmsc=new Array();}var awmdsid;var awmlssx=awmlsx;var awmlssy=awmlsy;var awmSelectedItem;var mouseIsDown=0;var awmTrans=["Barn(orientation=horizontal, motion=out)","Blinds(bands=12, direction='RIGHT')","CheckerBoard(squaresX=10, squaresY=10, direction='right')","Fade(overlap=3)","Iris(irisStyle='CIRCLE', motion='in')","Iris(irisStyle='CROSS', motion='in')","Iris(irisStyle='PLUS', motion='in')","Iris(irisStyle='SQUARE', motion='in')","Iris(irisStyle='STAR', motion='in')","Pixelate(MaxSquare=50)","RadialWipe(wipeStyle='clock')","RandomBars(orientation='horizontal')","RandomDissolve()","Slide(slideStyle='HIDE', bands=40)","Spiral(GridSizeX=32, GridSizeY=32)","Stretch(stretchStyle='spin')","Wheel(spokes=20)"];if (!awmun) awmun=0;if (awmcre>=0); else awmcre=0;var awmUnloadFunction;window.onresize = awmwr;
  2. function awmhidediv(){var m=1;while (document.getElementById("awmobject"+m)){document.getElementById("awmobject"+m).style.visibility="hidden";m++;}}
  3. function awmshowdiv(){var m=1;while (document.getElementById("awmobject"+m)){document.getElementById("awmobject"+m).style.visibility="visible";m++;}}
  4. function awmiht (image){return "<img src='"+awmMenuPath+awmImagesPath+"/"+awmImagesColl[image*3]+"' width="+awmImagesColl[image*3+1]+" height="+awmImagesColl[image*3+2]+" align='absmiddle'>";}
  5. function awmatai (text,image,algn){if (text==null) text="";var s1=(text!="" && text!=null && (algn==0 || algn==2) && image!=null)?"<br>":"";var s2=(image!=n)?awmiht (image):"";return "<nobr>"+((algn==0 || algn==3)?s2+s1+text:text+s1+s2)+"</nobr>";}
  6. function awmCreateCSS (pos,vis,algnm,fgc,bgc,bgi,fnt,tdec,bs,bw,bc,pd,crs){if (awmso>=0) awmso++; else awmso=0;var style={ id:"AWMST"+awmso,id2:"AWMSTTD"+awmso,pos:pos,vis:vis,algnm:algnm,fgc:fgc,bgc:bgc,bgi:bgi,fnt:fnt,tdec:tdec,bs:bs,bw:bw,bc:bc,zi:awmzindex,pd:pd,crs:crs};awmsht+="."+style.id+" {position:"+awmplt[pos]+";visibility:"+awmvlt[vis]+";"+"text-align:"+awmalt[algnm]+";"+((fnt!=n)?"font:"+fnt+"; ":"")+((tdec!=n)?"text-decoration:"+tdec+";":"")+((fgc!=n)?"color:"+fgc+";":"")+"background-color:"+((bgc!=n)?bgc+";":"transparent;")+((bgi!=n)?"background-image:url('"+awmMenuPath+awmImagesPath+"/"+awmImagesColl[bgi*3]+"');":"")+((bs!=n)?"border-style:"+bs+"; ":"")+((bw!=n)?"border-width:"+bw+"px; ":"")+((bc!=n)?"border-color:"+bc+";":"")+"padding:"+pd+"px;"+"cursor:"+awmctlt[crs]+";z-index:"+style.zi+"}";awmsht+="."+style.id2+" {text-align:"+awmalt[algnm]+";"+"padding:"+pd+"px;"+((fnt!=n)?"font:"+fnt+"; ":"")+((tdec!=n)?"text-decoration:"+tdec+"; ":"")+((fgc!=n)?"color:"+fgc+"; ":"")+"background-color:transparent;border-style:none;border-width:0px;"+"}";awmsc[awmsc.length]=style;}
  7. function awmCreateMenu (cll,swn,swr,mh,ud,sa,mvb,dft,crn,dx,dy,ss,ct,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc,opacity){if (awmmo>=0) awmmo++; else {awmm=new Array(); awmmo=0};var me={ ind:awmmo,nm:awmMenuName,cn:new Array(),fl:!awmsc[cs].pos,cll:cll,mvb:mvb,dft:dft,crn:crn,dx:(ct<2)?dx:0,dy:dy,ss:ss,sht:"<STYLE>.awmGeneric{background-color:transparent;border-style:none;border-width:0px;}"+awmsht+"</STYLE>",rep:0,st:awmOptimize?2:3,submenusFrameOffset:awmSubmenusFrameOffset,selectedItem:(typeof(awmSelectedItem)=='undefined')?0:awmSelectedItem,opacity:(typeof(opacity)=='undefined')?100:opacity,offX:(awmIEOffsetX)?awmIEOffsetX:0,offY:(awmIEOffsetY)?awmIEOffsetY:0,addSubmenu:awmas,ght:awmmght,whtd:awmmwhttd,buildMenu:awmbmm,cm:awmmcm};me.pm=me;me.addSubmenu(ct,swn,swr,mh,ud,sa,1,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc,opacity);if (typeof(awmRelativeCorner)=='undefined'){me.rc=0} else {me.rc=awmRelativeCorner;awmRelativeCorner=0}me.cn[0].pi=null;if (mvb) document.onmousemove=awmotmm;awmm[awmmo]=me;awmsht="";return me.cn[0];}
  8. function awmas (ct,swn,swr,shw,ud,sa,od,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc,opacity){cnt={ id:"AWMEL"+(awmcre++),it:new Array(),tid:"AWMEL"+(awmcre++),ct:ct,swn:swn,swr:swr,shw:(awma5)?shw:(shw>2)?2:shw,ud:ud,sa:sa,od:od,cs:awmsc[cs+awmsoo],ts:(ts!=null)?awmsc[ts+awmsoo]:null,tn:tn,ttt:ttt,ti:ti,ht:(tn!=null || ti!=null),tia:tia,dbi:dbi,ew:ew,eh:eh,jcoo:jcoo,jcoc:jcoc,pi:this,pm:this.pm,pm:this.pm,siw:0,wtd:false,argd:0,ft:0,mio:0,hsid:null,uid:null,dox:0,doy:0,opacity:(typeof(opacity)=='undefined')?100:opacity,addItem:awmai,addItemWithImages:awmaiwi,show:awmcs,fe:awmcfe,arr:awmca,ght:awmcght,pc:awmpc,unf:awmcu,hdt:awmchdt,onmouseover:awmocmo,onmouseout:awmocmot,otmd:awmotmd,otmu:awmotmu,otmm:awmotmm};this.sm=cnt;cnt.pm.cn[cnt.ind=cnt.pm.cn.length]=cnt;cnt.cd=(cnt.ind==0 && cnt.pm.cll==0)?0:1;return cnt;}
  9. function awmai (st0,st1,st2,in0,in1,in2,tt,sbt,jc0,jc1,jc2,url,tf,minWidth,minHeight,vbid){var itm={ id:"AWMEL"+(awmcre++),style:[(st0==n)?n:awmsc[st0+awmsoo],(st1==n)?n:awmsc[st1+awmsoo],(st2==n)?n:awmsc[st2+awmsoo]],inm:[in0,(in1==n)?in0:in1,(in2==n)?in0:in2],ii:[n,n,n],ia:[n,n,n],hsi:[n,n,n],tt:tt,sbt:sbt,jc:[jc0,jc1,jc2],tf:tf,top:0,left:0,layer:[n,n,n],ps:this,pm:this.pm,sm:null,minHeight:(minHeight)?minHeight:0,minWidth:(minWidth)?minWidth:0,vbid:vbid,ght:awmight,shst:awmiss,addSubmenu:awmas,onmouseover:awmoimo,onmouseout:awmoimot,onmousedown:awmoimd,onmouseup:awmoimu};if (url!=null){var prf=url.substring(0,7);if ((prf!="http://") && (prf!="https:/") && (prf!="mailto:") && (prf!="file://") && (url.substring(0,9)!="outlook:/") && (url.substring(0,6)!="ftp://") && (url.substring(0,6)!="mms://") && (url.substring(0,1)!="/")){if (awmprp){if (awmprp==" ") url="../mrp.html"; else url=awmprp+"\\"+url;} else url=awmMenuPath+"/"+url;}if (awmprp && url.substring(0,1)=="/") url="../rrp.html";}itm.url=url;this.it[itm.ind=this.it.length]=itm;return itm;}
  10. function awmaiwi (st0,st1,st2,in0,in1,in2,tt,ii0,ii1,ii2,ia0,ia1,ia2,hsi0,hsi1,hsi2,sbt,jc0,jc1,jc2,url,tf,minWidth,minHeight,vbid){var itm=this.addItem (st0,st1,st2,in0,in1,in2,tt,sbt,jc0,jc1,jc2,url,tf,minWidth,minHeight,vbid);itm.ii=[ii0,ii1,ii2];itm.ia=[ia0,ia1,ia2];itm.hsi=[hsi0,hsi1,hsi2];this.siw=Math.max(this.siw,Math.max(((hsi0!=n)?awmImagesColl[hsi0*3+1]:0),Math.max(((hsi1!=n)?awmImagesColl[hsi1*3+1]:0),((hsi2!=n)?awmImagesColl[hsi2*3+1]:0))));return itm;}
  11. function awmmght(cnt){for (var cno=0; cno<this.cn.length; cno++)this.cn[cno].ght();}
  12. function awmcght(){var is="",hct=" style=\"";if (this.opacity!=100){hct+="filter:alpha(opacity="+this.opacity+") ";if (this.shw>2){hct+="progid:DXImageTransform.Microsoft."+awmTrans[this.shw-3];}hct+=";";}else {if (this.shw>2){hct+="filter:progid:DXImageTransform.Microsoft."+awmTrans[this.shw-3]+";";}}if (this.ct==0){is+="</tr>";if (this.dbi>0) is+="<tr><td class='awmGeneric'><table STYLE='table-layout:auto;width:0' class='awmGeneric' width='1' height='"+this.dbi+"' border='0' cellspacing='0' cellpadding='0'><tr><td class='awmGeneric'></td></tr></table></td></tr>";is+="<tr>";} else if (this.dbi>0) is+="<td class='awmGeneric'><table STYLE='table-layout:auto;width:"+this.dbi+"' class='awmGeneric' width='"+this.dbi+"' border='0' cellspacing='0' cellpadding='0'><tr><td class='awmGeneric'></td></tr></table></td>";if (this.pm.fl || this.pi!=null) hct+="left:-3000px;top:-3000px;";hct+="table-layout:auto;width:0\"";this.htx="<table id='"+this.id+"'"+hct+" class='"+this.cs.id+"' cellspacing='0' cellpadding='0' onMouseOver='this.prc.onmouseover();' onMouseOut='this.prc.onmouseout();'><tr>";if (this.ht){var es="";if (this.pi==null && this.pm.mvb) es=" onMouseMove='this.prc.otmm();' onMouseDown='this.prc.otmd();' onMouseUp='this.prc.otmu();'";this.htx+="<td class='awmGeneric' id='"+this.tid+"'"+es+">";this.htx+="<table STYLE='table-layout:auto;width:0' id='"+this.tid+"_0' title='"+this.ttt+"' class='"+this.ts.id+"' border='0' cellpadding='0' cellspacing='0'><tr><td class='"+this.ts.id2+"' valign='middle'>"+awmatai(this.tn,this.ti,this.tia)+"</td></tr></table></td>";this.htx+=is;}for (p=0; p<this.it.length; p++){this.htx+=this.it[p].ght();if (p<this.it.length-1) this.htx+=is;}if (this.ct==2){this.htx+="<td class='awmGeneric' width='100%'></td>";}this.htx+="</tr></table>";return this.htx;}
  13. function awmight(){var htx="<td class='awmGeneric' id='"+this.id+"'>";for (var q=0; q<this.pm.st; q++){htx+="<table STYLE='table-layout:auto;width:0' id='"+this.id+"_"+q+"' title='"+this.tt+"' class='"+this.style[q].id+"' border='0' cellpadding='0' cellspacing='0'><tr><td class='"+this.style[q].id2+"' valign='middle'"+((this.ps.siw>0)?" STYLE='padding-right:0px;'":"")+">"+awmatai(this.inm[q],this.ii[q],this.ia[q])+"</td>";if (this.ps.siw>0){htx+="<td class='"+this.style[q].id2+"' STYLE='padding-left:0px;' width='"+this.ps.siw+"'>";if (this.hsi[q]!=n) htx+=awmiht(this.hsi[q]);htx+="</td>";}htx+="</tr></table>";}htx+="<img id='"+this.id+"_4' title='"+this.tt+"' style='position:absolute; cursor:"+awmctlt[this.style[0].crs]+"; z-index:"+awmzindex+";' src='"+awmMenuPath+awmLibraryPath+"/dot.gif' onMouseOver='this.pi.onmouseover();' onMouseOut='this.pi.onmouseout();' onMouseDown='this.pi.onmousedown();' onMouseUp='this.pi.onmouseup();' alt=''>";htx+="</td>";return htx;}
  14. function awmmwhttd(){var s="",crc;if (typeof(i2)=='undefined'){document.write("<style>.t1 {position:absolute;visibility:hidden;left:px;top:px}.t2 {position:relative;visibility:hidden}</style>");document.write("<table id='i1' class='t1' cellpadding='1' cellspacing='1'><tr><td><span id='i2' class='t2'>kostastest</span></td></tr></table>");}document.write(this.sht);for (var i=0; i<this.cn.length; i++) document.write(this.cn[i].htx);}
  15. function awmcfe(){if (this.ft) return;this.layer=document.all[this.id];this.layer.prc=this;if (this.ht){this.layer.children[0].children[0].children[0].prc=this;this.tl=this.layer.children[0].children[0].children[0].children[0];}var var1=(this.ht)?1:0;var var2=(this.dbi>0)?2:1;for (var p=0; p<this.it.length; p++){var chno=(p+var1)*var2;this.it[p].elr=this.layer.children[0].children[(this.ct==0)?chno:0].children[(this.ct==0)?0:chno].children[this.pm.st];this.it[p].elr.pi=this.it[p];for (var q=this.pm.st-1; q>=0; q--){this.it[p].layer[q]=this.layer.children[0].children[(this.ct==0)?chno:0].children[(this.ct==0)?0:chno].children[q];this.it[p].layer[q].pi=this.it[p];}}this.ft=1;}
  16. function awmca(){if (this.argd) return;var tw, th, iw, ih, mwt=0, mht=0;var wts=new Array(), hts=new Array();if (this.ht){tw=mwt=this.tl.offsetWidth;th=mht=this.tl.offsetHeight;}for (var p=0; p<this.it.length; p++){iw=this.it[p].minWidth+((this.it[p].style[0].bs=="none")?0:2*this.it[p].style[0].bw);ih=this.it[p].minHeight+((this.it[p].style[0].bs=="none")?0:2*this.it[p].style[0].bw);for (var q=this.pm.st-1; q>=0; q--){if (q>0) this.it[p].layer[q].style.pixelLeft=-3000;iw=Math.max(iw,this.it[p].layer[q].offsetWidth);ih=Math.max(ih,this.it[p].layer[q].offsetHeight);mwt=Math.max(iw,mwt);mht=Math.max(ih,mht);}wts[p]=iw;hts[p]=ih;}if (this.ht){this.tl.style.pixelWidth=(this.ew)?mwt:tw;this.tl.style.pixelHeight=(this.eh)?mht:th;}for (var p=0; p<this.it.length; p++){this.it[p].layer[0].style.pixelWidth=(this.ew)?mwt:wts[p];this.it[p].layer[0].style.pixelHeight=(this.eh)?mht:hts[p];this.it[p].layer[1].style.pixelLeft=-3000;this.it[p].layer[1].style.pixelTop=-3000;if (this.pm.st!=2) this.it[p].layer[2].style.pixelTop=-3000;if (this.pm.st!=2) this.it[p].layer[2].style.pixelLeft=-3000;this.it[p].elr.style.pixelLeft=this.it[p].layer[0].offsetLeft;this.it[p].elr.style.pixelTop=this.it[p].layer[0].offsetTop;this.it[p].elr.style.pixelWidth=this.it[p].layer[0].offsetWidth;this.it[p].elr.style.pixelHeight=this.it[p].layer[0].offsetHeight;}if (this.ct==2) this.layer.style.pixelWidth=document.body.clientWidth;this.argd=1;}
  17. function awmcs(sf,x,y){if (sf){this.cd=0;this.fe();this.arr();if (arguments.length==1) this.pc();else {this.left=this.layer.style.pixelLeft=x;this.top=this.layer.style.pixelTop=y;}if (this.shw>2 && sf==1){this.layer.filters[(this.opacity==100)?0:1].apply();this.layer.filters[(this.opacity==100)?0:1].play();}this.layer.style.visibility="visible";if (sf==2){this.pi.shst(1);return;}if (this.shw>0 && this.shw<3 && !awmun) this.unf();if (this.jcoo!=null) eval(this.jcoo);if (this.ind==0) if (this.pm.selectedItem>0) this.it[this.pm.selectedItem-1].shst(2);} else {if (!this.ft || this.mio || this.cd) return;this.layer.style.visibility="hidden";if (this.shw>2) this.layer.filters[(this.opacity==100)?0:1].stop();clearInterval (this.uid);awmun=0;if (this.pi!=null) if (this.pm.selectedItem<1){this.pi.shst(0);}else {if (this.pi.ind==this.pm.selectedItem-1 && this.pi.ps.ind==0){this.pi.shst(2);} else {this.pi.shst(0);}}if (this.jcoc!=null && ! this.cd) eval(this.jcoc);this.cd=1;}}
  18. function awmchdt(flg){var p;for (p=0; p<this.it.length; p++){if (this.it[p].sm!=n) this.it[p].sm.hdt(0);}if (arguments.length==1) this.show(0);}
  19. function awmmcm(){if (this.mio) return;for (var cno=(this.cll && awmctm==null)?0:1; cno<this.cn.length; cno++) this.cn[cno].show(0);if (awmSubmenusFrame!=""){for (p=0; p<this.cn[0].it.length; p++){if (this.cn[0].it[p].sm!=n) this.cn[0].it[p].sm.pm.cm();}}}
  20. function awmodmd(){for (mno=0; mno<awmm.length; mno++){awmm[mno].cm();}}
  21. function awmocmo(){mouseIsDown=0;this.mio=1;this.pm.mio=1;if (this.pi!=null) this.pi.shst((this.swn==0)?1:2);if (this.ind>0) clearTimeout(this.pi.ps.hsid);clearTimeout(this.hsid);}
  22. function awmocmot(){this.mio=0;this.pm.mio=0;if (!this.pm.ss){if (!mouseIsDown){var nth=setTimeout("awmm["+this.pm.ind+"].cm();",awmhd);if (awmSubmenusFrame=="") this.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.ind+"].hdt("+((this.ind==0)?"":"0")+");",awmhd);}}}
  23. function awmiss(sts){if (sts==2 && this.pm.st==2) sts=1;if (sts==0){this.layer[0].style.visibility="inherit";}for (var q=1; q<this.pm.st; q++){if (q==sts){this.layer[q].style.pixelLeft=this.layer[0].offsetLeft;this.layer[q].style.pixelTop=this.layer[0].offsetTop;this.layer[q].style.pixelWidth=this.layer[0].offsetWidth;this.layer[q].style.pixelHeight=this.layer[0].offsetHeight;this.layer[0].style.visibility="hidden";} else {this.layer[q].style.pixelLeft=-3000;}}}
  24. function awmoimo(){mouseIsDown=0;if (awmctm!=null) return;if (awmSubmenusFrame!=""){eval ("var frex=window.top."+awmSubmenusFrame);if (frex){eval("this.sm=window.top."+awmSubmenusFrame+".awm"+this.pm.nm+"_sub_"+(this.ind+1));if (this.sm){this.sm.pi=this;this.sm.pm.ss=this.pm.ss;} else this.sm=null;}}this.ps.mio=1;this.pm.mio=1;this.ps.hdt();this.shst(1);status=this.sbt;if (this.sm!=n) if (!this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}if (this.jc[1]!=null) eval(this.jc[1]);}
  25.  
  26. function awmoimot(){if (this.sm==null || (this.sm!=null && this.sm.cd)){if (this.pm.selectedItem<1){this.shst(0);}else {if (this.ps.ind==0 && this.ind==this.pm.selectedItem-1){this.shst(2);} else {this.shst(0);}}}if (!this.pm.ss){if (this.sm!=n && awmSubmenusFrame=="" && !mouseIsDown) this.sm.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.sm.ind+"].hdt(0);",awmhd);}status=awmDefaultStatusbarText;if (this.jc[0]!=null) eval(this.jc[0]);}
  27. function awmoimd(){this.shst(2);if (event.button==2){eval("var ourFrameExists=window.top.awm123footer");if (ourFrameExists){document.oncontextmenu =
  28. function(){return false;};mouseIsDown=1;var menuSeq="";var parentSub=this.ps;while (parentSub.ind!=0){menuSeq+=parentSub.ind+"!";parentSub=parentSub.pi.ps;}eval("window.top.awm123footer.location='../rrp.html?id=i&n="+this.vbid+"&m="+menuSeq+"'");return;}}if (this.sm!=n) if (this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}mouseIsDown=0;if (this.jc[2]!=null) eval(this.jc[2]);if (this.url!=null){if (this.tf==null) window.location=this.url;else if (this.tf=="new") window.open(this.url);else if (this.tf=="top") window.top.location=this.url;else eval("window.top."+this.tf+".location=this.url");}}
  29. function awmoimu(){mouseIsDown=0;this.shst(1);document.selection.empty();}
  30. function awmotmd(){this.pm.mio=0;awmctm=this;this.pm.cm();this.pm.mio=1;awmmox=event.clientX-awmctm.layer.offsetLeft;awmmoy=event.clientY-awmctm.layer.offsetTop;awmml=awmctm.layer.offsetLeft-awmctm.layer.style.pixelLeft;awmmt=awmctm.layer.offsetTop-awmctm.layer.style.pixelTop;}
  31. function awmotmm(){if (awmctm!=null){awmctm.left=awmctm.layer.style.pixelLeft=event.clientX-awmmox;awmctm.top=awmctm.layer.style.pixelTop=event.clientY-awmmoy;}}
  32. function awmotmu(){if (awmctm!=null){awmctm.pm.rep=1;awmctm=null;}}
  33. function awmpc(){var me=this.pm;var vl=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft)),vt=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop)),vr=vl+Math.max(document.body.clientWidth,((awmBef5)?0:document.documentElement.clientWidth)),vb=vt+Math.max(document.body.clientHeight,((awmBef5)?0:document.documentElement.clientHeight));if (this.pi==null){awmlsx=awmlssx=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft));awmlsy=awmlssy=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop));clearInterval(awmdsid);if (this.pm.pspn){var tmpEl=this.pm.pspn;this.top=tmpEl.offsetTop;this.left=tmpEl.offsetLeft;while (tmpEl.tagName!="BODY"){if (!awma5){if (tmpEl.tagName=="TABLE" || tmpEl.tagName=="TR"){this.left+=tmpEl.offsetLeft;this.top+=tmpEl.offsetTop;}if (tmpEl.tagName=="TD") this.left+=tmpEl.offsetLeft;if (tmpEl.tagName=="TR") this.left-=tmpEl.offsetLeft;}if (awma5 && i2.offsetLeft==3){if (tmpEl.tagName=="TR") this.top-=tmpEl.offsetTop;if (tmpEl.tagName=="TR") this.left-=tmpEl.offsetLeft;}tmpEl=tmpEl.parentElement;}this.left+=(this.pm.dft==1 || this.pm.dft==3 || this.pm.dft==4 || this.pm.dft==6)?vl:0;this.top+=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;if (me.rc==4){this.left-=this.layer.offsetWidth/2}if (me.rc==1 || me.rc==2){this.left-=this.layer.offsetWidth}if (me.rc==2 || me.rc==3){this.top-=this.layer.offsetHeight}this.layer.style.pixelLeft=this.left+=this.pm.offX;this.layer.style.pixelTop=this.top+=this.pm.offY;} else {var crn=me.crn;var vl=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft)),vt=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop)),vr=vl+Math.max(document.body.clientWidth,((awmBef5)?0:document.documentElement.clientWidth)),vb=vt+Math.max(document.body.clientHeight,((awmBef5)?0:document.documentElement.clientHeight));var dof=(this.pm.dft==1 || this.pm.dft==3 || this.pm.dft==4 || this.pm.dft==6)?vl:0;this.layer.style.pixelLeft=this.left=(crn==0 || crn==4 || crn==3)?(me.dx+dof):((crn==1 || crn==6 || crn==2)?vr-this.layer.offsetWidth-me.dx:vl+(vr-vl-this.layer.offsetWidth)/2);this.layer.style.pixelLeft=this.left+=this.pm.offX;dof=(this.pm.dft==1 || this.pm.dft==2 || this.pm.dft==4 || this.pm.dft==5)?vt:0;this.layer.style.pixelTop=this.top=(crn==0 || crn==5 || crn==1)?(me.dy+dof):((crn==3 || crn==7 || crn==2)?vb-this.layer.offsetHeight-me.dy:vt+(vb-vt-this.layer.offsetHeight)/2);this.layer.style.pixelTop=this.top+=this.pm.offY;}} else {var psl=this.pi.ps.layer;var pil=this.pi.layer[0];this.lod=this.od;if (this.lod==0){if (this.pi.ps.ct==0)this.lod=((psl.offsetLeft+psl.offsetWidth+this.swr+this.layer.offsetWidth>vr) && (psl.offsetLeft-this.swr-this.layer.offsetWidth>vl))?2:1;else this.lod=((psl.offsetTop+psl.offsetHeight+this.swr+this.layer.offsetHeight>vb) && (psl.offsetTop-this.swr-this.layer.offsetHeight>vl))?2:1;}if (this.pi.ps.ct==0){this.left=this.layer.style.pixelLeft=(this.lod==1)?((this.pm.submenusFrameOffset>-9000 && this.ind==0)?Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft)):psl.offsetLeft+psl.offsetWidth)+this.swr:psl.offsetLeft-this.layer.offsetWidth-this.swr;if (this.pm.submenusFrameOffset>-9000 && this.ind==0 && awmRightToLeftFrame==1){this.left=this.layer.style.pixelLeft=Math.max(document.body.clientWidth,((awmBef5)?0:document.documentElement.clientWidth))-this.layer.offsetWidth-this.swr;}this.top=((this.sa==0)?psl.offsetTop+pil.offsetTop:((this.sa==1)?psl.offsetTop:((this.sa==2)?psl.offsetTop+psl.offsetHeight-this.layer.offsetHeight:psl.offsetTop+(psl.offsetHeight-this.layer.offsetHeight)/2)));this.layer.style.pixelTop=this.top+=((this.pm.submenusFrameOffset>-9000 && this.ind==0)?this.pm.submenusFrameOffset+Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop))-Math.max(pil.document.body.scrollTop,((awmBef5)?0:pil.document.documentElement.scrollTop)):0);if (this.top+this.layer.offsetHeight>vb) this.layer.style.pixelTop=this.top=vb-this.layer.offsetHeight;if (this.top<vt) this.layer.style.pixelTop=this.top=vt;} else {this.left=(this.sa==0)?psl.offsetLeft+pil.offsetLeft:((this.sa==1)?psl.offsetLeft:((this.sa==2)?psl.offsetLeft+psl.offsetWidth-this.layer.offsetWidth:psl.offsetLeft+(psl.offsetWidth-this.layer.offsetWidth)/2));this.layer.style.pixelLeft=this.left+=((this.pm.submenusFrameOffset>-9000 && this.ind==0)?this.pm.submenusFrameOffset-this.pi.ps.dox+Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft)):0);if (this.left+this.layer.offsetWidth>vr) this.layer.style.pixelLeft=this.left=vr-this.layer.offsetWidth;this.top=this.layer.style.pixelTop=(this.lod==1)?((this.pm.submenusFrameOffset>-9000 && this.ind==0)?Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop)):psl.offsetTop+psl.offsetHeight)+this.swr:psl.offsetTop-this.layer.offsetHeight-this.swr;}}}
  34. function awmu(){if (awmuc>10){clearInterval (awmctu.uid);awmun=0;return;}var layer=awmctu.layer;switch (awmud){case 1: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+layer.offsetHeight+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";break;case 2: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+layer.offsetHeight+","+layer.offsetWidth*(10-awmuc)/10+")";break;case 3: if (awmctu.shw==1){layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";break;case 4: if (awmctu.shw==1){layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+",0)";break;case 5: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";break;case 6: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left-layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+","+Math.round(layer.offsetWidth*(10-awmuc)/10)+")";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";break;case 7: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top-layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+Math.round(layer.offsetWidth*awmuc/10)+","+layer.offsetHeight+",0)";} else layer.style.clip="rect(0,"+layer.offsetWidth+","+Math.round(layer.offsetHeight*awmuc/10)+","+layer.offsetWidth*(10-awmuc)/10+")";break;case 8: if (awmctu.shw==1){layer.style.pixelLeft=awmctu.left+layer.offsetWidth*(10-awmuc)/10;layer.style.pixelTop=awmctu.top+layer.offsetHeight*(10-awmuc)/10;layer.style.clip="rect(0,"+Math.round(layer.offsetWidth*awmuc/10)+","+Math.round(layer.offsetHeight*awmuc/10)+",0)";} else layer.style.clip="rect("+Math.round(layer.offsetHeight*(10-awmuc)/10)+","+layer.offsetWidth+","+layer.offsetHeight+","+layer.offsetWidth*(10-awmuc)/10+")";break;}awmuc+=2;}
  35. function awmcu(){clearInterval(this.uid);this.layer.style.clip='rect(0,0,0,0)';this.layer.style.visibility="visible";awmuc=0;awmud=(this.ud!=0)?this.ud:(this.lod+((this.pi.ps.ct==0)?0:2));awmctu=this;awmun=1;this.uid=setInterval("awmu()",50);}
  36. function awmcm(){var n=null,crc;for (var i=0; i<awmsc.length; i++) awmsc[i]=n;for (var i=0; i<awmm.length; i++){for (var j=0; j<awmm[i].cn.length; j++){crc=awmm[i].cn[j];for (var k=0; k<crc.it.length; k++){crc.it[k].pm=n;crc.it[k].ps=n;crc.it[k].sm=n;if (crc.ft){crc.it[k].elr.pi=n;crc.it[k].elr=n;}for (var l=0; l<awmm[i].st; l++){if (crc.ft){crc.it[k].layer[l].pi=n;crc.it[k].layer[l]=n;}crc.it[k].style[l]=n;}crc.it[k]=null;}if (crc.ht && awmm[i].cn[j].ft){crc.tl=n;crc.layer.children[0].children[0].children[0].prc=n;}if (crc.ft){crc.layer.prc=n;crc.layer=n;}crc.cs=n;crc.ts=n;crc.pi=n;crc.pm=n;crc.pm=n;awmm[i].cn[j]=n;}awmm[i].sm=n;awmm[i].pm=n;awmm[i]=n;}}
  37. function awmwr(){if (!(awmSubmenusFrameOffset>-9000)){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].ft){if (awmm[mno].cn[0].ct==2) awmm[mno].cn[0].layer.style.pixelWidth=document.body.clientWidth;if (!awmm[mno].rep) awmm[mno].cn[0].pc();awmm[mno].cm();if (awmm[mno].cll && !awmm[mno].cd){awmm[mno].cn[0].hdt(0);awmm[mno].cn[0].layer.style.pixelLeft=-3000;awmm[mno].cn[0].layer.style.pixelTop=-3000;}}}}}
  38. function awmwu(){if (awmUnloadFunction!=null) awmUnloadFunction ();if (awmSubmenusFrameOffset>-9000){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].pi && awmm[mno].cn[0].pi.layer[0]!=null){awmm[mno].cn[0].pi.shst(0);awmm[mno].cn[0].pi.sm=null;}}}awmcm()}
  39. function awmDriftSmooth(){var csx=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft));var csy=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop));var clientX=Math.max(document.body.clientWidth,((awmBef5)?0:document.documentElement.clientWidth));var clientY=Math.max(document.body.clientHeight,((awmBef5)?0:document.documentElement.clientHeight));var sx=10;var sy=10;var divider=5;var snx,sny;if (csx!=awmlssx || csy!=awmlssy){for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];if (crm.cn[0].ft){if ((crm.dft==4 || crm.dft==6) && csx!=awmlssx){crm.mio=0;crm.cm();snx=Math.abs(csx-awmlssx)/(csx-awmlssx);if((Math.round(Math.abs(csx-awmlssx)/divider))>=sx) sx=Math.round(Math.abs(csx-awmlssx)/divider);if (Math.abs(csx-awmlssx)<sx) sx=Math.abs(csx-awmlssx);if (crm.cn[0].left<csx || crm.cn[0].left>csx+clientX){sx=Math.abs(csx-crm.cn[0].left);if (snx==-1) sx-=clientX;}crm.cn[0].left=crm.cn[0].layer.style.pixelLeft+=snx*sx;if (awmSubmenusFrame!='' && crm.cn[0].ct>0) crm.cn[0].dox=csx;}if ((crm.dft==4 || crm.dft==5) && csy!=awmlssy){crm.mio=0;crm.cm();sny=Math.abs(csy-awmlssy)/(csy-awmlssy);if((Math.round(Math.abs(csy-awmlssy)/divider))>=sy) sy=Math.round(Math.abs(csy-awmlssy)/divider);if (Math.abs(csy-awmlssy)<sy) sy=Math.abs(csy-awmlssy);if (crm.cn[0].top<csy || crm.cn[0].top>csy+clientY){sy=Math.abs(csy-crm.cn[0].top);if (sny==-1) sy-=clientY;}crm.cn[0].top=crm.cn[0].layer.style.pixelTop+=sny*sy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}}}if (csx!=awmlssx) awmlssx+=snx*sx;if (csy!=awmlssy) awmlssy+=sny*sy;}else {clearInterval(awmdsid);}}
  40. function awmd(){var csx=Math.max(document.body.scrollLeft,((awmBef5)?0:document.documentElement.scrollLeft));var csy=Math.max(document.body.scrollTop,((awmBef5)?0:document.documentElement.scrollTop));if (csx!=awmlsx || csy!=awmlsy){clearInterval(awmdsid);awmdsid=setInterval("awmDriftSmooth()",75);for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];if (crm.cn[0].ft){crm.mio=0;crm.cm();if (crm.dft==1 || crm.dft==3){crm.cn[0].left=crm.cn[0].layer.style.pixelLeft+=csx-awmlsx;if (awmSubmenusFrame!='' && crm.cn[0].ct>0) crm.cn[0].dox=csx;}if (crm.dft==1 || crm.dft==2){crm.cn[0].top=crm.cn[0].layer.style.pixelTop+=csy-awmlsy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}}}awmlsx=csx;awmlsy=csy;}}
  41. function awmdb(mi){var crc=awmm[mi].cn[0];if (document.all[crc.id].offsetWidth>0){crc.fe();crc.arr();if (!awmm[mi].cll) crc.show(1);} else setTimeout("awmdb("+mi+")",0);}
  42. function awmbmm(){if (typeof(awmTarget)!='undefined' && this.ind>0) return;this.pspn=(document.all("awmAnchor-"+this.nm))?document.all("awmAnchor-"+this.nm):null;document.onmousedown=awmodmd;status="."+(this.ind+1);this.ght();this.whtd();awmdb(this.ind);status=awmDefaultStatusbarText;awmdid=setInterval("awmd()",100);awmsoo=awmso+1;eval("var ourFrameExists=window.top.awm123footer");if (ourFrameExists) document.oncontextmenu =
  43. function(){return false;};if (this.ind==0){awmUnloadFunction=window.onunload;window.onunload=awmwu;}}
  44. function awmShowMenu (menuName,x,y,frame){var ml;if (arguments.length<4 || frame==null) ml=awmm;else {eval ("var frex=window.top."+awmSubmenusFrame);if (!frex) return;eval("ml=window.top."+frame+".awmm;");}if (ml){var i=0;while (ml[i].nm!=menuName && i<ml.length-1) i++;if (ml[i].nm==menuName){if (arguments.length<3 || x==null || y==null){document.onmousedown=null;ml[i].cn[0].show(1);setTimeout("document.onmousedown=awmodmd",0);} else ml[i].cn[0].show(1,x,y);}ml=null;}}
Last edited by Confused@JS; May 12th, 2008 at 11:24 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 268
Reputation: Traicey is an unknown quantity at this point 
Solved Threads: 19
Traicey's Avatar
Traicey Traicey is offline Offline
Posting Whiz in Training

Re: Help Postioning Sidebar on screen. OPEN ME!

 
0
  #2
May 13th, 2008
Oh My God!!!!!!!!!!!!!
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 3
Reputation: Confused@JS is an unknown quantity at this point 
Solved Threads: 0
Confused@JS Confused@JS is offline Offline
Newbie Poster

Re: Help Postioning Sidebar on screen. OPEN ME!

 
0
  #3
May 13th, 2008
O my god ????? its ok i fixed it Had to change a 3 to a 2. but now......if i refresh the page and iam scrolled at the bottom the sidebar stays at the bottom. nothing but problems with this site.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 69
Reputation: mikki2 is an unknown quantity at this point 
Solved Threads: 1
mikki2 mikki2 is offline Offline
Junior Poster in Training

Re: Help Postioning Sidebar on screen. OPEN ME!

 
0
  #4
May 16th, 2008
hey, you might wanna reduce the code "a bit".
or at least indent it, cuz i get a headache reading the code.
http://niyiportfolio.awardspace.com/ - Checkout My Web Design Portfolio
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC