Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Tintasii Menu</title>
<style type="text/css">
#meciuri a:hover {
background: red url(media/hover-meciuri.gif)
background-repeat: no-repeat;
}
#link1
{
position: absolute;
top: 442px;
left: 257px;
width: 128px;
height: 128px;
background-image: url("rollover1.gif");
background-position: 1000px 32px;
background-repeat: no-repeat;
}
#link2
{
position: absolute;
top: 410px;
left:455px;
width: 96px;
height: 128px;
background-image: url("rollover2.gif");
background-position: 1000px 24px;
background-repeat: no-repeat;
}
#bodybgmenu
{
position: relative;
}
</style>
</head>
<body>
<div id="bodybgmenu">
<img id="meciuri" src="http://tintasii.moldovacrestina.net/media/ball-menu.jpg" usemap="#ball-menu">
<a href="#">
<div id="link1" onmouseover="this.style.backgroundPosition='7px 32px;'" onmouseout="this.style.backgroundPosition='1000px 32px;'"></div>
</a>
<a href="#">
<div id="link2" onmouseover="this.style.backgroundPosition='13px 24px;'" onmouseout="this.style.backgroundPosition='1000px 24px;'"></div>
</a>
</div>
</body>
</html>
I've updated the working example too.
Bookmarks