Adding Navbar to “Sidebar.php”
-
Hello.
I’m fairly comfortable with creating HTML pages, but CSS and PHP are both new concepts to me. I’m seriously feeling out of my depth at the moment, so I’m throwing myself on the mercy of this good community. (At this point I’m not even sure if I can do what I’m trying to do.)
Although the solution to my problem may be convoluted, my goal is straightforward enough: I want to add a graphic navigation bar with rollover interactivity to the sidebar of the WordPress page I’m working on.
My Approach:
I’ve added an HTML table to the “sidebar.php” page of my WP site, which uses the usual “onmouseover” swap for a different GIF image for the nav button. I’ve added the javascript function for the image swap and the preloadImages function to my “header.php” page. Currently, the “normal” state of the buttons on my navbar is loading properly, but I can’t get my rollover images to work.Q: Is javascript able to function if it’s spread out through PHP like this?
Any and all help, guidance and direction are greatly appreciated!
- The topic ‘Adding Navbar to “Sidebar.php”’ is closed to new replies.