<script type="text/javascript">
$(document).ready(function() {
// check cookie
var visited = $.cookie("visited")
if (visited == null) {
$('.newsletter_layer').show();
$.cookie('visited', 'yes');
alert($.cookie("visited"));
}
// set cookie
$.cookie('visited', 'yes', { expires: 1, path: '/' });
});
</script>
Arun Rama Balan.G is Tech Lead of Zerosoft Technologies, Thooththukudi. I had received a bachelor degree in computer science from SBK College - Aruppukottai and Masters degree in Computer Application from VHNSN College - Virudhunagar. I found these below solutions from GOOGLE SEARCH. So I update this solutions from Out side sources. Not My OWN Contents. Credit goes to Original authors..
Monday, August 19, 2013
jQuery set cookie for first visit
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment