Weird double post. Found the issue. For some reason declaring the
variable worked. So I changed it to:
var  top = (parseInt($(this).height()) / 2) - 6;

On Sep 24, 7:31 am, Shane Riley <shanerileydoti...@gmail.com> wrote:
> I've got a simple each function that finds every subnav and assigns it
> a vertical position equal to half of the subnav's height. This works
> great in all modern browsers, but in IE6 I get errors from each of the
> two lines within the function. Here's the problem function:
>
> $(".subnav").each(function(i)
>         {
>                 top = (parseInt($(this).height()) / 2) - 6;
>                 $(this).css("top", ("-" + top + "px"));
>         });
>
> When I view the page in IE6, I get an error saying "Not implemented".
> If I comment out the line setting the top variable, I get an error
> saying "Invalid argument". Initially I was thinking the problem was in
> setting the CSS property for top, but now it seems something else is
> up.

Reply via email to