In line with shaneystar's good advice, if the dog also jumps on you, turn away immediately, and as previously advised, don't make eye contact and, importantly, don't touch the dog with your hands. This is what the dog is really seeking, that and putting its paws on you , which is a kind of dominance display. When the dog jumps, turn immediately with your back to the dog and arms folded, and/or, considering the size of the dog, extend your leg into the dogs chest (I didn't say kick it!). Try to have your friends that come to visit mimic your behaviour. Additionally, when the dog has quieted, then place your hands on it and praise it. Anytime you can divert the dogs attention by carrying its favorite toy or a treat, and give it to the dog when good behaviour is exhibited. Be consistent with this and within a week or so you should see a change... Be sure to STOP shouting or smacking... won't work since part of your action is what the dog is seeking anyway... Good luck...