Giter Club home page Giter Club logo

dropdownmenu's Introduction

This is a simple dropDownMenu utilizing JS, DOM and CSS.

Using Javascript, CSS, DOM, and the initial template file index.html; please create a dropdown menu similar to the one pictured in dropdown.png

When opening index.html in Chrome or Firefox, the page should initially show the menu colored pink with items Item 1, Item 2, and Item 3.

When the mouse is hovered over Item 3, a sub menu should show up with items Sub 1, Sub 2, and Sub 3. The sub menu should have background color violet.

When the mouse is hover over item Sub 3, another sub menu should show up with items SubSub 1, SubSub 2, and SubSub 3. This inner sub menu should have light green background color.

When the user clicks on any menu item, whether it be Item #, Sub #, or SubSub #, then a javascript alert box should appear with the content of that alert window being the name of the menu item (ie: "Item 1", "Sub 2", "SubSub 2", etc)

You may use the JSON structure in the index.html document or create your own, as long as the dropdown menu meets the requirements.

CSS requirements:

  • Every menu item should have width 200px, height 70px.
  • Every menu item should have a solid 1 pixel black border.
  • All text must be vertically aligned in the middle and horizontally aligned in the middle.

alt tag

dropdownmenu's People

Contributors

gtdeng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.