YTabs.tabs({
tabId: 'yTabs',
tTag: 'dd',
cTag: 'dt'
}, {
tabs: YTabs.getByClassName('main-tab', 'li', 'main_navigation'),
contents: YTabs.getByClassName('submenu', 'ul', 'main_navigation')
}, {
tabId: 'letters',
tTag: 'li',
cTag: 'dl',
hideAll: true,
previousClass: 'off'
}, {
tabs: YTabs.getByClassName('main-tab', 'li', 'menus'),
contents: YTabs.getByClassName('sub-menu', 'ul', 'menus'),
hideAll: true
}, {
tabs: document.getElementById('sports').getElementsByTagName('li'),
contents: YTabs.getByClassName('cnt', 'div', 'yahooskin'),
evt: 'click',
defaultClass: 'first',
previousClass: 'off'
}, {
tabId: 'news',
tTag: 'li',
defaultIndex: 2,
contents: document.getElementById('newsCnt').getElementsByTagName('ul'),
evt: 'click'
}, {
tabId: 'dishes',
tTag: 'h4',
cTag: 'p'
}, {
tabId: 'cmt-list',
tTag: 'h4',
contents: YTabs.getByClassName('bd', 'div', 'cmt-list'),
defaultIndex: 1,
evt: 'click'
});
希望整理的这些东西对大家的开发有帮助!!