homepage Welcome to WebmasterWorld Guest from 54.234.231.49
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

JavaScript and AJAX Forum

    
Google ads affected due to javascript
abhishekkaushik




msg:3991286
 1:25 am on Sep 18, 2009 (gmt 0)

Hi friends,

I am putting one JavaScript code on my web page which i found interfere with Adsense code because when page loads my Google ad gets distorted (their width and height changes)

what is that one script has to do with another please help.

 

rocknbil




msg:3991668
 2:53 pm on Sep 18, 2009 (gmt 0)

Try looking at the naming of variables in the added script. There may be variables using the same names as in the adSense scripts assigned to width and height that are parsed as document globals and overwriting the adSense variables.

If this is the case, change those to something else, like myWidth and myHeight.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved