[jQuery] Need a cookie to cap the frequency of my sliding div
I just tried the cookie I used with my scriptaculous sliding div & it
did not cap frequency. I would like my cookie to cap the frequency of $
('#slidebar').slideDown("normal"); but not prevent a user from using $
('#slidebartrigger').click(function(){$
('#slidebar').slideToggle(); }); to interact with the same div. Is
this possible?
My JQuery function
$(document).ready(function() {
initSlideboxes();
function initSlideboxes()
{
$('#slidebar').slideDown("normal");
setTimeout(function()
{
$('#slidebar').slideUp(3000);
}, 5000);
$('#slidebar').html($('#hidebar').html());
$('#slidebartrigger').click(function(){$
('#slidebar').slideToggle(); });
};
});