#5 » gửi bởi Tamhoangdk » 28/06/2014 18:05 » @329894
Post code sau vào site -2 (Footer)[text]<script language="javascript">var msg=document.getElementsByName("exload"); for(var i=0;i<msg.length;i++){ var oldtext=document.getElementsByName("exload")[i].innerHTML; var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig,"$1$2"); newtext=newtext.replace(/forum2_theme_(.+?).xhtml\?tema=(.+?)">(.+?)<\/a> <font style=\"display:none\">(.+?)-(.+?)<\/font\>/ig,"forum2_theme_$1.xhtml?tema=$2&get-tema=$2&get-msg=$5&get-topic=$3&get-view=$4:admin-hash-amp:\">$3</a>"); newtext=newtext.replace(/n=(.+?)">/ig,'n=$1:admin-hash-amp:">'); document.getElementsByName("exload")[i].innerHTML=newtext; }</script><script language="javascript">
var msg=document.getElementsByName("user");
for(var i=0;i<msg.length;i++){
var oldtext=document.getElementsByName("user")[i].innerHTML;
var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig, "$1$2"); newtext=newtext.replace(/-(.+?)\">(.+?)<\/span\>-/ig, "<\a href=\"profile_0.xhtml?u=$2:admin-hash-amp:\">$1\">$2<\/span\><\/a\>"); newtext=newtext.replace(/-(.+?)-/ig, "<\a href=\"profile_0.xhtml?u=$1:admin-hash-amp:\">$1<\/a\>"); document.getElementsByName("user")[i].innerHTML=newtext;
}</script><script language="javascript">
var msg=document.getElementsByName("topic");
for(var i=0;i<msg.length;i++){
var oldtext=document.getElementsByName("topic")[i].innerHTML;
var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig, "$1$2");
newtext=newtext.replace(/\[b\](.+?)\[\/b\]/ig, "<b>$1</b>");
newtext=newtext.replace(/\[u\](.+?)\[\/u\]/ig, "<u>$1</u>");
document.getElementsByName("topic")[i].innerHTML=newtext;
}
</script>[/text]
- Những người đã like Tamhoangdk bởi bài viết có ích này (Tổng: 3):
- Merilo • Hieukissyou • Vipvip