[jQuery] jQuery, AdSense, wrap, and Firefox 2 & 3 Problems
Hey All,
I have a weird problem going on with jQuery, adsense, and wrap in
firefox 2 & 3. It seems that when I try to wrap a div with my adsense
code in it, the adsense code makes the page "blank". The page loads,
but quickly gets overwritten by a blank page.
My html:
<div class="wrapthis">
<script type="text/javascript"><!--
google_ad_client = "pub-*************";
/* 300x250, created 11/13/07 */
google_ad_slot = "4807***801";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
My javascript:
$("div.wrapthis").wrap('<div class="wrapped"><div class="ml"><div
class="mr"><div class="mm"></div></div></div></div>');
If i remove this javascript there are no issues. However if I keep it
in there, it displays a blank white page.
Any thoughts?