CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Ajax and Design (http://www.codingforums.com/forumdisplay.php?f=55)
-   -   How to set session based Hide/show message notice? (http://www.codingforums.com/showthread.php?t=249066)

toplisek 01-17-2012 09:09 AM

How to set session based Hide/show message notice?
 
I have set Javascript function to Expand or Collapse my messages.

PHP Code:



<div onclick="javascript:js_message.expcollap();" style="">&nbsp;</div>

<
button id="show">Show</button>


<
script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
var js_message = {expcollap:function () {$("#message_notice").click(function(){$("div").hide(1000);});$("#show").click(function(){$("div").show();});
}}
/*]]>*/
</script> 

How to set session value that user will see this message only once even he visits page twice (back button or click on the same URL).


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.