Welcome to WebmasterWorld Guest from 54.146.194.42

Forum Moderators: open

Message Too Old, No Replies

Google ads affected due to javascript

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

Junior Member

5+ Year Member

joined:Apr 12, 2007
posts: 134
votes: 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.

2:53 pm on Sept 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members