CSS Generated Content Show on :hover, Hide with jQuery onclick
In response to Stack Overflow question http://stackoverflow.com/questions/7428544/using-css-pseudo-elements-insert-content-that-has-a-click-handler
HTML
<div class='item'>HI I'm an item</div>
CSS
.item:hover{cursor:pointer}
JavaScript
$('.item').hover(
function () {
$(this).append($("<b>collection : doll eyes
There are various types of dolls eyes such as eyes that are realistic, pupiless, cartoonish, or imaged. Doll eyes are made by printing a iris and dropping clear medium on the iris so that there is a small bulb like an eye. Thus you can insert any image in a circle and the print becomes and iris. I liked this idea of easily creating a fake eye such like color contacts. I wanted an interactive website where people can insert doll eyes on to people eyes and become fake people — dolls. This small change shows how it is creepy and beautiful at the same time. How the app works is that the users select on of the pre-categorized irises, which people can put them on realistic photos. I want to create an interactive website where it experiments with visual and emotional change of eyes. Then there can be a collection of these photos. </b>"));
$("b").click(function () {
$(".item").remove();
});
},
function () {
$(this).find("b").remove();
}
);