I have a jQuery modal overhead tool on my site and it works fine in both Chrome and Firefox ... however, when I view the page in IE8, a black background mask appears on top of the DIV dialog box. Also, the div is displayed at the bottom of the page where the actual code differs from the center on the screen.
In addition, I also get one of those Error on Line 1 Char 6 "errors, and I can’t debug this bad boy. I get a similar error in Chrome" Uncaught SyntaxError: Unexpected token), but this does not interfere with the modal. I feel that it is not connected, but with IE, you never know.
Any help would be greatly appreciated!
Js file
var api;
showDiv('partmodal');
function showDiv(v){
if (!document.getElementById(v)) return;
if (api)
if (api.isOpened) api.close();
api=$('#'+v).overlay({
mask: {color: '#000000'},
effect:'drop',
api: true
}).load();
}
OBJECT DIV
<div class="modalpart" id="partmodal">
<h2>
Title
</h2>
</div>
CSS
.modalPart {
background-color:#fff;
display:none;
width:550px;
padding:15px;
text-align:left;
border:2px solid #600;
-moz-border-radius:6px;
-webkit-border-radius:6px;
-moz-box-shadow: 0 0 50px #ccc;
-webkit-box-shadow: 0 0 50px #ccc;
position:fixed;
_position:absolute;
}
.modalpart h2 {
background:url(images/logoac.png) no-repeat;
margin:0px;
padding:10px 0 10px 110px;
border-bottom:1px solid #333;
font-size:20px;
color:#600;
font-family:calibri, hevetica, tahoma, arial;
text-align:right;
}