I apologize, this is maybe not exactly the markup you were lookin for but is a great start! LOOK AT THIS EXAMPLE I CREATED: JSFiddle - COOKIES DEMO (Refresh the page after any change! ) Use for Ex this HTML: div id="menu_holder"> Menu title 1 List 1 List 2 List 3 Menu title 2 List 1 List 2 List 3 Menu title 3 List 1 List 2 List 3 And here is the jQuery script I used for the demo: $(document).
Ready(function(){ $("ul. List").hide(); // Button'). Each(function(){ // For each button if ($.
Cookie( $(this). Attr("id") ) == 'open') // wich cookie value... { // is equal to the button ID $(this).next().show(); // ...show next element (ul) $(this). AddClass('opened'); // and add to this button a class 'opened' } }); $("h2.
Button"). Click(function(){ // ON CLICK: $(this). ToggleClass('opened'); // toggle class.
If ( $(this). HasClass('opened') ) { $. Cookie( $(this).
Attr("id") , 'open' , {expires: 1} ); } else { $. Cookie( $(this). Attr("id") , null , {expires: 1} ); }; $(this).next().
SlideToggle(800); }); }) To see how cookies are handled, install Firebug and his Cookies plugin! Click the buttons and see the response Leave a comment for any question!
I apologize, this is maybe not exactly the markup you were lookin for but is a great start! LOOK AT THIS EXAMPLE I CREATED: JSFiddle - COOKIES DEMO (Refresh the page after any change! ) Use for Ex this HTML: Menu title 1 List 1 List 2 List 3 Menu title 2 List 1 List 2 List 3 Menu title 3 List 1 List 2 List 3 DOWNLOAD THIS jQuery COOKIES plugin --> HERE!
And here is the jQuery script I used for the demo: $(document). Ready(function(){ $("ul. List").hide(); //Button').
Each(function(){ // For each button if ($. Cookie( $(this). Attr("id") ) == 'open') // wich cookie value... { // is equal to the button ID $(this).next().show(); // ...show next element (ul) $(this).
AddClass('opened'); // and add to this button a class 'opened' } }); $("h2. Button"). Click(function(){ // ON CLICK: $(this).
ToggleClass('opened'); // toggle class. If ( $(this). HasClass('opened') ) { $.
Cookie( $(this). Attr("id") , 'open' , {expires: 1} ); } else { $. Cookie( $(this).
Attr("id") , null , {expires: 1} ); }; $(this).next(). SlideToggle(800); }); }); To see how cookies are handled, install Firebug and his Cookies plugin! Click the buttons and see the response.
Leave a comment for any question!
Thanks roxon. Could you give me some direction to apply this code for the tabs – kim45 May 20 at 13:32 After you studyed how COOKIES work go to stackoverflow. Com/questions/1370417/… to find more answers!
– roXon May 20 at 13:37.
DOWNLOAD THIS jQuery COOKIES plugin --> HERE! To see how cookies are handled, install Firebug and his Cookies plugin! Click the buttons and see the response.
Leave a comment for any question!
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.