Ví dụ Demo:
+ Thay vì hiển thị là link:
ACP => Modules => Javascript codes management => Creat a new javascript =>
Title: rút gọn link
Placement: In the topics
Javascript Code:
+ Thay vì hiển thị là link:
- Code:
http://www.cntt-k3.biz/t1172-topic
- Code:
.../t1172-topic
ACP => Modules => Javascript codes management => Creat a new javascript =>
Title: rút gọn link
Placement: In the topics
Javascript Code:
- Code:
// JavaScript Document
jQuery(document).ready(function(){
jQuery(".postbody a").each(function(){ jQuery(this).html(jQuery(this).html().toLowerCase().replace("http://www.cntt-k3.biz","...").split("#")[0]);
})
})