411 REFERENCE · Wikibooks
BTEC IT Unit 20 - Website Design/JavaScript/Rollover
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Image Rollover
<syntaxhighlight lang="html"
How to Make a JavaScript Image Rollover
function MouseRollover(MyImage) {
MyImage.src = "MyPicture2.jpg";
}
function MouseOut(MyImage) {
MyImage.src = "MyPicture1.jpg";
}
</syntaxhighlight>