Welcome to WebmasterWorld Guest from

Forum Moderators: martinibuster

Message Too Old, No Replies

is dynamic placement or scrolling the ads acceptable?

5:19 pm on Jul 28, 2003 (gmt 0)

New User

10+ Year Member

joined:July 28, 2003
votes: 0

I use AdSense in the forums on my website. Yes, I know, that's relatively dynamic content, but the URLs always have the "root" message, so google crawls it relatively frequently and posts wonderfully relevant ads....

The problem is, in the threaded view of my forums, there's only one page, and if you click a message that's halfway down the thread, you're automatically scrolled way past the ads and never see them...

Is it kosher to use javascript/dhtml to automatically scroll the ads down to where the user is sent? I know this is complicated to do, especially sinec the DOM for anchors is rather shady at best... it'll probably require some sort of setTimeout hack... but i don't want to spend the time doing it if google would have a problem with it.

Also, just to be clear: I would NOT wrap the ads in code that keeps them viewable no matter how much the browser scrolls - I only want to place the ads at the location the user is FIRST viewing, so that they're visible, but not annoying.

5:28 pm on July 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 3, 2003
votes: 0

Twiggy, Welcome to WW.

I belive it is alright to use the ads on forums.

Is it kosher to use javascript/dhtml to automatically scroll the ads down to where the user is sent?

I am not sure about this one, but my instinct say that it could be against the google policies, though not exactly defined.

However, perhaps it may be alright to do so. So the best way would be to contact Google to get an official answer.

Risk Nothing!

7:36 pm on July 28, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 3, 2003
votes: 0

From what I understand, Google doesn't want you messing with their Javascript code. Because of that, I'd be wary of using JavaScript to manipulate the ads. But you can easily use CSS to stick the ad in its proper place and force it to stay there when the page scrolls. Take a look at this page [w3.org] to see this type of CSS in action.

Basically, you'd just put the AdSense code in a <div> and use CSS to modify where that <div> is allowed to go. I don't think they have any control over that happening.