html5 %3cul 标签,index.html
$(function() {
BJUI.init({
JSPATH : 'BJUI/', //[可選]框架路徑
PLUGINPATH : 'BJUI/plugins/', //[可選]插件路徑
loginInfo : {url:'login_timeout.html', title:'登錄', width:400, height:200}, // 會(huì)話超時(shí)后彈出登錄對(duì)話框
statusCode : {ok:200, error:300, timeout:301}, //[可選]
ajaxTimeout : 50000, //[可選]全局Ajax請(qǐng)求超時(shí)時(shí)間(毫秒)
pageInfo : {total:'total', pageCurrent:'pageCurrent', pageSize:'pageSize', orderField:'orderField', orderDirection:'orderDirection'}, //[可選]分頁參數(shù)
alertMsg : {displayPosition:'topcenter', displayMode:'slide', alertTimeout:3000}, //[可選]信息提示的顯示位置,顯隱方式,及[info/correct]方式時(shí)自動(dòng)關(guān)閉延時(shí)(毫秒)
keys : {statusCode:'statusCode', message:'message'}, //[可選]
ui : {
windowWidth : 1200, //框架顯示寬度,0=100%寬,> 600為則居中顯示
showSlidebar : true, //[可選]左側(cè)導(dǎo)航欄鎖定/隱藏
clientPaging : true, //[可選]是否在客戶端響應(yīng)分頁及排序參數(shù)
overwriteHomeTab : false //[可選]當(dāng)打開一個(gè)未定義id的navtab時(shí),是否可以覆蓋主navtab(我的主頁)
},
debug : true, // [可選]調(diào)試模式 [true|false,默認(rèn)false]
theme : 'sky' // 若有Cookie['bjui_theme'],優(yōu)先選擇Cookie['bjui_theme']。皮膚[五種皮膚:default, orange, purple, blue, red, green]
})
// main - menu
$('#bjui-accordionmenu')
.collapse()
.on('hidden.bs.collapse', function(e) {
$(this).find('> .panel > .panel-heading').each(function() {
var $heading = $(this), $a = $heading.find('> h4 > a')
if ($a.hasClass('collapsed')) $heading.removeClass('active')
})
})
.on('shown.bs.collapse', function (e) {
$(this).find('> .panel > .panel-heading').each(function() {
var $heading = $(this), $a = $heading.find('> h4 > a')
if (!$a.hasClass('collapsed')) $heading.addClass('active')
})
})
$(document).on('click', 'ul.menu-items li > a', function(e) {
var $a = $(this), $li = $a.parent(), options = $a.data('options').toObj(), $children = $li.find('> .menu-items-children')
var onClose = function() {
$li.removeClass('active')
}
var onSwitch = function() {
$('#bjui-accordionmenu').find('ul.menu-items li').removeClass('switch')
$li.addClass('switch')
}
$li.addClass('active')
if (options) {
options.url = $a.attr('href')
options.onClose = onClose
options.onSwitch = onSwitch
if (!options.title) options.title = $a.text()
if (!options.target)
$a.navtab(options)
else
$a.dialog(options)
}
if ($children.length) {
$li.toggleClass('open')
}
e.preventDefault()
})
//時(shí)鐘
var today = new Date(), time = today.getTime()
$('#bjui-date').html(today.formatDate('yyyy/MM/dd'))
setInterval(function() {
today = new Date(today.setSeconds(today.getSeconds() + 1))
$('#bjui-clock').html(today.formatDate('HH:mm:ss'))
}, 1000)
})
//菜單-事件
function MainMenuClick(event, treeId, treeNode) {
event.preventDefault()
if (treeNode.isParent) {
var zTree = $.fn.zTree.getZTreeObj(treeId)
zTree.expandNode(treeNode, !treeNode.open, false, true, true)
return
}
if (treeNode.target && treeNode.target == 'dialog')
$(event.target).dialog({id:treeNode.tabid, url:treeNode.url, title:treeNode.name})
else
$(event.target).navtab({id:treeNode.tabid, url:treeNode.url, title:treeNode.name, fresh:treeNode.fresh, external:treeNode.external})
}
$(function(){
SyntaxHighlighter.config.clipboardSwf = '/js/syntaxhighlighter-2.1.382/scripts/clipboard.swf'
$(document).on(BJUI.eventType.initUI, function(e) {
SyntaxHighlighter.highlight();
})
})
導(dǎo)航欄
- #maintab#
Loading...
Copyright ? 2013 - 2015 成都錦楊科技
一鍵復(fù)制
編輯
Web IDE
原始數(shù)據(jù)
按行查看
歷史
總結(jié)
以上是生活随笔為你收集整理的html5 %3cul 标签,index.html的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 超结晶大陆
- 下一篇: html按钮线性炫光,6分钟实现CSS炫