To use xanim directly from youb web browser, make sure that your .mailcap file contains the following lines:
video/*; xanim +Sr +Ca +CF4 -Cn %s video/fli; xanim +Sr +Ca +CF4 -Cn %sor something equivalent, and that the Helper Applications option of your web browser preferences contains a reference to your personal .mailcap file.