<div id="house_container">
<div id="house"><img src="house.gif" usemap="#Map" /></div>
<div id="house35" style="visibility:hidden;"><img src="35.gif" usemap="#Map" /></div>
<div id="house27" style="visibility:hidden;"><img src="27.gif" usemap="#Map" /></div>
<map name="Map" id="Map">
<area shape="rect" alt="" coords="102,51,135,83" href="#" onmouseover="Hide('house'); Show('house35');" onmouseout="Hide('house35'); Show('house'); " />
<area shape="rect" alt="" coords="63,92,99,123" href="#" onmouseover="Hide('house'); Show('house27');" onmouseout="Hide('house27'); Show('house'); " />
</map>
</div>
---------------------------------------------
below is the JS code the page uses:
function Show(id) {
obj = document.getElementsByTagName("div");
if (obj[id].style.visibility == 'hidden'){
obj[id].style.visibility = 'visible';
}
if (obj[id].style.display == 'none'){
obj[id].style.display = 'block';
}
}
function Hide(id) {
obj = document.getElementsByTagName("div");
if (obj[id].style.visibility == 'visible'){
obj[id].style.visibility = 'hidden';
}
if (obj[id].style.display == 'block'){
obj[id].style.display = 'none';
}
}
----------------------------------------------------
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE