for fear of offending you further, i apologise in advance for posting
code. personally i'd be tempted to call 'test1(this)' on the mouseover
and mouseout events and have it do something like...

function test1(t) {
                var c = $(t).css('background-color')
                var o = '1'
                if ( !$(t).hasClass('nav-active') )
                        o = '.2'
                $('.nav-active').removeClass('nav-active')

                $(t).addClass('nav-active')
                        .siblings()
                        .stop()
                        .fadeTo('slow', o);

                $('#navigation').stop()
                        .animate({ backgroundColor: c }, 500);
}

this is literally back-of-fagpacket code, so clearly it could be
improved and/or tested. assigning a class just to track the opacity
state probably isn't the greatest idea ever but it does mean you have
easy access to the currently selected menu item.



On Sep 20, 11:25 am, "ryan.j" <ryan.joyce...@googlemail.com> wrote:
> i wasn't being snarky mate, just that you phrased your question like a
> homework assignment!
>
> besides, i thought i /was/ answering your question tbh :S
>
> On Sep 20, 3:14 am, alienfactory <alienfacto...@gmail.com> wrote:
>
> > wow really! not sure what to say about that.
>
> > Here is a development link to the actual 
> > projecthttp://alienfactory.com/vision1/
> > if any one would like to help out on the javascript jquery question
> > above
>
> > Thanks in advance for any help

Reply via email to