Create two global varibles to declare an empty array

Assignment Help Programming Languages
Reference no: EM1361842

Need to create two global varibles. The first currentTab, which will reference the current menu tab being dispalyed with a initial value of null, the second variable is maxZ which will store the z-index and it's initial value is 1.

Need to create a setTabs funstion and then add an event handler to run settabs() functions. within this function the following need to happen:

- declare an empty array named menuTabs
-use getElementsByTagName() method to store all of the elements
-loop through the elements in the all Elems array
-set the currentTab object equal to the first item in the menuTabs array
-add an onclick event handler that runs the showTab function

create the showTab() function and add the following commands:

-set the background color of the currentTab object to white
- increase the value of the maxZ variable by 1
-declare a variable named tabList that references the first ul element nested within this object
- set the z-index value of the tabList object to the value of the maxZ variable
- point the currentTab object to the tabList object
- set background volor of the currentTab ojbject to the color value (221, 221, 255)

Reference no: EM1361842

Questions Cloud

How is policy development affected by federalism : Describe how is policy development affected by federalism and show the rights of individuals as they relate to policy development and explain the overall effect.
What is the minimum acceleration necessary : A car traveling at 21 runs out of gas while traveling up a 21 slope.How far up the hill will it coast before starting to roll back down.
Discuss nutritional strategies : Discuss nutritional strategies and supplement recommendations with a rationale for your choices.
Rhetorical devices : Prepare a short paragraph that contains a specific rhetorical device and It may be on any topic used for persuasion - Rhetorical Devices
Create two global varibles to declare an empty array : Need to create two global varibles. The first currentTab, which will reference the current menu tab being dispalyed with a initial value of null, the second variable is maxZ which will store the z-index and it's initial value is 1.
Importance of exercise for diabetic patients : What can you tell her about the importance of exercise for diabetic patients?
Cumulative voting procedures : The Beasley Corporation has been experiencing declining earning, but has just announced a 50% salary increase for its top executives. A dissident group of stockholders wants to oust the existing board of directors.
Develop effective and efficient control measures : Describe how statistical process control can be beneficial to ensure total quality in fulfilling customer's order
Maximize the market value of the stock : XYZ Company has earnings of $750,000 with 300,000 shares outstanding. Its P/E ratio is sixteen. The company is holding $400,000 of funds to invest or pay out in dividends.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd