In order to make gif file play in the exported HTML:
- Select the picture box into which you have imported the gif file.
- Go to Style > Fit Box to Picture (You can also Right-Click on the box and select Fit Box to Picture).
- Export the layout as HTML.
Any gif file imported into QuarkXPress should be imported/displayed in a box that matches the original gif's geometry.