<script type="text/javascript"><!--
google_ad_client = "pub-4106474959161156";
/* 200x200,创建于 08-5-18 */
google_ad_slot = "5450243332";
google_ad_width = 180;
google_ad_height = 167;
google_cpa_choice = ""; // on file
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
google_ad_client = "pub-4106474959161156";
/* 200x200,创建于 08-5-18 */
google_ad_slot = "5450243332";
google_ad_width = 180;
google_ad_height = 167;
google_cpa_choice = ""; // on file
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
可以建立一个新页,新页上放你那堆JS代码。
然后在某页打开时window.open那个新页,不知可否实现你要的效果。