Dùng JavaScript để đếm số người
Vietnetvnn
Posted: Sep 30 2006, 03:36 PM


Tổng ðiều hành


Group: Administrator
Posts: 564
Member No.: 1
Joined: 9-January 05



Bạn chèn đoạn mã này ở bất kỳ vị trí nào bạn muốn.

<Script>
function fakecounter(){
var decrease_increase=-50000
var counterdate=new Date()
var currenthits=counterdate.getTime().toString()
currenthits=parseInt(currenthits.substring(2,currenthits.length-4))+decrease_increase
document.write("Bạn là người thứ #<b>"+currenthits+"</b> thăm website!")
}
fakecounter()
</Script>



--------------------
user posted image
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


Topic Options

Quyền Hạn Đăng Bài




Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.1743 seconds | Archive