PDA

View Full Version : centered dropdown menu



Chadi
02-27-2006, 08:39 PM
<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

Chadi
02-27-2006, 08:40 PM
Attached is the js file as well

Chadi
02-28-2006, 03:43 PM
Can someone please help?

jscheuer1
02-28-2006, 03:58 PM
These things depend upon more than just the script involved. Practically anything can have an effect on how any one thing gets positioned. Best to set up a demo page on the web if you haven't already and:
PLEASE: Include the URL to your problematic webpage that you want help with.