<html>
<head>
<style type = "text/css">
.orange
{
background-image:url('orange.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#FF8000;
}
.red
{
background-image:url('red.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#FF0000;
}
.green
{
background-image:url('green.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#00FF00;
}
.blue
{
background-image:url('blue.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#0000FF;
}
.yellow
{
background-image:url('yellow.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#FFFF00;
}
.cyan
{
background-image:url('cyan.jpg');
background-repeat:no-repeat;
width:200px;
height:40px;
background-color:#00FFFF;
}
</style>
<script language="javascript">
function enter(elemId)
{
document.getElementById(elemId).style.height = "182px";
}
function leave(elemId)
{
document.getElementById(elemId).style.height = "40px";
}
</script>
</head>
<body>
<div>
Nikhil's Menu
</div>
<div id = "main">
<div class="red" id = "m1" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 1
</div>
<div class="orange" id = "m2" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 2
</div>
<div class="yellow" id = "m3" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 3
</div>
<div class="green" id = "m4" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 4
</div>
<div class="cyan" id = "m5" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 5
</div>
<div class="blue" id = "m6" onMouseOver="enter(this.id)" onMouseOut="leave(this.id)">
MENU ITEM 6
</div>
</div>
</body>
</html>
MENU ITEM 1
MENU ITEM 2
MENU ITEM 3
MENU ITEM 4
MENU ITEM 5
MENU ITEM 6