This is more of an apache question, but everyone cool is here

How would i make a script that makes ads pop up on all .html .htm .php .cgi etc... pages. Like geocities has, so that hte ads pop up on your website? anyone know?

thanks
sam