Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How Do You Make A Javascript Image Rollover?

image Javascript rollover
0
Posted

How Do You Make A Javascript Image Rollover?

0

A JavaScript image rollover is an interesting group of HTML and JavaScript code; when a website user points at a picture, another image takes its place. When the user moves the mouse away from the picture, the original image comes back into view. After finding two pictures that you wish to use, follow these directions to make an image rollover of your own. Write the code to tell the picture how to behave when the mouse cursor moves over the picture or away from the picture, as follows. “SamplePage.html” can be replaced with any link of your choice. Notice that “pictureTwo.src” and “pictureOne.src” match the object names you established above. onMouseOver=”document.sample.src = pictureTwo.src;” onMouseOut=”document.sample.src = pictureOne.src;”> Tell the document which picture to display when the page first loads. Notice by naming the image container “sample,” you are using the same object name as the previous group of code (document.sample.src). Name=”sample”> Finish coding your docume

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123