An Trần Digital
No Result
View All Result
Thứ Bảy, Tháng Một 16, 2021
  • Home
  • Tips
    • All
    • Thủ thuật Blogspot/Blogger
    • Thủ thuật IOS
    • Thủ thuật Phần Mềm
    • Thủ thuật Wordpress
    tao-sitemap-cho-blogger-blogspot-antrandigital

    Tạo Sitemap và Robots txt cho blogger/blogspot

    tạo-xếp-hạng-bình-luận-cho-blogger

    Tạo xếp hạng bình luận cho Blogger/Blogspot

    doi-mau-thanh-cuon-scrollbar-antrandigital

    Đổi màu thanh cuộn (scrollbar) bằng CSS3 cho blogspot/website

    phim-tat-facebook-antrandigital

    21 phím tắt Facebook giúp thao tác nhanh hơn

    wpbakery-page-builder-nulled-free-download-visual-commposer-antrandigital

    WPBakery Page Builder for WordPress 6.2.0 Free Download

    iphone-tin-nhan-spam-2020-antrandigital-3

    Cách khắc phục tin nhắn quảng cáo cá cược spam trên iPhone

    • Thủ thuật Phần Mềm
    • Thủ thuật WordPress
    • Thủ thuật Blogspot/Blogger
    • Thủ thuật IOS
  • Đồ hoạ
    • All
    • Action
    • Camera Raw
    • Preset Lightroom
    • Preset Mobile
    tao-hieu-ung-cho-anh-pro-oil-paint-photoshop-action-antrandigital

    Tạo hiệu ứng cho ảnh – Pro Oil Paint Photoshop Action

    tao-hieu-ung-cho-anh-beautiful-cartoon-photoshop-action-antrandigital

    Tạo hiệu ứng cho ảnh – Beautiful Cartoon Photoshop Action

    preset-chan-dung-anh-mau-dep-camera-raw-lightroom-cc-antrandigital

    10 preset chân dung ảnh màu đẹp cho Camera Raw & Lightroom CC

    chia-se-preset-camera-raw-han-quoc-antrandigital

    Chia sẻ preset camera raw hàn quốc xẻng blend ảnh đẹp

    chia-se-preset-lightroom-mobile-sieu-dep-cho-chinh-anh

    +1000 Chia sẻ Preset Lightroom Mobile siêu đẹp cho chỉnh ảnh

    top-10-extensions-danh-cho-designers-antrandigital

    Top 10 Extensions dành cho Designers

    • Preset Lightroom
    • Camera Raw
    • Preset Mobile
    • Action
  • Themes
    • All
    • Themes Blogger/Blogspot
    • Themes Wordpress
    share-rab-fashion-ecommerce-wordpress-theme-antrandigial

    RAB – Fashion eCommerce WordPress Theme free download

    chia-se-theme-seo-crawler-free-download-antrandigital

    Tải theme SEOCrawler WordPress Theme Free Download

    chia-se-theme-flatsome-full-mien-phi

    Chia sẻ theme Flatsome đã kích hoạt mới nhất cập nhật liên tục

    n-light-responsive-blogger-template-antrandigital

    Chia sẻ N Light Pro 6 Responsive Blogger Template chuẩn SEO

    chia-se-powerpoint-template-sieu-sin-antrandigital

    Chia sẻ PowerPoint Templates Siêu Xịn Giá Vài Trăm Đô

    Theme WordPress tin tức ColorMag miễn phí cực đẹp

    Theme WordPress tin tức ColorMag miễn phí cực đẹp

    • Themes WordPress
    • Themes Blogger/Blogspot
  • Khoá học miễn phí
    • All
    • Adobe
    • Kỹ năng - Đời sống
    • Lập Trình - Web
    • Marketing - SEO
    share-khoa-hoc-c-antrandigital

    Share khoá học lập trình C/C++ miễn phí

    chia-se-khoa-hoc-angularjs-antrandigital

    Chia sẻ khoá học Angular JS trọn bộ miễn phí tiếng việt

    chia-se-tai-lieu-hoc-tieng-anh-sieu-khung-antrandigital

    Chia sẻ tài liệu học tiếng Anh siêu khủng

    khoa-hoc-tieng-nhat-antrandigital

    Chia sẻ khoá học tiếng Nhật N2, N3, N4, N5 JLPT miễn phí

    chia-se-khoa-hoc-lap-trinh-android-antrandigital

    Chia sẻ khoá học lập trình Android và kiếm tiền từ tạo App

    khoa-hoc-chinh-phuc-ielts-6-5-tieng-viet-antrandigital

    Chia sẻ khoá học Chinh Phục IELTS 6.5 tiếng việt

    • Adobe
    • Marketing – SEO
    • Lập Trình – Web
    • Kỹ năng – Đời sống
  • Blog
