Posts by Caio Costa • 21 points
2 posts
-
2
votes4
answers1768
viewsA: Create infinite menu with PHP+CSS+JS
The problem is in Javascript. You need to run the same function for all navigation elements, not just for the parent and their direct descendants. // Evento de clique do elemento: ul#menu li > a…
-
0
votes4
answers601
viewsA: Internal navigation with Jquery
Remember that jQuery code should run only after the page has finished loading the DOM, which is the element tree of the document. With this you don’t need to force the browser to scroll to the…