How do I stop pop ups every time I click a link

Im using safari 6.1.6 and OS X 10.8.5 and whenever I click on legitimate websites I get pop ups. This could have been cause by mistakenly downloading something I shouldn't have. Im not sure if its related but now when I try and do a google search I get a list of google adds before my results with a yellow box saying 'ad' this didn't happen yesterday. Does anyone know what needs to be done to stop all this? Im a basic user and with little knowledge of the system.

Has invited:

howapple - hello

Favor from:

Please post a screenshot that shows what you mean. Be careful not to include any private information.

Start a reply to this message. Drag the image file into the editing window to upload it. You can also include text in the reply.

To reply to a question, please Login or registered