For the geocities ads, all you have to do is put this code:
after the < /HTML > sign after your codes.
For the angelfire popups, put this code:
in the HEAD of your codes.
Hopefully these 2 codes work for you! I know the geocities one works because I use it on this site, so feel free to use it! =)