Jump to content


Photo

Making Expanding and Collapsing Menus


  • Please log in to reply
2 replies to this topic

#1 proctk

proctk
  • Members
  • PipPipPip
  • Advanced Member
  • 300 posts

Posted 24 April 2006 - 03:42 AM

HI I have been searching the web for an easy to follow tutorial to create and Expanding and Collapsing Menu bar(horizontal). The post popular search result is the tutorial posted on phpfreaks, my php skills are limited and I find this tutorila hard to follow.

anything is a great start thank you

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 24 April 2006 - 08:43 AM

To do what you want to do it doesnt require any PHP coding at all. All you need to do is create a smple javascript function which you call it with the onClick attribute when some one clicks a link/image/button or what ever which hides your menu.

have a loot at [a href=\"http://www.phpfreaks.com/forums/index.php?s=&showtopic=90723&view=findpost&p=363935\" target=\"_blank\"]my post here[/a] to see what the javascript code looks like, just 5 lines of code!

#3 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 25 April 2006 - 03:30 PM

You may also want to look at implementing dropdown menus via CSS. You can start a this web page: [a href=\"http://www.htmldog.com/articles/suckerfish/dropdowns/\" target=\"_blank\"]Son of Suckerfish Dropdowns[/a]

Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users