Đăng nhập
Latest topics
» Tôi sẽ đỗ đại học!by nightWalker 9/2/2024, 7:00 pm
» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm
» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm
» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm
» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am
» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am
» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm
» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am
» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm
» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am
» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm
» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am
» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm
» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm
» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm
» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm
» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm
» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm
» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am
» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm
» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm
» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm
» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am
» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm
» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am
Top posting users this week
No user |
popup tự động hiện ra
2 posters
Trang 1 trong tổng số 1 trang
popup tự động hiện ra
ai có có code tự động poup hiện ra cho e xin ví dụ như thông báo có đánh tá lả hay tiến lên....)
demo:
demo:
- Code:
http://chiplove.biz/family/
- Code:
http://www.vn-zoom.com/
Re: popup tự động hiện ra
Cho vào cuối Display >> Temaplates >> Index_body (nhớ chỉnh sửa "Link chuyển đến", "Nội dung")
- Code:
<script type="text/javascript">
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
var expires = '';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date;
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
}
// CAUTION: Needed to parenthesize options.path and options.domain
// in the following expressions, otherwise they evaluate to undefined
// in the packed version for some reason...
var path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : '';
document�cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie
var cookieValue = null;
if (document�cookie && document�cookie != '') {
var cookies = document�cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
};
/////////////////////// Garagames dialog //////////////////////
var allow_grg = $.cookie('grg_message');
$(document).ready(function(){
console.log("Cookie doc ready");
if (allow_grg != 'yes')
{
console.log("Cookies allows message");
$.cookie('grg_message', 'yes', { path: '/', expires: 2 });
if (confirm('Nội dung'))
{
window.location = 'Link chuyển đến';
}
}
else
{
console.log("Cookies prevents message");
}
});
//////////////////////////////////////////////////////////////////////////////////////////////
// bk ads //////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
/*
var allow_popupunder = $.cookie('open_popupunder');
var current_date = new Date();
if (allow_popupunder != 'yes')
{
var _click_popunder = false;
$(document).click(function(){
if (_click_popunder == false)
{
_click_popunder = true;
var exp_date = new Date(current_date.getFullYear(), current_date.getMonth(), (current_date.getDate()+1), 1, 1, 0, 0);
$.cookie('open_popupunder', 'yes', { path: '/', expires: exp_date });
var popunder="Link quảng cáo";
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";
var win2 = window.open(popunder, "name", winfeatures);
if (win2)
{
win2.blur();
}
window.focus();
}
});
}
*/
</script>
Similar topics
» Xin popup Quảng Cáo
» [Thắc mắc] Bật Popup[✔]
» giúp chèn ảnh vào Login popup
» cho em hỏi một chút về Login popup
» Bác nào có Popup Quảng cáo Cho mình Xin với
» [Thắc mắc] Bật Popup[✔]
» giúp chèn ảnh vào Login popup
» cho em hỏi một chút về Login popup
» Bác nào có Popup Quảng cáo Cho mình Xin với
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|