Copy link to clipboard
Copied
is there an easy way to use PHP to design a drop-down navigation bar or does anyone have some simple code i could use with some simple explanation that I could use and learn from. I can design a navigation bar using simple links but that will only get you so far. I'm going to be doing a web site for artist in recovery that will have 7 to 10 display cities with numerous artists and sponsors in each city. So a drop-down menu would work and look much better than using simple links. One further thing, all my pages including my index page are PHP pages.
Thank you
Allen D. Macfalda
Copy link to clipboard
Copied
Allen,
The best way to accomplish this (easily) is using jQuery. I have a test site: http://www.xoverr.net/testsite/site1/index.php that uses a simple jQuery dropdown menu that is easily styled. Click the 'Contact' link at the bottom of the page to email me is you want additional help with this. There is also a link on the page to the blog hosted by the developer of the jQuery plugin that is the menu. If you have yet to dabble with jQuery, you should check it out. The amount of plugins available are amazing and this can dramatically enhance the look and flow of your site with relative ease.
Hope this helps!
Sincerely,
wordman
Copy link to clipboard
Copied
Does jquery work on PHP pages? I tried a widget but that was written in JavaScript and would not work in PHP. I looked at the site you suggested and left a message asking for compatibility with PHP.
Copy link to clipboard
Copied
Allen Macfalda wrote:
Does jquery work on PHP pages? I tried a widget but that was written in JavaScript and would not work in PHP. I looked at the site you suggested and left a message asking for compatibility with PHP.
Allen, there is no reason JQuery/Javascript wouldn't work on a PHP page. The only difference with a PHP page is that you can include the tags <?php ?> so that you can process PHP on the page. Do you have an example of the PHP page that wasn't working with the widget?
Also another recommendation I would have if you are open to commercial solutions is Project Seven ( http://projectseven.com/ ). Their Pop Menu Magic extension for DW is excellent, the code is top notch and guaranteed to work on mobile operating systems like iOS. Plus they support their products so if you run into any issues you can just post on their forums, email or phone support.
Copy link to clipboard
Copied
What about using the DW built in Spry Menu? It's just another option. All of these solutions basically work the same way - Spry, Jqueary based, and commercial products such as Project VII or CSS menu writer from Web Assist, and whatever DMXzone offers. They use CSS for styling, JavaScript for functionality and links are bases on UL and li tags either on the page or within an include. The differences extend to price on commercial products, ease of use and configuration, certain functionality (such as controlling the animation of the drop down) and subjective preference.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more