CSS_13
CSS_13
13
Program:
<!DOCTYPE html>
<html>
<head>
<title>Image Rollover</title>
<style>
#myImage
{ max-width: 100%;
max-height: 100%;
</style>
</head>
<body>
<script>
function changeImage(over) {
if (over) {
image.src = "image2.jpg";
} else {
// Change it back to the normal image when the mouse is not over it
image.src = "image1.jpg";