Demo:
Hướng dẫn:
Trước tiên bạn phải tạo 1 shop avatar anime, vào đây để làm:
https://codeforumotion.forumvi.com/t76-topic
sau khi tao song shop thì làm theo bước sau:
Bước 1:
ACP-->Display-->Templates-->QLTT-->Viewtopic_body-->tìm code:
Thay thành:
Bước 2:
cũng trong viewtopic_body, tìm:
Chèn vào dưới nó đoạn code sau:
Hướng dẫn:
Trước tiên bạn phải tạo 1 shop avatar anime, vào đây để làm:
https://codeforumotion.forumvi.com/t76-topic
sau khi tao song shop thì làm theo bước sau:
Bước 1:
ACP-->Display-->Templates-->QLTT-->Viewtopic_body-->tìm code:
- Code:
<script> $(function() {
if ($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains('avatar-dulieu')").text().length > 25) {
$("#baivongshop{postrow.displayed.U_POST_ID}").html('<object width="125" height="180" type="application/x-shockwave-flash" data="http://my.go.vn/swf/avatar2.swf" id="avatar_flash_object" style="visibility: visible;"><param name="flashvars" value="itempath=http://farm01.gox.vn/avatar/store/avatar_part_item/&browser=Other&itemlist=' + $("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().slice($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().indexOf("dulieu") + 8) + '"></object>').show().next().remove();
};
});
</script>
Thay thành:
- Code:
<script> $(function() {
if ($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains('avatar-dulieu')").text().length > 25) {
$("#moavatar{postrow.displayed.U_POST_ID}").show();
$("#baivongshop{postrow.displayed.U_POST_ID}").html('<object width="125" height="180" type="application/x-shockwave-flash" quality="medium" data="http://my.go.vn/swf/avatar2.swf" id="avatar_flash_object" style="visibility: visible;"><param name="flashvars" value="itempath=http://farm01.gox.vn/avatar/store/avatar_part_item/&browser=Other&itemlist=' + $("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().slice($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().indexOf("dulieu") + 8) + '"></object>').show().next().hide();
};
$("#moavatar{postrow.displayed.U_POST_ID}").click(function() {
$(this).hide();
$("#dongavatar{postrow.displayed.U_POST_ID}").show();
$("#baivongshop{postrow.displayed.U_POST_ID}").hide().next().show();
});
$("#dongavatar{postrow.displayed.U_POST_ID}").click(function() {
$(this).hide();
$("#moavatar{postrow.displayed.U_POST_ID}").show();
$("#baivongshop{postrow.displayed.U_POST_ID}").show().next().hide();
});
});
</script>
Bước 2:
cũng trong viewtopic_body, tìm:
- Code:
{postrow.displayed.RANK_IMAGE}
</span>
Chèn vào dưới nó đoạn code sau:
- Code:
<input id="moavatar{postrow.displayed.U_POST_ID}" style="display:none" type="submit" onmouseover="showtip('Click Để Xem avatar Thường.')" onmouseout="hidetip()" value="Avatar Thường"/> <input id="dongavatar{postrow.displayed.U_POST_ID}" style="display:none" type="submit" onmouseover="showtip('Click Để Xem avatar flash.')" onmouseout="hidetip()" value="Avatar flash"/>