With Photoshop you can use the Photomerge option, which I think is in the 'Automate' menu. You can then probably use a Java plugin to give the rotating 360 effect on a webpage.
A very quick google on the subject brought up this one:
but there are probably many more. I searched for 360 pano java plugin.