...

View Full Version : menu offset problem



pwsparrow
07-06-2005, 06:54 PM
Hi, i have a problem. I have 4 different sliding menus, located on top of eachother. Once the mouse enters a box, it tabs out, and once it leaves, it returns to its origional state. The problem is that I don't know how to subtract height from the offset margin. For example, the 2nd menu bar is tabbing out when the mouse enters the 1st bar, because it's height is set at 150px.

what i have tried to do is something like this so that there would be 100px of nothing starting from the top of the frame...


top:'+((parseInt(slidemenu_top)-100px)+'px;

Is this the incorrect way of doint this?

Please let me know.

vwphillips
07-06-2005, 08:11 PM
top:'+((parseInt(slidemenu_top)-100px)+'px;

difficult to answer without knowing what 'top:' and 'slidemenu_top' are

if slidemenu_top' is say '200px' then parse float is appropiate


if it is 200(digits) parse float is not reqd

the +'px; should be +'px';

I would not like to guess what top:' is but as it is a string? there will be a problem adding it to a number

pwsparrow
07-06-2005, 08:38 PM
var slidemenu_width='175px'
var slidemenu_reveal='32px'
var slidemenu_top='125px'

this is an example of the 2nd bar down.

the 1st bar has var slidemenu_top='0px'



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum