Class to create a cascading horizontal/vertival menu
First thanks to Ger Versluis (http://www.burmees.nl/)
and Dynamic Drive Code Library (http://www.dynamicdrive.com)
The JS-Code comes from him. I just use it for the Class.
Short Menu.class.php Description
In the demo.php is a short example.
Requirements: menu_com.js in the local dir
1. Instancing the class
2. Add some MenuItems with
add($Item,$TextToShow,$Link,$BgImage,$NoOfSubs,$Height,$Width);
3. GetHtml() returns the HTML-Code.
4. You can Set/Get many MenuAttributes
Read the Help in hvmenu.zip->config.htm
You can download it from: http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
Todo
This i the first version and so it isnt complete.
Files:
menu.class.php Class
demo.php Example of usage
smarty_demo.php Smarty Example
smarty_demo.tpl Smarty-Tpl
menu_com.js JS-Code
hvmenu.zip JS-CODE by Ger Versluis --> could not upload to phpclasses.org
tri.gif,tridown.gif,trileft.gif Some Gifs :-) --> could not upload to phpclasses.org
|