Home
Drive Image Backup Software
Disk Imaging utility for Windows
and DOS. Free 30 day trial!
Sponsored link: from ALWIL Software: avast! BART CD 2.0
HOME dot BOOTCD dot SCSI dot UTILITIES dot BOOT DISK dot MULTIMEDIA dot LINKS dot HOWTO'S dot OTHER dot ABOUT dot FORUM

Print Sponsor Nu2 Search Nu2 About Henk Support Henk Contact Henk



NU2 XML Menu - Example 2

Page contents

TipNU2 TIP: Click here to Fix Windows Errors & Optimize Windows Performance



» Minimal HTML file for implementing NU XML Menu
» File nu2menu.xml
» Node explanation
» Example

 Minimal HTML file for implementing NU XML Menu


<html>
<head>
<title>NU2 XML Menu - Example</title>

<script language="javascript" src="../include/jctsobj_c.asp"></script>
<!-- Include file: Base NU2 XML Menu system -->
<script language="javascript" src="../include/jnu2xmlmenu_c.asp"></script>

<!-- Include style sheet -->
<link rel=stylesheet href="../xmlmenu.css" type="text/css">
</head>
<body>

<xml id=nu2MenuSys src="nu2menu.xml"></xml>

</body>
</html>	

 File nu2menu.xml



<?xml version="1.0"?>

<NU2MENUSYSTEM>
	
	<!-- Horizontal menu -->
	
	<NU2MENU ID="Nu2MenuSystem001"
	   	AUTHOR="Henk de Jong"
	   	DATE="2001-08-22, 15:35"
	   	COPYRIGHT="(c)2001 Nu2 Productions"
	   	TOP="80" LEFT="10">
	
		<MENU ID="mainmenu" NODE="parent" VIEW="horizontal">	   		
			<MITEM URL="http://www.nu2.nu/">NU2 News</MITEM>
			<MITEM SHOWMENU="boot_cd">Boot CD</MITEM>
			<MITEM SHOWMENU="scsi">SCSI</MITEM>
			<MITEM SHOWMENU="develop">Develop</MITEM>
		</MENU>
		   
		<MENU ID="boot_cd" NODE="child">
			<MITEM URL="http://www.nu2.nu/bootcd/index.php">Create bootable CD-ROM's</MITEM>
	  		<MITEM URL="http://www.nu2.nu/bootcd/getbootimage/index.php">Extract boot image from bootable CD</MITEM>	
	   		<MITEM URL="http://www.nu2.nu/diskemu/index.php">CD-ROM Disk Emulator</MITEM>
	   		<MITEM URL="http://www.nu2.nu/bootdisk/">CDBOOT bootdisk</MITEM>
		</MENU>
		   
		<MENU ID="scsi" NODE="child">
			<MITEM URL="http://www.nu2.nu/scsitool/index.php">SCSI Tool</MITEM>
	  		<MITEM URL="http://www.nu2.nu/scsitool/">Bart's SCSI Tool boot disk</MITEM>	
	   		<MITEM URL="http://www.nu2.nu/diskemu/">CD-ROM Disk Emulator</MITEM>
	   		<MITEM URL="http://www.nu2.nu/bootdisk/cdboot/">CDBOOT bootdisk</MITEM>
		</MENU>
	
		<MENU ID="develop" NODE="child">
			<MITEM SHOWMENU="xmlexamples">XML NU2 Menu</MITEM>
	  		<MITEM URL="#">Empty</MITEM>	
	  		<MITEM SHOWMENU="emptymenu">Empty</MITEM>	
		</MENU>

		<MENU ID="xmlexamples" NODE="child">
			<MITEM URL="http://www.nu2.nu/xmlmenu/example1/nu2menu.html">Example 1</MITEM>
			<MITEM URL="http://www.nu2.nu/xmlmenu/example2/nu2menu.html">Example 2</MITEM>
			<MITEM URL="http://www.nu2.nu/xmlmenu/example1/nu2menu.html">Example 1</MITEM>
			<MITEM URL="http://www.nu2.nu/xmlmenu/example2/nu2menu.html">Example 2</MITEM>
		</MENU>

		<MENU ID="emptymenu" NODE="child">
			<MITEM URL="#">Empty</MITEM>
			<MITEM URL="#">Empty</MITEM>
		</MENU>
		
	</NU2MENU>

	<!-- Vertical menu -->
	
	<NU2MENU ID="Nu2MenuSystem002"
   		AUTHOR="Henk de Jong"
   		DATE="2001-09-18, 15:50"
   		COPYRIGHT="(c)2001 Nu2 Productions"
   		TOP="150" LEFT="10">
   		
   		<MENU ID="mainmenu2" NODE="parent" VIEW="vertical">
   			<MITEM SHOWMENU="news_sub2">News 2</MITEM>
   			<MITEM URL="scsi.php">SCSI 2</MITEM>
   			<MITEM URL="cdboot.php">CD Boot 2</MITEM>
   		</MENU>
   
   		<MENU ID="news_sub2" NODE="child">			
   			<MITEM SHOWMENU="news_archive2">Archive 2</MITEM>
   			<MITEM URL="http://www.nu2.nu/">Latest News 2</MITEM>   		
   		</MENU>
   
   		<MENU ID="news_archive2" NODE="child">
   			<MITEM URL="/jan.php">Jan</MITEM>
   			<MITEM URL="/feb.php">Feb</MITEM>
   		</MENU>		
	
	</NU2MENU>

</NU2MENUSYSTEM>	

 Node explanation


Node: NU2MENU
ID (string) : unique id
TOP (numeric string) : top position of main menu
LEFT (numeric string) : left position of main menu
Node: MENU
ID (string) : unique id
NODE (string) : parent -> main menu
child -> sub menu
VIEW (string) : horizontal / vertical
Note: only the main menu can be horizontal or vertical,
all sub menus are vertical!!
Node: MITEM
SHOWMENU (string) : id of menu to show by onmouse over
URL (string) : web page to open

 Example


Show example 2


Use information from this site elsewhere? Check our legal information page!
Legal information - [2012-05-16]

Copyright (c) 2000-2012 by Henk de Jong. All rights reserved.