Manipulating Psedo Element
HTML
<div>Text</div>
<style id="replaceable">
</style>
CSS
div {
display: block;
}
JavaScript
var css = '.image:after { content: url("https://www.google.com/images/srpr/logo3w.png"); width: 400px; height: 100px; }';
$("#replaceable").html(css);
$("div").addClass('image');
$("div").click(function() {
var css = '.image:after { content: url("http://www.google.com/logos/2012/elias_lonnrot-2012-hp.jpg"); width: 400px; height: 100px; }';
$("#replaceable").html(css);
});