Auto change page-tăng lượng pageview và traffic tự động
Friday, 5. December 2008, 14:34:08
Đây là code có kèm theo hướng dẫn:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Auto change page by babyinternet - www.n2dgroup.com</title>
<script>
<!--
//Script created by babyinternet
//Website: www.n2dgroup.com
//Thoi gian sau cho sau moi lan chuyen trang
//Gia tri se co dinh dang "phut:giay"
var limit="0:20"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" phút "+cursec+" giây trước khi chuyển san trang khác"
else
curtime=cursec+" giây trước khi chuyển sang trang khác"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var howMany = 10; // So item trong danh sach cac trang
var page = new Array(howMany+1);
page[0]="http://www.sanlung.net/heocon";
page[1]="http://www.sanlung.net/anhdoc";
function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
function refreshFrame() {
quo = rndnumber();
quox = page[quo];
frames['changeme'].window.location.href = quox;
}
</SCRIPT>
</head>
<frameset onLoad="refreshFrame(); beginrefresh();">
<frame name="changeme" src="" width="100%" height="100%">
</frameset>
</html>
Bạn chỉ việc thay thế cái đường dẫn trong mảng page[] là có thể sử dụng. Lưu ý: để tăng cường hiệu quả, máy tính được sử dụng cho việc này nên được cài alexa toolbar, website nên cài đặt sẵn công cụ Google Analytics.
Chúc các bạn thành công













