Creating a shader of fire

Can anyone suggest how to make a fire trail (for the cursor, using shaders).