• We just launched and are currently in beta. Join us as we build and grow the community.

How To Make Simple SideBar Menu Using HTML JavaScript

Chingchongbiglong

Ethical Hacking Trainer
C Rep
0
0
0
Rep
0
C Vouches
0
0
0
Vouches
0
Posts
107
Likes
185
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 200 XP
This sidebar menu not only handles your every menu that you have, with the help of CSS animation techniques you can absolutely arrange it, or you can combined it. Compress your sidebar menu with the flat designed that we have.

If you have a lot of menus in your site, you can use this sidebar menu to minimize it all. In this work, it's only one sub-menu but you can customize it. You can make it more than one sub-menu. It depends on you on how you work this. You can easily to understand and learn from this project.

Direction:

First: Kindly copy the following code below to the HEAD section of your page.

  1. <meta

    charset

    =

    'utf-8'

    >
  2. <meta

    http-equiv

    =

    "X-UA-Compatible"

    content

    =

    "IE=edge"

    >
  3. <meta

    name

    =

    "viewport"

    content

    =

    "width=device-width, initial-scale=1"

    >
  4. <link

    rel

    =

    "stylesheet"

    href

    =

    "css/styles.css"

    >
  5. <script

    src

    =

    "js/code.js"

    type

    =

    "text/javascript"

    ></

    script

    >
  6. <script

    src

    =

    "js/script.js"

    ></

    script

    >
  7. <title

    >

    SideBar Menu</

    title

    >

*Just DOWNLOAD the source code for the external files. ( Kindly click below the "Download Code" )
Second: Add the code below to your BODY section of the page.

  1. <div

    id

    =

    'cssmenu'

    >
  2. <ul

    >
  3. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/'

    ><span

    >

    Home</

    span

    ></

    a

    ></

    li

    >
  4. <li

    class

    =

    'active has-sub'

    ><a

    href

    =

    '#'

    ><span

    >

    Programming</

    span

    ></

    a

    >
  5. <ul

    >
  6. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/visual-basic'

    ><span

    >

    Visual Basic</

    span

    ></

    a

    ></

    li

    >
  7. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/visual-basic-net'

    ><span

    >

    Visual Basic .NET</

    span

    ></

    a

    ></

    li

    >
  8. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/asp'

    ><span

    >

    ASP/ASP .NET</

    span

    ></

    a

    ></

    li

    >
  9. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/c-sharp'

    ><span

    >

    C#</

    span

    ></

    a

    ></

    li

    >
  10. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/cpp'

    ><span

    >

    C/C++</

    span

    ></

    a

    ></

    li

    >
  11. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/delphi'

    ><span

    >

    Delphi</

    span

    ></

    a

    ></

    li

    >
  12. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/java'

    ><span

    >

    Java</

    span

    ></

    a

    ></

    li

    >
  13. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/javascript'

    ><span

    >

    JavaScript</

    span

    ></

    a

    ></

    li

    >
  14. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/microsoft-access'

    ><span

    >

    Microsoft Access</

    span

    ></

    a

    ></

    li

    >
  15. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/php'

    ><span

    >

    PHP</

    span

    ></

    a

    ></

    li

    >
  16. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/sql'

    ><span

    >

    SQL</

    span

    ></

    a

    ></

    li

    >
  17. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/foxpro'

    ><span

    >

    Visual FoxPro</

    span

    ></

    a

    ></

    li

    >
  18. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/html'

    ><span

    >

    HTML/CSS</

    span

    ></

    a

    ></

    li

    >
  19. </

    ul

    >
  20. </

    li

    >
  21. <li

    class

    =

    'last'

    ><a

    href

    =

    'http://www.sourcecodester.com/contact'

    ><span

    >

    Contact</

    span

    ></

    a

    ></

    li

    >
  22. <li

    class

    =

    'active has-sub'

    ><a

    href

    =

    '#'

    ><span

    >

    Others</

    span

    ></

    a

    >
  23. <ul

    >
  24. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/mobile'

    ><span

    >

    Mobile</

    span

    ></

    a

    ></

    li

    >
  25. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/blog'

    ><span

    >

    Blog</

    span

    ></

    a

    ></

    li

    >
  26. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/article'

    ><span

    >

    Articles</

    span

    ></

    a

    ></

    li

    >
  27. <li

    ><a

    href

    =

    'http://www.sourcecodester.com/tutorial'

    ><span

    >

    Tutorials</

    span

    ></

    a

    ></

    li

    >
  28. </

    ul

    >
  29. </

    li

    >
  30. </

    ul

    >
  31. </

    div

    >

Hope this simple project will help you in your future work.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Download
You must upgrade your account or reply in the thread to view hidden text.
 

452,292

323,348

323,357

Top