Cookie in show/hide div toggle?

Toggle seems to set the height back and forth from 0 and the 'normal' value ( source: api.jquery.com/animate ).

Toggle seems to set the height back and forth from 0 and the 'normal' value ( source: api.jquery.com/animate/ ). As the last line of your function, perhaps you can add: if ( $('#news1'). Css('height')==0 ) # set cookie here with jquery cookie plugin or browser mechanism # see stackoverflow.com/questions/1458724/how-... And then add appropriate code before the document is ready: "if I detect the cookie says it was hidden last time, don't show it" edit: though if you are doing this a lot, I would recommend a framework or plugin that has well-supported mechanism for this.

For cookie manipulation you could use jQuery. Cookie the code will become: function Showanimate({"height": 0}, 250, function() { //this is a callback function. Set the cookie here }); } you will also need another js code to check if the cookie is set to hide the div and according hide it.It is better to execute this code on page load or even better, at dom ready.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions