Help - Search - Members - Calendar
Full Version: Drop down menu with PHP navigation
Pixel2Life Forum > Help Section > PHP, ASP, MySQL, JavaScript and other Web/Database Programming Help
mppp
is it possible to use a php navigation with this script...
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

i have the menu set up on my website, but when i try to put the PHP function where the link is supposed to go in the .js file, i get coding errors.
http://www.earledavies.com/iPhone/tcpv2/site



Hayden
You could use a combination of PHP and Javascript.

Use a separate PHP script to get menu options and export them out to JSON then use Javascript to get the JSON data and create the elements.

Seems a bit much for a navigation menu though. You can do like Google does on their main page, the "more" option, use CSS to hide/display the menu.
mppp
Yeah, that sounds a bit complicated, and what I originally wanted to do was to use a DHTML tab menu and have a sub navigation but it was frustrating me after trying to figure it out for 2 days.

What other options do I have for a unique navigation?
mppp
i figured it out smile.gif

http://earledavies.com/iPhone/tcpv2/site/index.php
it works and im good to go on the hard coding smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.