Professional Documents
Culture Documents
<head>
<title>Experiment 7</title>
<style>
Body
background-color:babypink;
background-repeate:no-repeate;
background-size:cover;
background-attachment:fixed;
margin:0;
padding:0;
.container
display:grid;
grid-template-columns:repeat(3,1fr);
grid-gap:10px;
.eventOutput
background-color:pink;
padding:20px;
margin:20px;
border-radius:5px;
}
label
display:block;
font-weight:bold;
margin-bottom:5px;
#single, #double
width:30%;
padding:6px;
margin:8px;
background-color:black;
color:#fff;
border:none;
border-radius:4px;
cursor:pointer;
.resizable-div
width:200px;
height:200px;
resize:both;
overflow:auto;
margin:auto;
#box
{
width:150px;
height:150px;
margin:auto;
background:#008000;
border-radius:10px;
transition:10s;
#mainImage
width:250px;
height:150px;
#thumbnails img
width:150px;
height:90px;
margin-right:10px;
</style>
</head>
<body>
<br>
<center>Form events</center></h1>
<div class="container">
style="margin:0">
</div>
<p><b>Resizable Content</b></p>
</div>
</div>
</div>
</div>
</div>
<center>
<div id="thumbnails">
onmouseover="onmouseOver('D:\Javascript\tony.jpeg')"
onmouseout="onmouseOut()">
onmouseout="onmouseOut()">
onmouseover="onmouseOver('D:\Javascript\nat.jpeg')"
onmouseout="onmouseOut()">
onmouseover="onmouseOver('D:\Javascript\clint.jpeg ')"
onmouseout="onmouseOut()">
onmouseover="onmouseOver('D:\Javascript\cap.jpeg')"
onmouseout="onmouseOut()">
onmouseover="onmouseOver('D:\Javascript\bb.jpeg')"
onmouseout="onmouseOut()">
</div>
</div>
</center>
<script>
function onClick()
document.getElementById("singleMsg").innerText="Click Event";
function ondbClick()
function mouseUp()
{
document.getElementById("box").style.transform="rotate(0deg)";
function mouseDown()
document.getElementById("box").style.transform="rotate(360deg)";
function reSize()
function onmouseOver(imageSource)
mainImage.src = imageSource;
function onmouseOut()
mainImage.src = "main.jpeg";
</script>
</body>
</html>
Output:-