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 the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Design psuedocode program to calculate amount

Design a psuedocode program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Does loop have dependences two-dimensional arrays

Consider the following code with two-dimensional arrays. Does this loop have dependences? Can these loops be written so they are parallel?

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Program has function named presentvalue for calculations

Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.

  Write application that inputs five number

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive.

  Creating form which analyzes poker hand entered by user

To observe behavior of Sub Procedures, draw a Form which analyzes a poker hand entered by user and displays the type of hand.

  Design program that determines males live in zip code area

Design a program that determines how many males and females live in each of the Zip Code areas in the Student Enrollment Records Set.

  Create mock level design for game

Write a 5-page "mock level design" in which you design a level for a game. The game is a shooter, the level is an old warehouse filled with zombies and demons with a boss at the end.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

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