Bullet shooting in mouse direction

I found other posts on this, but things were to complicated for me to understand. Knowing the pythag. theory, how would I make a little more sophisticated shooting?

This is a perfect example of what I’m trying to do.

http://www.kizi2games.co.uk/img/yo-ho-ho-cannon.gif

(Wonder how those dots work ???)