Псевдомаркирование картинок.
В НТМЛ-верх:
Код:
<style type="text/css">
p.userimage img,div.post-content img.postimg{
display:none;
}
</style>В НТМЛ-виз:
Код:
<script>
$(document).ready(function(){
$("div.post-content img.postimg,p.userimage img").css("display","inline-block");
imgMarking = "https://upforme.ru/uploads/0002/be/6c/4724-1-f.png" // Ссылка на рисунок маркер
var imgURL
var x;
var y;
var s;
var inb
$("div.post-content img.postimg,p.userimage img").each(function () {
x = this.offsetWidth;
y = this.offsetHeight;
inb = $(this).parent().get(0).tagName;
if ((x>100&&y>100)&&(inb!=="STRONG")) {
$(this).css("width",x+"px");
$(this).css("height",y+"px");
imgURL = $(this).attr("src");
$(this).attr("src",imgMarking);
$(this).attr("alt","");
$(this).css("background-image","url("+imgURL+")");
}
});
});
</script>Там где
// Ссылка на рисунок маркер
заменяем адрес в коде на свою картинку-маркер в формате gif или png8.