how to create menu

Discussion in 'JavaScript' started by jiah, Mar 19, 2013.

?

how to create menu in javascript

Poll closed Mar 26, 2013.
  1. 11

    100.0%
  2. 111

    0 vote(s)
    0.0%
  3. 1111

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. #1
    i want to create menu in asp.net using java script.how is it possible.
     
    Solved! View solution.
    jiah, Mar 19, 2013 IP
  2. #2
    Why would you use javascript for a menu? Unless you are talking a .htc for IE6/lower, uhm... That's CSS' job.

    Do you have an example of what you want IN the menu?!? Kinda hard to code you a menu without knowing what's going in it... Well, not for the HTML... The html should just be something like:

    <ul id="menu">
    	<li><a href="/">Home</a></li>
    	<li>
    		<a href="/categories">Categories</a>
    		<ul>
    			<li><a href="/cars">Cars</a></li>
    			<li><a href="/music">Music</a></li>
    			<li><a href="/sports">Sports</a></li>
    		</ul>
    	</li>
    	<li><a href="/links">Links</li>
    	<li><a href="/contactUs">Contact Us</li>
    </ul>
    Code (markup):
    (assuming you want a drop-down/fly-out menu since that's the only reason you'd be asking for scripting in the first place)...

    As to how to make it drop-down/fly-out, the question becomes how do you want it styled and what direction?

    You're really not giving us enough to provide that.

    Though this assumes you want to build a website -- mentioning ASP.NET isn't exactly encouraging on that front given how badly it mangles HTML and pisses all over websites unless you give it a good swift kick in the crotch and micromanage the code.
     
    deathshadow, Mar 19, 2013 IP
  3. VideoWhisper.com

    VideoWhisper.com Well-Known Member

    Messages:
    330
    Likes Received:
    6
    Best Answers:
    2
    Trophy Points:
    113
    Digital Goods:
    2
    #3
    All scripts including ASP generate pages by outputing HTML. So you can include JavaScript as you wish.

    There are various JS menus you can implement:
    http://www.queness.com/post/237/30-javascript-menu-plugins-and-scripts
    http://sixrevisions.com/javascript/20-excellent-javascript-navigation-techniques-and-examples/
     
    VideoWhisper.com, Mar 19, 2013 IP
  4. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #4
    may be this url will help you http://www.devx.com/dotnet/Article/29188
     
    creativewebmaster, Mar 22, 2013 IP
  5. Irfi0009

    Irfi0009 Banned

    Messages:
    17,584
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    48
    #5
    i think you need perfashional devolper
     
    Irfi0009, Apr 9, 2013 IP