Subscribe
An Trần Digital
  • Home
  • Tips
    • All
    • Thủ thuật Blogspot/Blogger
    • Thủ thuật IOS
    • Thủ thuật Phần Mềm
    • Thủ thuật Wordpress
    tao-sitemap-cho-blogger-blogspot-antrandigital

    Tạo Sitemap và Robots txt cho blogger/blogspot

    tạo-xếp-hạng-bình-luận-cho-blogger

    Tạo xếp hạng bình luận cho Blogger/Blogspot

    doi-mau-thanh-cuon-scrollbar-antrandigital

    Đổi màu thanh cuộn (scrollbar) bằng CSS3 cho blogspot/website

    phim-tat-facebook-antrandigital

    21 phím tắt Facebook giúp thao tác nhanh hơn

    wpbakery-page-builder-nulled-free-download-visual-commposer-antrandigital

    WPBakery Page Builder for WordPress 6.2.0 Free Download

    iphone-tin-nhan-spam-2020-antrandigital-3

    Cách khắc phục tin nhắn quảng cáo cá cược spam trên iPhone

    • Thủ thuật Phần Mềm
    • Thủ thuật WordPress
    • Thủ thuật Blogspot/Blogger
    • Thủ thuật IOS
  • Đồ hoạ
    • All
    • Action
    • Camera Raw
    • Preset Lightroom
    • Preset Mobile
    tao-hieu-ung-cho-anh-pro-oil-paint-photoshop-action-antrandigital

    Tạo hiệu ứng cho ảnh – Pro Oil Paint Photoshop Action

    tao-hieu-ung-cho-anh-beautiful-cartoon-photoshop-action-antrandigital

    Tạo hiệu ứng cho ảnh – Beautiful Cartoon Photoshop Action

    preset-chan-dung-anh-mau-dep-camera-raw-lightroom-cc-antrandigital

    10 preset chân dung ảnh màu đẹp cho Camera Raw & Lightroom CC

    chia-se-preset-camera-raw-han-quoc-antrandigital

    Chia sẻ preset camera raw hàn quốc xẻng blend ảnh đẹp

    chia-se-preset-lightroom-mobile-sieu-dep-cho-chinh-anh

    +1000 Chia sẻ Preset Lightroom Mobile siêu đẹp cho chỉnh ảnh

    top-10-extensions-danh-cho-designers-antrandigital

    Top 10 Extensions dành cho Designers

    • Preset Lightroom
    • Camera Raw
    • Preset Mobile
    • Action
  • Themes
    • All
    • Themes Blogger/Blogspot
    • Themes Wordpress
    share-rab-fashion-ecommerce-wordpress-theme-antrandigial

    RAB – Fashion eCommerce WordPress Theme free download

    chia-se-theme-seo-crawler-free-download-antrandigital

    Tải theme SEOCrawler WordPress Theme Free Download

    chia-se-theme-flatsome-full-mien-phi

    Chia sẻ theme Flatsome đã kích hoạt mới nhất cập nhật liên tục

    n-light-responsive-blogger-template-antrandigital

    Chia sẻ N Light Pro 6 Responsive Blogger Template chuẩn SEO

    chia-se-powerpoint-template-sieu-sin-antrandigital

    Chia sẻ PowerPoint Templates Siêu Xịn Giá Vài Trăm Đô

    Theme WordPress tin tức ColorMag miễn phí cực đẹp

    Theme WordPress tin tức ColorMag miễn phí cực đẹp

    • Themes WordPress
    • Themes Blogger/Blogspot
  • Khoá học miễn phí
    • All
    • Adobe
    • Kỹ năng - Đời sống
    • Lập Trình - Web
    • Marketing - SEO
    share-khoa-hoc-c-antrandigital

    Share khoá học lập trình C/C++ miễn phí

    chia-se-khoa-hoc-angularjs-antrandigital

    Chia sẻ khoá học Angular JS trọn bộ miễn phí tiếng việt

    chia-se-tai-lieu-hoc-tieng-anh-sieu-khung-antrandigital

    Chia sẻ tài liệu học tiếng Anh siêu khủng

    khoa-hoc-tieng-nhat-antrandigital

    Chia sẻ khoá học tiếng Nhật N2, N3, N4, N5 JLPT miễn phí

    chia-se-khoa-hoc-lap-trinh-android-antrandigital

    Chia sẻ khoá học lập trình Android và kiếm tiền từ tạo App

    khoa-hoc-chinh-phuc-ielts-6-5-tieng-viet-antrandigital

    Chia sẻ khoá học Chinh Phục IELTS 6.5 tiếng việt

    • Adobe
    • Marketing – SEO
    • Lập Trình – Web
    • Kỹ năng – Đời sống
  • Blog
