Unstoppable Domains

Drop down not centered

Spaceship Spaceship
Watch

virtuoso

Established Member
Impact
0
Code:
					<script language="JavaScript">
<!--
var menuConfig = [
{
	'height':  25,
	'width' : 126,
	'firstX' : 410,
	'firstY' : 75,
	'nextX' : 1,
	'hideAfter' : 200,
	'css'   : 'gurtl0o',
	'trace' : true
},
{
	'height':  23,
	'width' : 126,
	'firstY' : 25,
	'firstX' :  0,
	'nextY' : -1,
	'css' : 'gurtl1o'
},
{
	'firstX' : 126,
	'firstY' : 0
}
];

new menu (menuHierarchy, menuConfig);
//-->
</script>

First time working on JS menu. How do I center this inside the table cell I want? In preview it shows up cornered left align

Please see attached menu.js file also

Code:
// Product title: Gurt JavaScript Menu
// Product version details: 1.0.1, 01-10-2006 (mm-dd-yyyy) [compressed version]
// Product URL: http://gurtom.com/products/menus/js
// Contact info: [email protected] (specify product title in subject line)
// Notes: This script is free. Feel free to copy, use and change this script as 
// long as this head part remains unchanged. Visit official site for details.
// Copyright: (c) 2006 by Gurtom.Com

var _m0J=[],_m0Q=window.external?' style="width:100%;height:100%"':'';function menu(_m01,_m0N){var _=this,i;_._m01=_m01;_._m0N=_m0N;_._m0R='';_.id=_m0J.length;_._m00=[];_._m02=[];_._m03=[0,0];_._m0N[-1]={'firstX':20,'firstY':20,'nextX':15,'nextY':15,'width':175,'height':22,'hideAfter':200,'_m05':0,'css':''};for(i=0;i<_._m01.length;i++)if(_._m01[i])new _m0F(0,_,_,_._m01[i]);for(i=0;i<_._m02.length;i++)_m0B(_._m02[i],1);_m0J[_.id]=_;}function _m0E(_m0D){var i,a=_m0J[_m0D]._m00;for(i=0;i<a.length;i++){_m0B(a[i],0);_m0C(a[i],'norm');}}function _m0G(_m0D,_m08){var _=_m0J[_m0D]._m00[_m08]._m01[1];_m0C(_m0J[_m0D]._m00[_m08],'clck');if(_)document.location=_;}function _m0H(_m0D,_m08){var m=_m0J[_m0D];m._m0K=setTimeout('_m0E('+_m0D+')',_m0A(m._m0M._m07,m._m0N,'hideAfter'));if(m._m0M.id==_m08)m._m0M=null;}function _m0I(_m0D,_m08){var m=_m0J[_m0D],_,_m06,i;m._m0M=_=m._m00[_m08];if(m._m0K)clearTimeout(m._m0K);for(i=0;i<m._m00.length;i++){_=m._m00[i];_m06=!m._m0M._m0R.indexOf(_._m0S);if(_m06)_m0C(_,_==m._m0M?'over':'norm');_m0B(_,_m06);}if(m._m0M._m05)for(i=m._m0M;i&&i._m04;i=i._m0O)_m0C(i,'over');}function _m0F(l,p,m,_m01){var _=this,i,c=p._m02.length,_m0N=m._m0N;_._m01=_m01;_._m0O=p;_._m0S=p._m0R;_._m0R=p._m0R+c+':';_._m07=l;_.id=m._m00.length;m._m00[_.id]=_;p._m02[c]=_;var id=m.id+','+_.id,nX,nY;_._m05=_m0A(l,_m0N,'_m05');for(i=l;i>=-1;i--){if(_m0N[i]&&_m0N[i]['nextX']!=null)nX=_m0N[i]['nextX'];if(_m0N[i]&&_m0N[i]['nextY']!=null)nY=_m0N[i]['nextY'];if(nX!=null||nY!=null)break;}_._m03=[p._m03[0]+_m0A(l,_m0N,'firstX')+(nX!=null?nX*c+_m0A(l,_m0N,'width')*c:0),p._m03[1]+_m0A(l,_m0N,'firstY')+(nY!=null?nY*c+_m0A(l,_m0N,'height')*c:0)];document.write('<a href="javascript:_m0G(',id,')" id="me',id,'" style="position:absolute;top:',_._m03[1],'px;left:',_._m03[0],'px;width:',_m0A(l,_m0N,'width'),'px;height:',_m0A(l,_m0N,'height'),'px;visibility:hidden;z-index:',l,';text-decoration:none" onmouseout="_m0H(',id,')" onmouseover="_m0I(',id,')"><div',_m0Q,' id="mi',id,'" class="',_m0A(l,_m0N,'css'),'norm">',_m01[0],'</div></a>');_._m04=[document.getElementById('me'+m.id+','+_.id),document.getElementById('mi'+m.id+','+_.id),_m0A(l,_m0N,'css')];if(_m01.length>2){_._m02=[];for(i=2;i<_m01.length;i++)if(_m01[i])new _m0F(l+1,_,m,_m01[i]);}}function _m0B(_,_m09){if(_._m0P==_m09)return;_._m0P=_m09;if(_m09)_._m04[0].style.visibility='visible';else if(_._m07)_._m04[0].style.visibility='hidden';}function _m0C(_,_m0L){if(_._m04[3]==_m0L)return;_._m04[3]=_m0L;_._m04[1].className=_._m04[2]+_m0L}function _m0A(l,_m0N,k){for(var i=l;i>=-1;i--)if(_m0N[i]&&_m0N[i][k]!=null)return _m0N[i][k];}
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
did u attach the correct alignment attributes to the TD?

such as align="center" valign="center"
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back