Forums

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

Home Forums CSS #nav li Selected Menu Navigation Work but don’t change page

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39618
    carlarrj
    Member

    Hello,

    I’m trying to make a menu navigation but now that it’s working it just don’t change the page. When i click the page don’t change but the clicked menu stays selected. What am i doing wrong?

    One more thing how can i say what’s the default menu when the user enters the page? In this case it would be the “home” page.
    // CSS

    #nav li a:hover {
    background:#eaeaea;
    }

    #nav li a.selected {
    background:#eaeaea;
    }

    //JAVASCRIPT

    // HTML + PHP





    Can anyone help me out? Thanks in advance

    #108899
    carlarrj
    Member

    Hi kgscott284, thank you for your answer but i want to have the ability to follow the links. The problem is that with this javascript the pages don’t chage, is there any other way to do it?

    I’ve added the selected to the item, it worked out :)

    #108927
    carlarrj
    Member

    Hi, i’ve put the code and the navigation works properly but it doesn’t follow the links..

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