No Result
View All Result
An Trần Digital
No Result
View All Result
Home Thủ thuật Thủ thuật Blogspot/Blogger

Cách tạo popup thông báo khi thoát Website/Blog

by An Trần
08/07/2020
in Thủ thuật Blogspot/Blogger
0
cach-tao-popup-thong-bao-khi-thoat-website-blog-antrandigital

Nay mình sẽ hướng dẫn mọi người làm thế nào tạo popup thông báo khi thoát website/blog. Thì popup này xuất hiện khi có người vào truy cập vào website/blog của chinh mình thì khi thoát sẽ hiện thông báo hỏi có chắc muốn thoát không? hoặc các bạn có thể tận dụng popup này để gửi lời cám ơn mọi người đã đến website & chút một ngày tốt lành !!!.

Cách thực hiện:

  • Bước 1: Đăng nhập vào Blogger
  • Bước 2: Chọn Mẫu -> Tuỳ chỉnh HTML
  • Bước 3: Tiếp theo copy toàn bộ đoạn script này và thêm trước thẻ </head>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
&lt;script&gt; var exittraffic_splashalertmessage = "CÁM ƠN CÁC BẠN ĐÃ ĐẾN VỚI AN TRẦN DIGITAL"; &lt;/script&gt;
&lt;script type='text/javascript'&gt;
//&lt;![CDATA[
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') &gt; -1;
var is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') &gt; -1;
 
function DisableExitTraffic() {
PreventExitSplash = true;
}
 
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
}
else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
function addClickEvent(a, i, func) {
if (typeof a[i].onclick != 'function') {
a[i].onclick = func;
}
}
theBody = document.body;
if (!theBody) {
theBody = document.getElementById("body");
if (!theBody) {
theBody = document.getElementsByTagName("body")[0];
}
}
var PreventExitSplash = false;
var LightwindowOpening = false;
function DisplayExitSplash() {
 
if (PreventExitSplash == false) {
 
 
window.scrollTo(0, 0);
if (is_firefox) {
//window.alert(exittraffic_splashalertmessage);
}
PreventExitSplash = true;
if (is_chrome||is_firefox) {
timeout_variable = setTimeout("exittraffic_change_url();", 1000);
} else {
document.location.href = exittraffic_RedirectUrl;
}
 
return exittraffic_splashalertmessage;
}
}
var a = document.getElementsByTagName('A');
for (var i = 0; i &lt; a.length; i++) {
if (a[i].target !== '_blank') {
addClickEvent(a, i, function() {
PreventExitSplash = true;
});
}
else {
addClickEvent(a, i, function() {
PreventExitSplash = false;
});
}
}
disablelinksfunc = function() {
var a = document.getElementsByTagName('A');
for (var i = 0; i &lt; a.length; i++) {
if (a[i].target !== '_blank') {
addClickEvent(a, i, function() {
PreventExitSplash = true;
});
}
else {
addClickEvent(a, i, function() {
PreventExitSplash = false;
});
}
}
}
 
addLoadEvent(disablelinksfunc);
 
disableformsfunc = function() {
// Makes that clicking on the links on the page will not cause this popup to appear
var f = document.getElementsByTagName('form');
for (var i = 0; i &lt; f.length; i++) {
if (!f[i].onclick) {
f[i].onclick = function() {
if (LightwindowOpening == false) {
PreventExitSplash = true;
}
}
}
else if (!f[i].onsubmit) {
f[i].onsubmit = function() {
PreventExitSplash = true;
}
}
}
}
 
function exittraffic_change_url() {
disable_confirmation = false;
clearTimeout(timeout_variable); // just to make sure
document.location.href=exittraffic_RedirectUrl;
}
 
addLoadEvent(disableformsfunc);
window.onbeforeunload = DisplayExitSplash;
//]]&gt;
&lt;/script&gt;

Ngoài ra các bạn có thể xem thêm:

Các khoá học miễn phí

Tạo hiệu ứng cho ảnh

CHÚC CÁC BẠN THÀNH CÔNG !!!

Đánh giá post

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • More
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Telegram (Opens in new window)
Tags: tạo popup thông báo thoát websitethủ thuật blogger
Previous Post

15 website giúp bạn xả stress hiệu quả trong công việc

Next Post

Chia sẻ N Light Pro 6 Responsive Blogger Template chuẩn SEO

An Trần

An Trần

Tôi là An Trần, thuộc thế hệ 9X. Hiện tại đang làm nhân viên cắt cỏ tại sân Old Trafford

Related Posts

tao-sitemap-cho-blogger-blogspot-antrandigital
Thủ thuật Blogspot/Blogger

Tạo Sitemap và Robots txt cho blogger/blogspot

16/09/2020
tạo-xếp-hạng-bình-luận-cho-blogger
Thủ thuật Blogspot/Blogger

