Maybe I shouldn't be giving advice, since I am fighting a recurrent case of swimbladder problem (see the thread on my Moor).....
The link above is pretty good in giving an overview of the cause, but the treatment is really mostly for vets .... for us non-vets, I'd sugget:
1. check water parameters - correct any problems with water first before doing anything else.
2. decrease water level - fish will be less stressed in shallower water ---- however, this would mean less water in the tank .... so you must be diligent in water changes ...etc. Daily checking & pwc is a msut in a 10 gal.
3. Treat for constipation (the most common cause fo SB problems) - try fasting for a couple days followed by peas. Observe fish poop - if still appears constipated, consider using Epsom's salt.
4. Increase temperature - some up the temp to low 80's to increase metabolism & help treat constipation. Fancies should be kept at 70's to prevent problems.
5. Once constipation is corrected, feed sinking pellets & lots of veggies to prevent problems.
6. If treating for constipation does not correct problem - consider an internal infection (bacterial or parasites) as a cause & treat for it ...... note that meds are harsh & some fish will not survive your treatment.
Some fancies have either congenital SB problems or have SB so damaged that the cannot be cured. This is when surgery comes in (assuming you have a big, expensive show fish & want to shell out big bucks for a vet!)
Read this for another take on SB problems:
http://www.mu.edu/~buxtoni/puregold/disease/symptom/symptom.htm#floating problems