PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Losev-Pahotin Ruslan  >  YahooUI-Menu  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample
Class: YahooUI-Menu
Generate a menu from MySQL database data using YUI
Author: By
Last change:
Date: 8 years ago
Size: 1,466 bytes


Class file image Download
            <TITLE>Website Top Nav With Submenus Built From Markup (YUI Library) from MySQL base</TITLE>
<LINK href="reset-fonts-grids.css" type=text/css rel=stylesheet>
<LINK href="menu.css" type=text/css rel=stylesheet>
<SCRIPT src="yahoo-dom-event.js" type=text/javascript></SCRIPT>
<SCRIPT src="container_core.js" type=text/javascript></SCRIPT>
<SCRIPT src="menu.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>

            // Initialize and render the menu bar when it is available in the DOM

            YAHOO.util.Event.onContentReady("productsandservices", function () {

                // Instantiate and render the menu bar

                var oMenuBar = new YAHOO.widget.MenuBar("productsandservices", { autosubmenudisplay: true, hidedelay: 750, lazyload: true });

                     Call the "render" method with no arguments since the markup for
                     this menu already exists in the DOM.



include ('');
$newClass = new menu(); // Создаем экземпляр класса
$newClass ->setConnect($host,$user,$pass,$bd);
<DIV class="yuimenubar yuimenubarnav" id=productsandservices>
<DIV class=bd>
<UL class=first-of-type>
echo $newClass->ShowTree(0,0,ru);