Use the jquery.cookie plugin to save it as a parameter in cookie and onload
/ document.ready check the cookie if its set, if set use the configuration
otherwise use default.
Thanks & Regards,
Dhruva Sagar.


Jonathan Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html>
- "May you live every day of your life."

On Mon, Aug 31, 2009 at 6:41 PM, Michael <michaeljones...@gmail.com> wrote:

>
> How can I get the following code:
>
>  $(document).ready(function(){
>    $("#go").click(function(){
>  $(".block").animate( { backgroundColor: 'red' }, 1000);
> $(".block2").animate( { backgroundColor: 'green' }, 1000);
> });
>  });
>
> From:
> http://docs.jquery.com/Release:jQuery_1.2/Effects#Color_Animations
>
> To register a cookie so next time I visit the elements on the page are
> set to the color set above?.

Reply via email to