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 = '
'
}
and in my html file :
![cable car turnaround](images/cablecar.jpg)