It sounds like some malware has gotten onto your system. Next time the pop-up happens look closely at it and get its name, ie. shoppersniffer, advertbot, whatever. Do a google search for it and you should find ways to clean it off your system, usually using Malaware or other such freeware cleaner.
No it won't attach to your project, it is only displaying because you are in your browser.