This consists of two steps:
- Set up a channel on an IRC network of your choice.
- Upload a Java applet to your website and let your visitors use it to reach your channel.
Freeware applet: PJIRC
Shareware applets: JWIRC, jIRC.
For more information search these forums for the word "applet" or refer to the documentation of the applet you decide you try out.