I am trying to make a Floating div visible in both I.E. and Firefox. I can only get it to work in i.e. it works in I.e. when I put the code in the <HEAD> tag however not in Firefox. I can get it to work for both if I put the code outside of the HTML tags altogher however If it works in both it justifies my web page to the left in i.e. I have inserted every possible tag possible to center the page but it is still justifying the page to the left. Whats more is the code is a mixture of includes, css, and asp. The script that I am using for the "visibility" is as follows:
<script type="text/javascript">
// shows the pop up div
function showObject(e, element) {
document.getElementById(element.id).style.visibility = "visible";
document.getElementById(element.id).style.top = e.clientY;
}
// hides to pop up div
function hideObject(element) {
document.getElementById(element.id).style.visibility = "hidden";
}
</script>
WHAT I AM DOING WRONG!