ad.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  4. <title>CSDN Ad</title>
  5. <style type="text/css">
  6. body { margin:0px; padding:0px;}
  7. </style>
  8. <script src="GNU%20Bison%20%E4%B8%AD%E6%96%87%E6%89%8B%E5%86%8C%20-%20Naga%20Bank%20-%20%E5%8D%9A%E5%AE%A2%E9%A2%91%E9%81%93%20-%20CSDN.NET_files/jquery.js" type="text/javascript"></script>
  9. </head>
  10. <body>
  11. <div id="div1"><!--AdForward Begin:-->
  12. <script type="text/javascript" src="ad_data/s.html" charset="gbk"></script>
  13. <!--AdForward End--></div>
  14. <script type="text/javascript">
  15. window.onload = function () {
  16. if (document.domain != 'blog.csdn.net') {
  17. document.domain = "csdn.net";
  18. }
  19. //这种给广告区域赋值的方式,对于有些JS广告不能完美的显示
  20. //top.document.getElementById('ad_cen').innerHTML = document.getElementById('div1').innerHTML;
  21. var h = document.body.offsetHeight + 2;
  22. setTimeout(function () {
  23. if (h > 800) h = document.getElementById('div1').offsetHeight + 4;
  24. try { top.document.getElementById('ad_frm_0').style.height = h + 'px'; }
  25. catch (err) { }
  26. }, 100);
  27. };
  28. $(function() {
  29. $("#div1 a").click(function() {
  30. top._gaq.push(['_trackEvent', 'function', 'onclick', 'blog_articles_tuijianwenzhang']);
  31. });
  32. });
  33. </script>
  34. </body></html>