Use a spray bottle full of just either plain water or if that doesn't work use a 50/50 mix of vinegar and water. Dog have a strong sense of smell and the vinegar is WAY stronger smell to them then you. Spray them every time they bark and say "No". I used the method on my neighbors dog when they wouldn't stop him from going crazy when I mowed the fence line. I carried the bottle hanging on my pocket and when I would approach the fence I would spray the dog. After about 4 rounds he stopped completely.