Using asp.net in VS 2013.
I have the following code.
<div id="HPInformation">
<div>
<div id="HPInfoPopUp" style="display: none;">
<div id="HPInfoPopUpTitle">Information</div>
<div id="HPInfoPopUpInternalPanel">
<table id="HPInfoTable">
<tr>
<td>Contact</td>
<td>Harris Redknapp</td>
</tr>
<tr>
<td>Email</td>
<td>harris@nefsa.co.uk</td>
</tr>
<tr>
<td>Telephone</td>
<td>0800 888888</td>
</tr>
<tr>
<td>Address</td>
<td>1 Bali Court</td>
</tr>
<tr>
<td></td>
<td>Middlesbrough</td>
</tr>
<tr>
<td></td>
<td>TS21 5TT</td>
</tr>
</table>
</div>
</div>
</div>
<asp:Image ID="informationImg" ImageUrl="~/images/HomeInformation.gif" runat="server" />
<span>
<h3>INFORMATION</h3>
</span>
</div>
<script type="text/javascript">
var e = document.getElementById('HPInformation');
e.onmouseover = function () {
document.getElementById('HPInfoPopUp').style.display = 'block';
document.getElementById('informationImg').style.display = 'none';
}
e.onmouseout = function () {
document.getElementById('HPInfoPopUp').style.display = 'none';
document.getElementById('informationImg').style.display = 'block';
}
</script>
<script type="text/javascript">
var e = document.getElementById('HPContact');
e.onmouseover = function () {
document.getElementById('HPContactPopUp').style.display = 'block';
document.getElementById('contactImg').style.display = 'none';
}
e.onmouseout = function () {
document.getElementById('HPContactPopUp').style.display = 'none';
document.getElementById('contactImg').style.display = 'block';
}
</script>
<div id="HPContact">
<div>
<div id="HPContactPopUp" style="display: none;">
<div id="HPContactPopUpTitle">Information</div>
<div id="HPcontactPopUpInternalPanel">
<table id="HPcontactTable">
<tr>
<td>Contact</td>
<td>Harris Redknapp</td>
</tr>
<tr>
<td>Email</td>
<td>harris@nefsa.co.uk</td>
</tr>
<tr>
<td>Telephone</td>
<td>0800 888888</td>
</tr>
<tr>
<td>Address</td>
<td>1 Bali Court</td>
</tr>
<tr>
<td></td>
<td>Middlesbrough</td>
</tr>
<tr>
<td></td>
<td>TS21 5TT</td>
</tr>
</table>
</div>
</div>
</div>
This is so when a particular the dic HPInformation or HPContact is moused over a div is shown on the page. The javascript for HP information works fine but the HP contact doesn't and I cant see why. Can anyone help?