Click here to Skip to main content
Licence 
First Posted 25 Jul 2006
Views 51,586
Downloads 370
Bookmarked 48 times

A well look HTML menu using XML and XSLT

By | 25 Jul 2006 | Article
A well look HTML menu using XML and XSLT

Sample Image - htmlmenu_using_xml.jpg

Introduction

Recently, I wrote an HTML menu using XML and XSLT. It uses IE "CreatePopup". The whole XSL file is less than 10k.

Usage

Just create an XML described in the sample code. I think it's simple and easy to understand. Just try it.

The following is a description of CreatePopup.

The last type of special Window Form supported by Microsoft is a generic form of pop-up Window. Creating a pop-up is very simple—just use the Window.createPopup(), which takes no arguments and returns a handle to the newly created Window.

var myPopup = window.createPopup();

These Windows are initially created, but are hidden. They are later revealed using the pop-up object's show() method and hidden using hide() as shown below:

myPopup.show(); // displays created popup
myPopup.hide(); // hides the popup

The value of Microsoft's special pop-ups may not be obvious until you consider that you have complete control over their appearance, allowing you to even remove the chrome of the displayed Window. The authors do not encourage chromeless Windows at all, despite the rise of various JavaScript libraries allowing developers to create customized GUI systems. The usability downsides of having unique Windows, scrollbars, and other GUI widgets for your site far outweigh the visual value of these widgets—use with caution.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Neeker007

Product Manager

China China

Member

Neeker
Beijing

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questiondid you tested it on IE8? PinmemberAlessandro22:26 3 Dec '09  
AnswerRe: did you tested it on IE8? PinmemberNeeker00714:23 6 Dec '09  
QuestionVery good stuff Pinmemberelinlee23:07 10 Aug '08  
AnswerRe: Very good stuff PinmemberNeeker0071:14 12 Aug '08  
GeneralVery Cool Pinmemberbalamasti10:52 28 May '08  
QuestionHow to use it Pinmembermrkashifali0:36 19 Jan '07  
AnswerRe: How to use it PinmemberNeeker00716:30 22 Jan '07  
GeneralGreat menus!!! but causes right click to be diabled PinmemberMCofer12:08 8 Jan '07  
GeneralRe: Great menus!!! but causes right click to be diabled PinmemberMCofer12:45 8 Jan '07  
GeneralRe: Great menus!!! but causes right click to be diabled PinmemberNeeker00721:57 8 Jan '07  
GeneralThank you Pinmemberwas83099:22 14 Aug '06  
GeneralRe: Thank you PinmemberNeeker00716:24 14 Aug '06  
GeneralRe: Thank you Pinmemberwas830914:34 27 Dec '06  
GeneralUsing the stylesheet in dot NET Pinmemberchris rumel5:04 7 Aug '06  
GeneralRe: Using the stylesheet in dot NET [modified] PinmemberNeeker00716:21 14 Aug '06  
Generalvery nice PinmemberTaha Zayed8:47 29 Jul '06  
GeneralProblem with Firefox Pinmembertrne6:39 26 Jul '06  
AnswerRe: Problem with Firefox PinmemberNeeker00716:09 26 Jul '06  
GeneralRe: It's designed to use in enterprise environment PinmemberNeeker00716:13 26 Jul '06  
GeneralRe: It's designed to use in enterprise environment PinmemberLouisa Chen19:14 7 Aug '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 26 Jul 2006
Article Copyright 2006 by Neeker007
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid