Create a function named switchpix and assign the names file


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 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 = '' + desc + ''
}

and in my html file :


          cable car turnaround
       

       

Solution Preview :

Prepared by a verified Expert
Operation Research: Create a function named switchpix and assign the names file
Reference No:- TGS01300689

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)