Type up your message, and leave the cursor where you want the emoticon to appear in the text.
Click on the happy face icon. It is just above the text box. This makes a drop-down menu of emoticons appear.
Click on an emoticon in the drop down menu to add it to the text. Yahoo has some hidden emoticons that are not on the drop-down menu. For those emoticons, type the keyboard shortcuts directly into the message.