DEMO ở trang chủ nhé.
Bọc quanh ::last_site:: của TIF Exloader như sau:
Mã:<span name="last">::last_site::</span>
Post code sau ở dưới Exloader
Mã:<script language="javascript"> var msg=document.getElementsByName("last"); for(var i=0;i<msg.length;i++){ var oldtext=document.getElementsByName("last")[i].innerHTML; var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig,"$1$2"); so=newtext.replace(/\<a href=\"(.+?)&n=(.+?)\">(.+?)<\/a>/ig,'$2'); so1=so*1+1; so2=newtext.replace(/\<a href=\"(.+?)&n=(.+?)\">(.+?)<\/a>/ig,'<a href="$1&n=$2" class="trang">'+so1+'</a>'); newtext=newtext.replace(/\<a href=\"(.+?)&n=1\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a>'); newtext=newtext.replace(/\<a href=\"(.+?)&n=2\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a>'); newtext=newtext.replace(/\<a href=\"(.+?)&n=3\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>'); newtext=newtext.replace(/\<a href=\"(.+?)&n=4\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=5\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=6\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=7\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=8\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=9\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); newtext=newtext.replace(/\<a href=\"(.+?)&n=10\">(.+?)<\/a>/ig,'<a href="$1&n=1" class="trang">2</a> <a href="$1&n=2" class="trang">3</a> <a href="$1&n=3" class="trang">4</a>...'+so2+''); document.getElementsByName("last")[i].innerHTML=newtext; }</script>
Đây là tạm thời thôi. Phân trang tối đa 10 pape. 100 bài viết.
Nguồn:
IzziWap.Tk