hello all
i need a code for guest to view topics for few seconds then a fade box opens to register
any help ?
thanks
i need a code for guest to view topics for few seconds then a fade box opens to register
any help ?
thanks
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div style="position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
}
}, 3000);
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div id="popup-filter" style="cursor:pointer;position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div id="pop-container" style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
jQuery('#popup-filter').click(function(){ jQuery('#popup-filter, #pop-container').remove(); });
}
}, 3000);
Good morning SethC1995,SethC1995 wrote:If you wish for a code that you can close then you can have it here:
I wrote a quick code to see if it is what the user wants. If you would wish to add to the code for the user, feel free.
- Code:
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div id="popup-filter" style="cursor:pointer;position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div id="pop-container" style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
jQuery('#popup-filter').click(function(){ jQuery('#popup-filter, #pop-container').remove(); });
}
}, 3000);
setTimeout(function(){
if (!document.getElementById('logout')) { window.location.href = "/forum" }
}, 3000);