How to add website visitors to a pool?
This kinda thing gets your website put in blacklists.

The only way (I know of at least) to mine in the browser is Bitcoin Plus, which actually is just a wrapper around a background Java applet. So you would probably want to make a Java miner and then work off that.