‘+ data [ii] [i] .title +’
‘; } Else {var item = ‘
‘ + data [ii] [i] .time + ‘
‘ + data [ii] [i] .title + ‘
‘; } $ (‘#nb _’ + Ii) .append (item); }} If (findActive == 2) {$ (‘.titles_wrap h3: eq (0)’). Clone (true) .appendTo (‘. Titles_wrap’); $ (‘.titles_wrap H3: eq (0)’). Remove (); $ (‘#wi_news_inner’). Css ({‘margin-left’: ‘-235px’}); $ (‘#wi_news_inner Ul: eq (0)’). Clone (true) .appendTo (‘# wi_news_inner’); $ (‘#wi_news_inner Ul: eq (0)’). Remove (); $ (‘#wi_news_inner’). Css ({marginLeft: ’0px’}); } If (findActive == 3) {$ (‘.titles_wrap h3: eq (0)’). Clone (true) .appendTo (‘. Titles_wrap’); $ (‘.titles_wrap H3: eq (1)’). Clone (true) .appendTo (‘. Titles_wrap’); $ (‘.titles_wrap H3: eq (0), .titles_wrap h3: eq (1)’). Remove (); $ (‘#wi_news_inner’). Css ({‘margin-left’: ‘-470px’}); $ (‘#wi_news_inner Ul: eq (0)’). Clone (true) .appendTo (‘# wi_news_inner’); $ (‘#wi_news_inner Ul: eq (1)’). Clone (true) .appendTo (‘# wi_news_inner’); $ (‘#wi_news_inner Ul: eq (0), #wi_news_inner ul: eq (1)’). Remove (); $ (‘#wi_news_inner’). Css ({marginLeft: ’0px’}); } $ (‘#wi_news_inner Ul: eq (0)’). AddClass (‘active_ul’); $ (‘.active_ul .slider_new’). SlideDown (); $ (‘.slider_new’). Css ({‘display’: ‘block’}); $ (‘#widget H3′). Click (function () {if ($ (this) .hasClass (‘active’) == false) {$ (‘.titles_wrap’). FadeOut (100); $ (this) .addClass (“clicked”); $ (‘.active_ul’). removeClass (‘active_ul’); $ (‘#widget h3′). each (function (i) {if ($ (this) .hasClass (“clicked “)) na = i + 1;}); if (na == 2) {$ (‘.titles_wrap h3: eq (0)’). clone (true) .appendTo (‘. titles_wrap’); $ (‘ .titles_wrap h3: eq (0) ‘). remove (); $ (‘ #wi_news_inner ‘). animate ({‘ margin-left ‘:’ -235px ‘}, 300); setTimeout (function () {$ (‘ #wi_news_inner ul: eq (0) ‘). clone (true) .appendTo (‘ # wi_news_inner ‘); $ (‘ #wi_news_inner ul: eq (0) ‘). remove (); $ (‘ #wi_news_inner ‘). css ({marginLeft: ’0px’}); $ (‘#wi_news_inner ul: eq (0)’). addClass (‘active_ul’);}, 330);} if (na == 3) {$ (‘. titles_wrap h3: eq (0) ‘). clone (true) .appendTo (‘. titles_wrap ‘); $ (‘ .titles_wrap h3: eq (1) ‘). clone (true) .appendTo (‘. titles_wrap ‘); $ (‘.titles_wrap h3: eq (0), .titles_wrap h3: eq (1)’). remove (); $ (‘#wi_news_inner’). Animate ({‘margin-left’: ‘-470px’}, 300); setTimeout (function () {$ (‘#wi_news_inner ul: eq (0)’). clone (true) .appendTo (‘# wi_news_inner’); $ (‘#wi_news_inner ul: eq (1)’). clone (true ) .appendTo (‘# wi_news_inner’); $ (‘#wi_news_inner ul: eq (0), #wi_news_inner ul: eq (1)’). remove (); $ (‘#wi_news_inner’). css ({marginLeft: ’0px’}); $ (‘#wi_news_inner ul: eq (0)’). addClass (‘active_ul’);}, 330); } $ (‘.titles_wrap’). FadeIn (); $ (‘.active’). RemoveClass (‘active’); $ (This) .removeClass (‘clicked’). AddClass (‘active’); }}); }); } ParseData (true); setInterval (function () {parseData (false)}, 300000); // Update widget codeFlag = 0; $ (‘.wi_code_link’). Click (function () {if (codeFlag == 0) {$ (‘.wi_code_block’). Show (300); codeFlag = 1;} else {$ (‘.wi_code_block’). hide (300); codeFlag = 0;} return false}); $ (‘.wi_code_block_close’). Click (function () {$ (‘.wi_code_block’). Hide (300); codeFlag = 0; return false}); $ (‘.wi_code_source’). Click (function () {$ (this) .select ();}); } ()); / * End widget * /
No comments:
Post a Comment