开发者

the jquery theme switcher "loadTheme" doesn't work

开发者 https://www.devze.com 2023-02-28 18:36 出处:网络
I want when page loaded ,load jquery ui theme \'vader\' so the code: $(\'#switcher\').themeswitcher({ loadTheme: \'vader\',

I want when page loaded ,load jquery ui theme 'vader'

so the code:

    $('#switcher').themeswitcher({
        loadTheme: 'vader',
        width: 160
    });

but the page can only load the theme I selected last time

I have collect all theme folders in localhost,I doesn't change the theme folder name

and I can choose different theme normally and correctly,the element's style could changed,but it can not just load the theme I appointed

So what's wrong with my code? how can I solve this probl开发者_StackOverflowem ?


Looks like the loadTheme-option is overriden by an existing cookie.

Try:

$('#switcher').themeswitcher({loadTheme: 'Vader', cookieName:'', width: 160});

(also note the uppercase V in Vader, the theme-names are case-sensitive)

0

精彩评论

暂无评论...
验证码 换一张
取 消