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

  Best process for manufacturing systems

Using the data in Problem determine the best process for each of the volumes. GENERAL PURPOSE FLEXIBLE DEDICATED EQUIPMENT MANUFACTURING MACHINE.

  Explore martin''s decision making model

Identify a problem in your organization, or a challenge from your simulation experience, and apply the four stages of Martin's decision-making model to it

  Techniques in business decision making

Select five Operations Research techniques and describe in detail the real world application of such techniques in business decision making.

  Difference between objective function and constraints

Under what circumstances is the objective function more important than the constraints in a linear programming model.

  How does he or she get a job

You have received an email from a graduating student, the son or daughter of an acquaintance. This young person wants advice: How does he or she get a job like yours.

  Describe the board of directors as shareholders

To better align the interests of the corporate board with those of shareholders, should company directors be required to own stock in the company they represent.

  How does cultural typology of nursing programs correlate

How does the cultural typology of nursing programs correlate with perception of caring of administrators by nursing faculty?

  Describe the wal-mart globalization

Which is the most important lesson of Wal-Mart's global expansion up until 2007. I need the brief description about Wal-Mart Globalization.

  Explore marketing research-a six step process

Briefly discusses the marketing research process. How can a firm leverage its marketing information system (MIS) to yield the greatest value for its research efforts.

  Description of the implications of covert research

In what circumstances might covert research be justified and How would you deal ethically with this. Define me what covert research is.

  Mainstream media sources

Find an interesting, and recent, article or two featuring a topic from our course, and analyze it for this review. Your job is to convey, in 2 to 3 pages, what the development was as described in the article(s) in a concise and organized manner. Turn..

  Describe health resource and policy analysis

What have you found about national health expenditures in 2008. How do you expect this distribution of health care spending to change over the decade ahead.

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