Maybe iframe would do the job. Put your ads in a different page of your website, make an iframe of that page, embed it in a page you want to, and masking it using z-index.
Hope it helps, BUT really, man... it is evil, what you're going to do is really bad for advertiser. They lose their money...