2014/02/18

Code popup mở ra nhiều New Tab khi click vào web blogspot

Code popup mở ra nhiều new tab khi click vào web blogspot. Code javascript khi click chuột vào web sẽ nhảy ra nhiều new tab. Sau đây hethonggoogle  xin chia sẻ với các bạn bộ Code popup mở ra nhiểu new tab khi click vào web mình check thử thì thấy cũng ok.

Code này chạy như sau: Click vào web laan1 f mở ra 1 tab, click vào lần 2 nhày ra 1 tab. Các bạn thử làm sẽ thấy.

Bài viết bạn có thể quan tâm:

Tổng hợp các loại code popup cho web - blog

Code popup mở ra nhiều new tab khi click vào web

Trước tiên bạn phảo vào phẩn chỉnh sửa code của web site và blog cảu bạn và làm theo bước sau

Bước 1: Copy đoạn code dưới đây lên trên thẻ đóng </head>


<script language='javascript'>
//<![CDATA[

var bittuot=0;
function ADS_GetCookie(Name){
var re=new RegExp(Name+"=[^;]+", "i");
if (document.cookie.match(re))
return decodeURIComponent(document.cookie.match(re)[0].split("=")[1]);
return ""
}

function ADS_SetCookie(name, value, days){
if (typeof days!="undefined"){
var expireDate = new Date()
var expstring=expireDate.setDate(expireDate.getDate()+days)
document.cookie = name+"="+decodeURIComponent(value)+"; expires="+expireDate.toGMTString()
}
else document.cookie = name+"="+decodeURIComponent(value);
}

function vtlai_popup()
{

var cookie_popup_ads = ADS_GetCookie('bittuot_popup_ads');
if (cookie_popup_ads=='') {
if(bittuot==0)
{
bittuot=1;
var Time_expires = 24 * 3600 * 1000;
ADS_SetCookie('bittuot_popup_ads','true',Time_expires);
var params = 'width=' + '600';
params += ', height=' + '500';
params += ',scrollbars=yes,status=1,toolbar=1,menubar=1,resizable=1,location=1,directories=1';

var vtlai_popup_0 = window.open('http://bittuot.blogspot.com/', 'vtlai_popup_0', params +', top=0,left=0');

var vtlai_popup_1 = window.open('http://bittemplates.blogspot.com/', 'vtlai_popup_1', params +', top=0,left=0');

var vtlai_popup_2 = window.open('link web 3', 'vtlai_popup_2', params +', top=0,left=0');

var vtlai_popup_3 = window.open('link web 4', 'vtlai_popup_3', params +', top=0,left=0');

}

}
}
//]]>
</script>

Chý ý : Các bạn sửa lại link popup nhé

Bước 2: Tìn thẻ <body> rổi sauwr nó thành <body onclick='vtlai_popup();'>

Chúc các bạn thành công !
by hệ thống google : hethonggoogle.blogspot.com

1 comments: