The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery nav animate!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #31264
    Attila Hajzer

    How come this doesn’t work!!


    In the demo code given there is no CSS. If the ‘a’ element does not have ‘position: relative’ it cannot move.

    Also when you mouse over the element you then end up targeting ALL ‘a’ elements. For mouseout you may want to chain events.

    This code *might* work (providing that ‘a’ elements are relatively positioned):

    $("#nav ul li a").mouseover(function(){

    You may be able to achieve this better in CSS alone too. Just a thought!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.