From 3cd17192864c5df8e9c7693608f3c1c3dd9e948a Mon Sep 17 00:00:00 2001 From: prashant Date: Tue, 23 Sep 2014 17:34:35 +0530 Subject: added cookies expire time and pointer in popup message box --- css/feedback_popup.css | 16 ++++++++++------ js/feedback-bar.js | 14 +++++++------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/css/feedback_popup.css b/css/feedback_popup.css index e9a3312..935285f 100755 --- a/css/feedback_popup.css +++ b/css/feedback_popup.css @@ -9,41 +9,43 @@ z-index:9; } .popup_box .header .min_btn { - background: url(../images/arrow.png) no-repeat 0px -9px; - + background: url(../images/arrow.png) no-repeat 0px -9px; float: right; width: 15px; height: 15px; + cursor: pointer; } .popup_box .header .max_btn { - background: url(../images/arrow.png) no-repeat 0px 3px; - + background: url(../images/arrow.png) no-repeat 0px 3px; float: right; width: 15px; height: 15px; + cursor: pointer; } .popup_box .header .min_max .min_btn { background: url(../images/arrow.png) no-repeat 0px -9px; float: right; width: 15px; height: 15px; + cursor: pointer; } .popup_box .header .closee_btn { background: url(../images/close_btn.png) no-repeat 0px 0px; float: right; width: 15px; height: 15px; + cursor: pointer; } .popup_box .header .closee_btn:hover { background: url(../images/close_btn.png) no-repeat 0px -16px; + cursor: pointer; } .popup_box .header{ padding: 5px 3px 5px 5px; font: 11px 'lucida grande', tahoma, verdana, arial, sans-serif; font-weight: bold; color:#fff; - border-bottom:none; - cursor: pointer; + border-bottom:none; } .popup_box .header:hover{ background-color: #ea9c4d; @@ -57,6 +59,7 @@ font-weight: bold; color:#fff; padding-top: 10px; + cursor: default; } #cookie_box { @@ -64,5 +67,6 @@ display: none; bottom: 0px; z-index: 2000; + cursor: default; } diff --git a/js/feedback-bar.js b/js/feedback-bar.js index 07dfc14..2f8c567 100755 --- a/js/feedback-bar.js +++ b/js/feedback-bar.js @@ -31,13 +31,13 @@ $(document).ready(function() { setCookie('show_cookie_message','no'); return false; }); -}); - -function setCookie(cookie_name, value) -{ - document.cookie = cookie_name+ "=" + escape(value); +}); +function setCookie(cookie_name, value) { + var today = new Date(); + var expire = new Date(); + expire.setTime(today.getTime() + ( 2 * 60 * 60 * 1000)); + document.cookie = cookie_name+"="+escape(value) + ";expires="+expire.toGMTString(); } - function getCookie(cookie_name) { if (document.cookie.length>0) @@ -55,4 +55,4 @@ function getCookie(cookie_name) } } return ""; -} +} \ No newline at end of file -- cgit