Tạo xếp hạng bình luận cho Blogger/Blogspot

05/09/2020
doi-mau-thanh-cuon-scrollbar-antrandigital
Thủ thuật Blogspot/Blogger

Đổi màu thanh cuộn (scrollbar) bằng CSS3 cho blogspot/website

13/08/2020
Next Post
n-light-responsive-blogger-template-antrandigital

Chia sẻ N Light Pro 6 Responsive Blogger Template chuẩn SEO

0 0 vote
Đánh Giá
Subscribe
Login
Notify of
guest

Hãy dùng tên của bạn khi comment, không sử dụng keyword trong ô Name. Xin cảm ơn!

guest

Hãy dùng tên của bạn khi comment, không sử dụng keyword trong ô Name. Xin cảm ơn!

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.

0 Comments
Inline Feedbacks
View all comments

Đăng ký nhận bài viết
AnTranDigital

Để cập nhật nội dung nhanh nhất từ website

Cảm ơn bạn đã đăng ký.

Đã xảy ra lỗi.

thông tin của bạn 100% bảo mật

  • Trending
  • Comments
  • Latest
tao-hieu-ung-dep-cho-anh-bang-photoshop-grunge-action-antrandigital

Tạo hiệu ứng ảnh đẹp với Grunge Photoshop Action

11/06/2020
IDM-toolkit-moi-nhat-antrandigital

Tải IDM Toolkit 4.7 Full mới nhất kích hoạt tự động

12/07/2020
tao-hieu-ung-lap-lanh-cho-anh-sparkle-action-antrandigital

Tạo hiệu ứng sáng lấp lánh cho ảnh – Sparkle Photoshop Action

07/07/2020
hieu_ung_khoi_bui_dam_chat_ngau_storm_photoshop_action_antrandigital_1

Tạo hiệu ứng khói bụi đậm chất ngầu cho ảnh bằng photoshop – Storm Photoshop Action

14/06/2020
khoa-hoc-adobe-indesign-toan-tap-antrandigital

Chia sẻ khoá học Adobe InDesign CC toàn tập

2
Theme WordPress tin tức ColorMag miễn phí cực đẹp

Theme WordPress tin tức ColorMag miễn phí cực đẹp

2
camera_raw_photoshop_antrandigital

2000+ Preset Camera Raw chỉnh màu ảnh đẹp nhất

2
tao-hieu-ung-dep-cho-anh-bang-photoshop-grunge-action-antrandigital

Tạo hiệu ứng ảnh đẹp với Grunge Photoshop Action

1
tao-hieu-ung-cho-anh-pro-oil-paint-photoshop-action-antrandigital

Tạo hiệu ứng cho ảnh – Pro Oil Paint Photoshop Action

15/01/2021
tao-hieu-ung-cho-anh-beautiful-cartoon-photoshop-action-antrandigital

Tạo hiệu ứng cho ảnh – Beautiful Cartoon Photoshop Action

14/01/2021
share-rab-fashion-ecommerce-wordpress-theme-antrandigial

RAB – Fashion eCommerce WordPress Theme free download

09/01/2021
preset-chan-dung-anh-mau-dep-camera-raw-lightroom-cc-antrandigital

10 preset chân dung ảnh màu đẹp cho Camera Raw & Lightroom CC

07/01/2021

Kiếm Tiền Online



An Trần Digital

An Trần Digital là blog cá nhân chia sẻ hiệu ứng cho ảnh, preset lightroom, camera raw & khoá học miễn phí của Udemy, Unica

Tin mới nhất

  • Tạo hiệu ứng cho ảnh – Pro Oil Paint Photoshop Action
  • Tạo hiệu ứng cho ảnh – Beautiful Cartoon Photoshop Action
  • RAB – Fashion eCommerce WordPress Theme free download

Hợp tác

Shop hoa quận 7 hoa18 - Đối tác 1 - Đối tác 2 - Đối tác 3

Bạn cần gì?

  • Giới thiệu
  • Privacy Policy
  • Bản quyền
  • Hợp tác
  • Liên hệ

© 2020 AnTranDigital - Powered by An Tran

No Result
View All Result
  • Home
  • Tips
    • Thủ thuật Phần Mềm
    • Thủ thuật WordPress
    • Thủ thuật Blogspot/Blogger
    • Thủ thuật IOS
  • Đồ hoạ
    • Preset Lightroom
    • Camera Raw
    • Preset Mobile
    • Action
  • Themes
    • Themes WordPress
    • Themes Blogger/Blogspot
  • Khoá học miễn phí
    • Adobe
    • Marketing – SEO
    • Lập Trình – Web
    • Kỹ năng – Đời sống
  • Blog

© 2020 AnTranDigital - Powered by An Tran

wpDiscuz