[jQuery] JQuery with Google AdSense
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">There seems
to be a problem with JQuery in IE6 when implementing on a page that
contains Google AdSense code. I am using this function to Show/Hide
content
$(document).ready(function(){
$("#older").hide();
$("#button").toggle(
function(){ $("#older").slideDown("slow") },
function(){ $("#older").slideUp("slow") }
);
});
The page works fine with Firefox 1.5 but IE 6 will not run the
show/hide function. My 'hidden' content is not hidden and of course the
show/hide function does not work. However, including the Jquery call
and the above function after the Google AdSense code solves the
problem. The page now works fine in IE6
</font></font><font size="-1"><font face="Helvetica, Arial, sans-serif">Has
anyone used Jquery on a page with Google AdSense? I could not find this
in the list archive but I'm sure someone smarter than me can explain.
The Google AdSense code has a call to their show_ads.js script so I
assume that something in this interferes unless jquery is called later.
Thanks for any suggestions
Clive Walker
</font></font>
<pre>-- </pre>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<font face="Helvetica, Arial, sans-serif" size="2"><a
href="mailto:clive.walker@cvwdesign.co.uk">mailto:clive.walker@cvwdesign.co.uk</a>
01403 260722
07855 590013 mobile
Skype Name: cvwclive
_____________</font><font face="Helvetica, Arial, sans-serif">
</font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/