Forum Moderators: martinibuster

Message Too Old, No Replies

I need a javascript wrapper function to keep ad from scrolling off

I need javascript wrapper for Adsence

         

dollarshort

5:00 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



It needs to be a wrapper function to comply with TOS (cannot modify code) basicaly for long pages to keep the add from scrolling out of site. I have seen it done with menus and other objects. Any intrest?

no9t9

5:33 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



you can put your ad code in a DIV and then position the DIV using javascript relative to the scroll position of the page. Using the body onscroll event should work.

Personally, I would not do this. I know many people complain about those menus that follow you when you scroll the page. Now imagine an AD that follows you! If I were going to a site that had ads following me, I would probably leave.

david_uk

8:46 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did try this on one of my long pages, and to be honest it didn't help the CTR one jot. I was also worried about the effect of ads following me - I'd hate it if I was a visitor.

What may work is to place another ad block at the bottom of the page for those who scroll down that far.