Jquery Works in FF but not IE at all
- by Shawn
I set up the SimpleModal plugin to
work from our Ad server(Real 24/7).
Essentially, attempting to make an
interstitial ad. I serve a popupAd.js
file from the Ad Server to our
homepage(index.php), Here is the code for popupAd.js:
$(document).ready(function() {
$.modal('<iframe src="/welcomeAd.htm" height="525" width="562" style="border:0;" scrolling="no"/>', {
closeHTML: "<a href='#' title='Close' align='right' style='color:#666>(X) Continue to website</a>",
containerCss: {
backgroundColor: '#fff',
borderColor: "#0063dc",
height: 525,
padding: 0,
width: 562,
},
overlayCss:{
backgroundColor:"#fff",
},
opacity:100,
overlayClose: true
});
});
This opens a modal window on the
homepage which then loads
welcomeAd.htm which contain nothing
other than the ad call to the
creative. Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Company Name</title>
<!------ AD SERVER SETUP begin ------>
<!------ OAS SERVER SETUP end ------>
</head>
<body style="margin: 0; padding: 0; width: 100%; height: 100%">
<script type="text/javascript" language="JavaScript">
<!--
AD SERVER CALL;
//-->
</script>
</body>
</html>
This all works in FF but does nothing
in IE, of which I am running IE7.
Also, the closeHTML doesn't show up
in Safari, though, the ad does.