+1
This will is a very handy feature to have :)
On Wed, Oct 8, 2008 at 7:11 PM, Jörn Zaefferer <
[EMAIL PROTECTED]> wrote:
> Hi,
>
> would this be useful as part of the accordion?
>
> jQuery(function($) {
> var userpanel = $("#accordion");
> var index = $.cookie("accordion");
> var active;
> if (index !== undefined) {
> active = userpanel.find("h3:eq(" + index + ")");
> }
> userpanel.accordion({
> header: "h3",
> event: "hoverintent",
> active: active,
> change: function(event, ui) {
> var index = $(this).find("h3").index (
> ui.newHeader[0] );
> $.cookie("accordion", index);
> }
> });
> });
>
> Eg. something like this:
>
> $("...").accordion({
> cookie: true // or other options passed through to $.cookie
> });
>
> Jörn
>
> >
>
--
Ca-Phun Ung
+ http://yelotofu.com
+ css, django, hongkong, html, javascript, php
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---