PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of sandosh   iH2H Menu   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Intro with example
Class: iH2H Menu
Generate dynamic DHTML 2 level pull down menus
Author: By
Last change: Fixed a bug in IE
Date: 18 years ago
Size: 2,745 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PHP DHTML Dynamic Menu</title>
<style type="text/css">
border: 1px solid #333333;
$menu = new iH2HMenu;
<a href=""><img src="" width="246" height="49" border="0"></a>

//Set Main link
//Set Main link with sublink
$menu->setMainLink('other sites');
$menu->setSubLink('other sites','Web Designing','');
$menu->setSubLink('other sites','H2Hmail','');
//Set Main link
$menu->setMainLink('php classes','');
//Set Main link with sublink
$menu->setSubLink('Google','Google Search Engine','');
?><div style="width:80%; padding:0 0 0 15px;">
<div style="height:30px; background-color:#D9E3EB; width:100%; border: solid 1px #A2B9CE; ">
If you do not have the class file <a href=""><strong>click here to download</strong></a><br>
This PHP class can be used to generate dynamic DHTML horizontal menus. The implementation is very simiple and can be modified with ease.<br>
It uses CSS for easy deployment.<br>
    //Include the class file

    //Instantiate the class<br> $menu = new iH2HMenu;

    //Files which define the class and javascript<br> $menu-&gt;files(&quot;style.css&quot;,&quot;js.js&quot;);

    //Set Main link<br> $menu-&gt;setMainLink('Home','');<br> <br> //Set Main link with sublink<br> $menu-&gt;setMainLink('other sites');<br> $menu-&gt;setSubLink('other sites','iH2H','');<br> $menu-&gt;setSubLink('other sites','H2Hmail','');<br> <br> //Set Main link<br> $menu-&gt;setMainLink('php classes','');

    //Generate the layers

    //Generate the menu

  Please do not hesitate to contact me for comments, suggestions or any doubts<br>
  Sandosh Kumar VR</strong><br><br>
  <a href=""></a></p>