In this case you have to host it somewhere. It can be something like photo bucket or your own hosting. Then use a code something like this replacing "your.gif" with the url of your gif. This code will take users away to the hosted page if they click on the image.
"<a href="your.gif" target="_blank"><img src="your.gif" border="0" alt="moops"></a>"