0
<div id='ad' style='position:absolute; left : 174px; top : 14px; width : 597px; height : 740px;'>
<div style="opacity: 1.0;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 500-400 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:500px;height:300px"
     data-ad-client="ca-pub-********"
     data-ad-slot="*****"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script> </div>
</div>
<script type='text/javascript'><!--
window.onscroll = function () { //hope this works, havent tested it
document.getElementById ('ad').style.top = (200 + document.body.scrollTop) + 'px';
}
--></script>
2
Contributors
7
Replies
22
Views
1 Year
Discussion Span
Last Post by rproffitt
0

Martin, you can view source to see how a web site does something. I looked at that link and did not get a pop up window or such. So my advice is to read the source of that site to see what they did.

1

I wish you could reveal what it is we want to close. I tried your script with a fiddle (online edit and test) but it went nowhere. Since we can't close a window, then it must be something else that is popping up. Once we know what that is, then we can go over its controls.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.