Jump to content


Drop down menu with PHP navigation


3 replies to this topic

#1 mppp

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 03 October 2009 - 08:10 AM

is it possible to use a php navigation with this script...
http://www.dynamicdr...opmenuindex.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.earledavi...hone/tcpv2/site

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 03 October 2009 - 01:56 PM

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.

#3 mppp

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 03 October 2009 - 02:05 PM

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?

#4 mppp

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 04 October 2009 - 06:13 PM

i figured it out :)

http://earledavies.c.../site/index.php
it works and im good to go on the hard coding :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users