I tried the special fireworks setting on my Panasonic DMC-FX7 camera. It is a long exposure setting that requires a tripod. The manual suggested using manual focus and I found that is very good advice. The other important thing is to center the fireworks in the viewfinder, which I didn't do so well.
Created with Paul's flickrSLiDR.