Question: Write the code which would perform the following task using two images of your choosing: Use a function to swap the positions of the images
Write the code which would perform the following task using two images of your choosing:
Use a function to swap the positions of the images when the mouse is over either image. (Call the same function in the onmouseover event handler for both images. The function will load images in the appropriate positions.)
Swap the images back to their original positions when the mouse is moved off of the images (You can use the same function and pass different values with the parameters. This function will load both of the original images.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
