Код
<script type="text/javascript">
function reszfb() {
if (md == "forum") {
var elm = ".posttdMessage";
var sz;
var pmsz = parseInt(Math.floor($(".gDivLeft").width() / 100 * 77) - 13, 10);
var pmszs = pmsz.toString();
pmszs = " " + pmszs + "px";
$(elm).each(function () {
sz = parseInt(Math.floor($(this).width()), 10);
if (pmsz < sz) $(this).attr({
width: pmsz
};).width(pmsz).prop("width", pmsz).css("cssText", "width:" + pmszs + " !important; height: auto !important;");
};);
}
}
function reszim() {
if (md == "forum") {
var elm = ".posttdMessage img";
var sz;
var pmsz = parseInt(Math.floor($(".gDivLeft").width() / 100 * 77) - 29, 10);
var pmszs = pmsz.toString();
pmszs = " " + pmszs + "px";
$(elm).each(function () {
sz = parseInt(Math.floor($(this).width()), 10);
if (pmsz < sz) $(this).attr({
width: pmsz
};).width(pmsz).prop("width", pmsz).css("cssText", "width:" + pmszs + " !important; height: auto !important;");
};);
}
}
$(document).ready(function() {
reszfb();
reszim();
};);
$(window).load(function() {
reszfb();
reszim();
};);
</script>