Create a function named switchpix

Assignment Help Operation Research
Reference no: EM13996334

Create a function named switchPix, and assign the names file and desc to values passed to the function. Add a statement to the function that sets the value of the HTML code for the element with the id pix to the text <img />. In nearby.html, add code that loads the contents of the gallery.js file. Add an event handler to the a element for the text Asian Art Museum that responds to the mouse pointer moving over the element to call the switchPix function, passing the values ′asian′,′Asian Art Museum′. Add a second event handler that responds to the link being selected to call the same function with the same values.

Here's what I have come up with for the function: function switchPix(file,desc){
  document.getElementById('pix').innerHTML = '<img src="images/' + file + '.jpg" width = "480" height = "270" alt="' + desc + '" />'
}

and in my html file :

<figure id="pix" class="right">
          <img src="images/cablecar.jpg" width="480" height="270" alt="cable car turnaround" id="gallery" />
        </figure>
        <ul id="listclick">
          <li><a href="https://www.asianart.org/" onmouseover="switchPix('asian','Asian Art Museum')">Asian Art Museum</a></li>
          <li><a href="https://bit.ly/93E5VI" onmouseover="switchPix('cityhall','San Francisco City Hall')">City Hall</a></li>
          <li><a href="https://www.hocfarmersmarket.org/" onmouseover="switchPix('market','Civic Center Farmers Market')">Heart of the City Farmer's Market</a></li>
          <li><a href="https://www.sfcablecar.com/"onmouseover="switchPix('cablecar','Cable Car turnaround')">Cable Car turnaround</a></li>
        </ul>

Reference no: EM13996334

Questions Cloud

Theproduction possibilities model : What economic concepts are represented in theproduction possibilities model?
The means of production in a socialist economy : Government owns the means of production in a socialist economy while individuals own the means of production in a capitalist economy. The government allocates jobs in a socialist economy while individuals determine employment in a capitalist economy...
Find all the support reactions at point a and b : Determine the force in each member of the scissors truss shown in Figure 2. State the whether the members are in tension or compression. The reactions at the supports are given.
Determine how many seconds after the tennis ball is released : Determine how many seconds after the tennis ball is released the collision takes place. Determine the velocity of the tennis ball at the time of its collision with the rock.
Create a function named switchpix : Create a function named switchPix, and assign the names file and desc to values passed to the function. Add a statement to the function that sets the value of the HTML code for the element with the id pix to the text . In nearby.html, add code that ..
Find the temperature of the cold reservoir : The temperature difference between the two reservoirs is 284 oC. If the efficiency of this ideal engine is 24.0%, find the temperature of the cold reservoir in oC.
Mental disorder that intrigues you the most : Select one (1) mental disorder that intrigues you the most, then suggest a treatment approach for the disorder you selected based on evidence discussed in the textbook related to the treatment of mental disorders
What is the difference between linking to an image : What is the difference between linking to an image, a website, and an email address?
Mention why is the mouse cursor slightly tilted : Mention why is the mouse cursor slightly tilted and not straight?

Reviews

Write a Review

Operation Research Questions & Answers

  Formulate a linear programming model for problem

Plot the cost of time reduction against total time reduction and draw any conclusions. What happens to the cost as the amount of time reduction is increases?

  Explain utilization and efficiency of this system

Southeastern Oklahoma State University's business program has the facilities and faculty to handle an enrollment of 2,000 new students per semester.What are the utilization and efficiency of this system

  Forecast the mileage for next year

The Carbondale Hospital is considering the purchase of a new ambulance. The decision will rest partly on the anticipated mileage to be driven next year.

  Undertake performance appraisals

The average time per manager in Australia to undertake performance appraisals from the planning stage to the delivery stage

  Queuing

In a typical 8 hour work day, how much time in total will the cashier be idle?  How many customers on average are waiting in line to pay?

  Compare municipal waste programs from other countries

Compare municipal waste programs from other countries

  Impact of the faas national airspace system plan

Outline the basic structure of the national airspace system, and describe the impact of the FAA's National Airspace System Plan (NASP). Please provide the website.

  Explanation about quantitative analysis

What is the relationship between decision variables and the objective function. What is the difference between an objective function and a constraint.

  Formulate an lp to maximize feedcos profit

. Feedco can purchase up to 1,000 lb of wheat at 50/lb and up to 800 lb of alfalfa at 40/lb. Demand for each type of feed is unlimited. Formulate an LP to maximize Feedcos profit.

  Brief description of guidelines related to diversification

List and discuss some guidelines for when related diversification would be a particularly good strategy to pursue and guidelines related to diversification in detail.

  Find unit costs for each product using conventional costing

Suppose that Cooplan manufactures four products, W, X, Y and Z. Output and cost data for the period just ended are as follows. Prepare unit costs for each product using conventional costing and ABC.

  Determine the monthly break-even volume for the company

The company's fixed monthly cost is $25,000, and its variable cost per pound of fertilizer is $0.15. Evergreen sells the fertilizer for $0.40 per pound. Determine the monthly break-even volume for the company.

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