first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,292 @@
@charset "utf-8";
/*wrapper*/
.wrapper{width:1000px; margin:0 auto; }
/*header*/
.header{}
/*topLink*/
.topLink{ height:36px; line-height:36px; background:url(images/bg.gif) top repeat-x; text-align:right; color:#999;}
.topLink a{ color:#999;}
.topLink a:hover{ color:#f60;}
/*logoBox*/
.logoBox{ height:120px;}
/*logo*/
.logo{ float:left; width:166px; height:41px; padding:35px 0 0 75px; }
.logo h1{display:block; height:41px; line-height:41px; background:url(images/logo.png) 0 0 no-repeat; text-indent:-999px; overflow:hidden;}
/*searchBox*/
.searchBox{ float:right; width:640px; padding:40px 80px 0 0;}
/*search*/
.search{ height:34px;}
.search .inputBox{ float:left; width:350px; padding:0 10px; height:30px; border:2px solid #0d7fbd; border-radius:3px 0 0 3px; border-right:none;}
.search .inputBox input{ border:none; padding:0; margin:0; height:30px;*height:28px!important; line-height:30px; *line-height:28px!important; width:350px; font-size:14px; color:#999; border:0;}
.search .entries{ float:left; height:34px; line-height:34px; padding:0 5px; background:#0d7fbd; border-radius:0 3px 3px 0; font-size:14px;}
.search .entries a{display:inline-block; height:34px; padding:0 10px; font-size:14px; color:#fff;}
.search .btn{ float:left; margin:0 8px; height:34px; line-height:34px;}
.search .btn a{ display:inline-block; height:34px; line-height:34px; padding:0 25px; background:#0d7fbd;font-size:14px; color:#fff; font-weight:bold; border-radius:3px;}
.search .btn a:hover{ background:#c00;}
.search .link{float:left; line-height:34px;}
.search .link a{color:#09c;}
.search .link a:hover{ color:#f60; text-decoration:underline;}
/*hotSearch*/
.hotSearch{ height:28px; line-height:28px; color:#666;overflow: hidden;width: 700px;}
.hotSearch a{ color:#09c; padding-right:8px;}
.hotSearch a:hover{ color:#f60; text-decoration:underline;}
/*menuBox*/
.menuBox{ height:32px; padding:7px 10px; background:#0f78b3; }
/*nav*/
.nav{ float:left; height:32px; width:720px;}
.menuBox li{ display:block; float:left; padding:0 5px 0 3px; height:32px; line-height:32px; background:url(images/line01.gif) right center no-repeat; }
.menuBox li.last{ padding:0 0 0 3px; background: none;}
.menuBox li a{ display:inline-block; padding:0 15px; height:32px; line-height:32px; font-family:"宋体",sans-serif; font-size:16px; text-align:center; color:#fff;}
.menuBox li a:hover,.menuBox li.current a{background:#005684; color:#fff;}
.term{ float:right; }
/*mainBox*/
.mainBox{}
/*leftBar*/
.conBar{ /*float:left;*/ width:715px;}
.conBar .hd{ height:36px; line-height:36px; padding:0 15px 0 20px; border-bottom:1px solid #e3e3e3;}
.conBar .hd h3{ display:block; float:left; font-size:14px; font-weight:bold;}
.conBar .hd .more{ float:right;}
.conBar .hd .more a{font-size:12px;color:#999;}
.conBar .hd .more a:hover{color:#f60; text-decoration:underline;}
.conBar .bd{ padding:15px;height:auto!important;min-height:50px; _height:50px;}
/*Recommended entries*/
.recommended .bd{ padding:20px 15px 15px;}
.recommended .focus{padding:0 0 10px; height:160px; border-bottom:1px dashed #f0f0f0;}
.recommended .focus .detail{ float:right; width:400px;}
.recommended .focus .detail h5{ height:30px; line-height:30px;}
.recommended .focus .detail h5 a{font-size:16px; color:#2d64b3;}
.recommended .focus .detail h5 a:hover{color:#f60; text-decoration:underline;}
.recommended .focus .detail p{ font-size:14px; line-height:24px; color:#666;}
.recommended .focus .detail p a{ font-size:14px; color:#2d64b3;}
.recommended .focus .detail p a:hover{ color:#f60; text-decoration:underline;}
.recommended .focus .pic{ float:left; width:270px; height:146px;}
.recommended .focus .pic a{ display:block; width:270px; height:146px;}
.recommended .focus .pic a img{border:none; width:270px; height:146px;}
.recommended .list{ padding:10px 5px;}
.recommended .list li{ display:block; float:left; width:320px; padding-right:12px; height:24px; line-height:24px;}
.recommended .list li a{ font-size:14px; display:block; float:left; color:#2d64b3; }
.recommended .list li a:hover{ color:#f60; text-decoration:underline;}
.recommended .list li p{ font-size:14px; color:#666; display:block; float:left; padding-left:10px;}
/*Ranking*/
.ranking{ float:left; width:255px;}
.ranking li{ display:block; height:26px; line-height:26px;}
.ranking li span{ display:block; float:left; width:16px; height:16px; margin:5px 8px 0 0; text-align:center; line-height:16px; color:#f33; font-size:10px; background:url(images/icon02.png) 0 0 no-repeat; font-family:Verdana, Geneva, sans-serif;}
.ranking li a{line-height:26px; font-size:14px; color:#2d64b3;}
.ranking li a:hover{ color:#f60; text-decoration:underline;}
/*wonderful*/
.wonderful{ float:right; width:440px;}
.wonderful .bd{ padding:15px;}
.wonderful .focus{padding:0px; height:130px;}
.wonderful .focus .detail{ float:right; width:235px;}
.wonderful .focus .detail h5{ height:26px; line-height:26px;}
.wonderful .focus .detail h5 a{font-size:14px; color:#2d64b3;}
.wonderful .focus .detail h5 a:hover{color:#f60; text-decoration:underline;}
.wonderful .focus .detail p{ font-size:12px; line-height:20px; color:#666;}
.wonderful .focus .detail p a{ font-size:12px; color:#2d64b3;}
.wonderful .focus .detail p a:hover{ color:#f60; text-decoration:underline;}
.wonderful .focus .pic{ float:left; width:162px; height:122px;}
.wonderful .focus .pic a{ display:block; width:160px; height:120px; border:1px solid #e6e6e6;}
.wonderful .focus .pic a:hover{ border:1px solid #f60;}
.wonderful .focus .pic a img{border:none; width:160px; height:120px;}
.wonderful .list li{ display:block; height:24px; line-height:24px; overflow:hidden;}
.wonderful .list li a{ display:block; float:left; height:24px; padding-left:10px; font-size:14px; color:#2d64b3; background:url(images/icon03.png) left 10px no-repeat; }
.wonderful .list li a:hover{ color:#f60; text-decoration:underline; background-position:left -27px;}
.wonderful .list li p{ color:#666; display:block; float:left; padding-left:10px;font-size:14px; color:#333;}
/*encyclopedia*/
.encyclopedia .bd{ padding:20px 15px;*padding:20px 15px 0!important;}
.encyclopedia li{ display:block; float:left; width:155px; height:117px; padding:0 8px; position:relative;}
.encyclopedia li a{display:block; width:155px; height:117px;}
.encyclopedia li a span{ display:block; width:155px; height:26px; text-align:center; line-height:26px; color:#fff; cursor:pointer; background:url(images/bg02.png); position:absolute; left:8px; bottom:0;}
.encyclopedia li a:hover span{text-decoration:underline;}
/*popularTags*/
.popularTags{}
.popularTags li{ display:block; float:left; padding:0 8px;height:30px; line-height:30px;}
.popularTags li a{ font-size:14px; color:#0268cd; word-break:keep-all;}
.popularTags li a.red{ color:#f00;}
.popularTags li a:hover{color:#f60; text-decoration:underline;}
/*rightBar*/
.funBar{ /*float:right;*/ width:265px;}
.funBar .hd{ padding:0 20px; height:36px; line-height:36px; border:1px solid #e3e3e3;}
.funBar .hd h3{ font-size:14px; color:#000;}
.funBar .hd .logout{ margin-left:10px;}
.funBar .bd{ padding:10px 15px;border:1px solid #e3e3e3; border-top:none;height:auto!important;min-height:100px; _height:100px;}
/*loginBox*/
.loginBox .bd{ background:#f7f7f7; }
/*login*/
.login{padding:5px 0 15px;}
.login li{ display:block; height:28px; line-height:28px; padding:4px 0;}
.login li span{ display:block; float:left; width:60px; padding-right:2px; height:28px; line-height:28px; text-align:right;}
.login input{ float:left;width:145px; height:26px; line-height:26px; margin:0; padding:0; border:1px solid #ccc; border-radius:3px; }
.login li.btn{ height:28px; padding:5px 0 0 62px;}
.login li.btn a{display:inline-block; float:left; margin:0 8px 0 0; height:28px; line-height:28px; width:65px; text-align:center; font-size:14px; color:#fff; background:#0d7fbd; border-radius:3px;}
.login li.btn a.green{ background:#45a008;}
/*novice*/
.loginBox .novice{ padding:10px 0 0 45px; background:url(images/icon01.png) 0px 5px no-repeat; border-top:1px solid #ececec;}
.loginBox .novice li{ display:block; height:32px; line-height:32px;}
.loginBox .novice li a{font-size:14px; color:#c00;}
/*improved*/
.improved .bd{}
.improved li{ display:block; float:left; width:50%; height:28px; line-height:28px;}
.improved li a{ font-size:14px; color:#0268cd;}
.improved li a:hover{color:#f60; text-decoration:underline;}
/*alphabetically*/
.alphabetically .bd{}
.alphabetically li{ display:block; float:left; width:14.2%;height:28px; line-height:28px; text-align:center;}
.alphabetically li a{ font-size:14px; color:#0268cd; text-decoration:underline; font-family:Verdana, Geneva, sans-serif,"宋体";}
.alphabetically li a:hover{color:#f60;}
/*docmanage*/
.docmanage {display:none;}
.docmanage li{ display:block; float:left; width:40%;height:28px; line-height:28px; text-align:center;}
.docmanage li a{ font-size:14px; color:#0268cd; font-family:Verdana, Geneva, sans-serif,"宋体";}
.docmanage li a:hover{color:#f60;}
/*browse*/
.browse{ border:1px solid #e3e3e3; padding:5px 20px 10px}
.browse .hd{ height:30px; line-height:30px; }
.browse .bd li{ width:26px; height:26px; line-height:26px; padding:0 4px 0 0;}
.browse .bd li a{ display:block; width:24px; height:24px; line-height:24px; border:1px solid #bbddee;}
.browse .bd li a:hover{ border:1px solid #ffbc65;}
/*footer*/
.footer{ border-top:1px solid #dbdbdb;}
/*friendlyLinks*/
.friendlyLinks{ padding:20px 30px; border:1px solid #dbdbdb; border-top:none; background:#fbfbfb;height:auto!important;min-height:24px; _height:24px;}
.friendlyLinks .hd{ float:left; font-size:14px;}
.friendlyLinks .hd h3{ font-size:12px; line-height:24px;}
.friendlyLinks .bd { float:right; width:870px;}
.friendlyLinks .bd li{display:block; float:left; height:24px; padding:0 8px;}
.friendlyLinks .bd li a{ line-height:24px; font-size:12px; color:#333; word-break:keep-all;}
.friendlyLinks .bd li a:hover{color:#f60; text-decoration:underline;}
/*copyRight*/
.copyRight{ padding:10px 20px; line-height:24px; text-align:center; color:#666; font-family:Arial, Helvetica, sans-serif,"宋体";}
.copyRight span{ line-height:20px;color:#999;}
/*锁屏层*/
.mask {
position:absolute;
top:0;
left:0;
background:#666;
opacity:0.5;
filter: Alpha(opacity=60); /* IE 8 */
filter: alpha(opacity=60); /* IE 4-7 */
-moz-opacity:0.5; /* FF FireFox 3.5+ 已不再支持 -moz-opacity */
z-index:200;
visibility:hidden;
}
/*-----弹出层样式-------*/
.content_box{
background:#fff;
border:1px;
border-color:Black;
position:absolute;
width:600px;
left:35%;
filter:dropshadow(color=#666666,offx=3,offy=3,positive=2);
visibility:hidden;
z-index:300;
}
.content_title{
background:#F3F3F3;
height:20px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
padding:5px;
color:#000;
}
div.content_title div.ctLeft
{
display: inline; top:5px; left:5px; width: 540px; position: absolute; cursor: move;
}
div.content_title span.ctRight
{
float: right; display: inline; cursor: pointer;
background:transparent url(images/c_shut.gif) no-repeat scroll center top;
background-position: 0 0px;
width:12px;
height:15px;
display:block;
}
div.content_title span.ctRight:hover
{
background-position: 0 -25px;
}
.content_content
{
width:100%;
}
div.c_create{ padding:10px 5px;}
/*-----信息提示-------*/
#bm_content
{
margin:30px 20px 20px 30px;
}
#bm_message{left:80px;position:absolute;bottom:74px;}
#Message_box{width:350px;height:170px;}
#Message_Content .bm_bottom
{
background:transparent url(images/dot.gif) repeat-x scroll 0 0;
padding:10px;
text-align:center;
}
.bm_bottom a{cursor:pointer;display:block; margin:0 auto; height:32px; line-height:32px; width:100px; text-align:center; font-size:14px; font-weight:bold; color:#fff; background:#c00; border-radius:3px;}
.bm_bottom a:hover{ background:#f93;}
.bm_success{background:transparent url(images/bm_success.gif) no-repeat scroll 0 0;width:41px;height:41px;display: block;}
.bm_warn{background:transparent url(images/bm_warn.gif) no-repeat scroll 0 0;width:41px;height:41px;display: block;}
.bm_fail{background:transparent url(images/bm_fail.gif) no-repeat scroll 0 0;width:41px;height:41px;display: block;}
.lock
{
border: 1px solid #E1E1E1;
background: none repeat scroll 0 0 #FFFFCC;
border-color: #F39700;
clear: both;
margin: 20px 0 5px;
overflow: hidden;
padding: 10px;
}
.page {
clear: both;
padding-bottom: 10px;
text-align: right;
}
.page input {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #C5C5C5;
height: 20px;
line-height: 20px;
text-align: center;
vertical-align: middle;
width: 30px;
}
.page a, .page span {
display: inline-block;
height: 20px;
line-height: 20px;
vertical-align: middle;
}
.page a, .page a:active {
border: 1px solid #C5C5C5;
display: inline-block;
padding: 0 6px;
}
.page a:hover {
border: 1px solid #246DC9;
color: #246DC9;
text-decoration: none;
}
.page span.current, .page b a {
background: none repeat scroll 0 0 #246DC9;
border: 1px solid #246DC9;
color: #FFFFFF;
font-weight: bold;
padding: 0 6px;
}
.page span.disabled {
border: 1px solid #C5C5C5;
color: #999999;
padding: 0 6px;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

@@ -0,0 +1,328 @@
@charset "utf-8";
/*banner*/
.banner{}
/*path*/
.path{ padding:0 5px 10px; height:30px; line-height:30px; font-size:14px; color:#666;}
.path a,.path span{ padding:0 5px; font-size:14px; color:#666;}
.path .fr{font-size:14px;}
.path .fr strong{font-size:14px; color:#f00; padding:0 5px;}
/*classification*/
.category .bd{ padding:10px 20px;}
.category .bd li{ display:block; height:30px; line-height:30px;height:auto!important;min-height:30px; _height:30px;}
.category .bd li a{font-size:14px; color:#0268cd;}
.category .bd li .subcate { line-height:20px; padding-bottom:5px;}
.category .bd li .subcate a{ display:block; float:left; font-size:12px; color:#666; line-height:20px; padding:0 10px 0 0; /*word-break:keep-all;*/white-space: nowrap;}
.category .bd li .subcate a:hover{color:#f60;}
/*subCategory*/
.subCategory{}
.subCategory li{ display:block; height:36px; line-height:36px; border:1px solid #e3e3e3; padding:0 10px 0 80px; margin-bottom:5px; text-align:left;}
.subCategory li a{font-size:14px;}
.subCategory li.current{ border:1px solid #89c4ff; background:#eef7ff; font-weight:bold;}
.subCategory li.sc1{}
.subCategory li.sc2{}
.subCategory li.sc3{}
.subCategory li.sc4{}
.subCategory li.sc5{}
.subCategory li.sc6{}
.subCategory li.sc7{}
.subCategorytit{height:32px; line-height:32px;/*border-bottom:1px solid #ccc;*/ font-size:12px; padding-left:20px; background:#e1e1e1;}
.subCategorytit span{ display:block; float:right; width:120px;}
.subCategorytit h4{ font-size:12px;}
.subCategorylist{ padding:15px 0 0px;}
.cateList .bd .subCategorylist li{display:block; padding:0 0 0 10px; height:34px; line-height:34px;}
.subCategorylist span{ display:block; float:right; width:120px; font-size:14px;}
.subCategorylist a{ display:block; float:left; padding-left:10px; background:url(images/icon03.png) left 16px no-repeat; font-size:14px;}
.subCategorylist a:hover{ background-position:left -21px;}
/*entryInfo*/
.entryInfo{}
.entryInfo .person{ height:66px; padding:5px 0; color:#666;}
.entryInfo .pic{ float:left; margin-top:8px; width:48px; height:48px; padding:1px; border:1px solid #e5e5e5;}
.entryInfo .pic img{ width:48px; height:48px; border:none;}
.entryInfo .info{ float:right; width:170px; line-height:20px;}
.entryInfo .info div{height:20px; padding-bottom:2px;}
.entryInfo .info a{display:block; float:left; color:#007cff; }
.entryInfo .info a:hover{ color:#f60; text-decoration:underline;}
.entryInfo .info span{ display:block; float:left;}
.entryInfo .info .nature a{ padding:0 8px;}
.entryInfo .info span.money{ width:20px; height:20px; line-height:20px; text-indent:-999px; overflow: hidden; background:url(images/icon08.png) center center no-repeat; cursor:pointer;}
.entryInfo .info .power h5{ float:left; font-weight:normal; font-size:12px;}
.entryInfo .info .power ul{ display:block; float:left; padding-left:10px;}
.entryInfo .info .power li{ display:block; float:left; width:18px; height:20px; background:url(images/icon06.png) center center no-repeat;}
.entryInfo .other li{ display:block; height:24px; line-height:24px;}
.entryInfo .other span{padding:0 2px;}
.entryInfo .other a{color:#007cff; padding-left:8px;}
.entryInfo .other a:hover{ color:#f60; text-decoration:underline;}
/*standard*/
.standard p{line-height:24px;}
.standard p a{ color:#0268cd; padding-left:10px;}
/*cateList*/
.cateList{}
.cateList .hd .more a{ padding:0 10px;font-size:12px;color:#0268cd;}
.cateList .hd .more b{color:#f00; padding:0 3px;}
.cateList .hd li{ display:block; float:left; height:37px; padding:0 3px;}
.cateList .hd li a{display:block; height:35px; line-height:35px; font-size:14px; padding:0 15px; background:#fff; border:1px solid #e3e3e3; border-radius:3px 3px 0 0;}
.cateList .hd li.current a{ padding:0 16px; height:36px; line-height:36px;background:#0f78b3; color:#fff; border:none;}
.cateList .bd{padding:10px 15px;}
.cateList .bd li{display:block; padding:10px; line-height:24px; color:#666; border-bottom:1px dashed #ccc;}
.cateList .bd li h5{ line-height:30px; font-size:14px; color:#0268cd;}
.cateList .bd li a{color:#0268cd;}
.cateList .bd li a:hover{color:#f60; text-decoration:underline;}
.cateList .bd li h5 a{ font-size:14px;}
.cateList .bd li .author{ line-height:24px; color:#666;}
.cateList .bd li .label{ line-height:24px; color:#666;}
.cateList .bd li .abstract{ padding:4px 0; line-height:20px; }
.cateList .bd li .edit{}
.cateList .ft{height:26px; padding:10px;}
/*cateContent*/
.cateContent{}
.cateContent .tit{height:auto;border-bottom:1px solid #e1e1e1; padding:0 15px 0 20px;}
.cateContent .tit h4{ line-height:50px; font-size:30px; color:#0268cd;}
.cateContent .tit .editBox{ height:30px; line-height:30px; color:#666; }
.cateContent .tit .edit{ float:right; width:350px; height:16px; line-height:16px; padding:6px 0;}
.cateContent .tit .edit a{ color:#0268cd;}
.cateContent .tit .edit a:hover{ color:#f60; text-decoration:underline;}
.carry{ float:right; border-right:1px solid #ccc; padding:0 10px;}
.share{ float:right; border-right:1px solid #ccc; padding:0 10px;}
.issue{ float:right; border-right:1px solid #ccc; padding:0 10px;}
.editor{ float:right; padding:0 10px;}
.cateContent .con{ padding:25px 20px; line-height:26px; font-size:14px;}
.cateContent .con p{line-height:26px; font-size:14px;}
.cateContent .con span{line-height:26px; font-size:14px;}
.cateContent .con a{color: #136EC2;text-decoration: underline;font-size:14px;}
.cateContent .bot{}
.seesaw{ padding:5px; text-align:right; border-bottom:1px solid #e1e1e1; }
.seesaw a{ padding:0 10px 0 5px;color:#0268cd;}
.seesaw a:hover{color:#f60; text-decoration:underline;}
.support{ height:60px; padding:25px 10px 20px 30px;}
.support span{ display:block; float:right; width:510px; line-height:20px; color:#666;}
.support a{display:block; width:100px; height:44px; line-height:22px; padding:4px 15px; border:1px solid #5fc0ed; border-radius:3px; background:#b1e6fe;}
.support a:hover{ border:1px solid #ccc; background:#e1e1e1; color:#000;}
.support a b{display:block; height:22px; padding-left:30px; color:#c00; font-size:14px; background:url(images/icon04.png) 10px center no-repeat;}
.synonym{padding:15px 20px; line-height:26px; border:1px solid #e1e1e1; background:#f9f9f9; }
.collection{ margin:10px 0 0;padding:15px 20px; line-height:18px; border:1px solid #e1e1e1; background:#f9f9f9;}
.collection a{ padding-right:5px;}
.collection strong{display:block; float:left; height:18px; line-height:18px;}
.reference{display:none; padding:15px 20px; line-height:26px; border:1px solid #e1e1e1; background:#f9f9f9; }
/*directory*/
.directory{ display:none; margin:25px 0; position:relative;float:left;width:100%;}
.cateContent .directory .hd{ height:30px; line-height:30px;border:1px solid #e3e3e3;}
.cateContent .directory a{ height:30px; line-height:30px; font-size:14px;text-decoration:none;}
.cateContent .directory .bd{ padding: 10px 15px 10px;border-left:1px solid #e3e3e3; border-right:1px solid #e3e3e3;height: auto !important; min-height:44px; _height:44px; }
.cateContent .directory .bd li{ display:block; padding-left:20px; height: auto !important; min-height:22px; _height:22px; line-height:22px; background:url(images/icon09.gif) 4px 10px no-repeat;}
.cateContent .directory .bd li li{ background:url(images/icon10.gif) 9px 10px no-repeat;}
.cateContent .directory .bd li a{ display:block; height:22px; line-height:22px; font-size:14px; color:#136ec2;}
.cateContent .directory .bd li a:hover{ color:#f60; }
.cateContent .directory .ft{ height:24px; padding:0px 10px; text-align:right; line-height:24px;border:1px solid #e3e3e3; border-top:none;}
.cateContent .directory .ft a{ display:block; float:right; height:24px; line-height:24px; padding-right:12px; background:url(images/icon11.gif) right center no-repeat;color:#136ec2;}
.directoryDetail{display:none;position:absolute; top:0; left:0; background:#fff; z-index:100;}
.directoryMain{position:absolute;top:0; left:0;}
/*createEntry*/
.createEntry{}
.createEntry .hd h4{ font-size:14px; }
.createEntry .bd{ padding:30px 50px;}
.createEntry .bd td{ height:30px; padding:5px; line-height:38px;}
.createEntry .bd input{ height:28px; width:300px; line-height:28px; padding:0 5px; font-size:14px; border:1px solid #ccc; border-radius:3px;}
.createEntry .bd td.tit{ width:120px; text-align:right; font-size:14px;}
.createEntry .bd td.sel{ width:200px;}
.createEntry .bd td.sel a{ display:block; width:200px; padding-left:19px; height:30px; line-height:30px; font-size:14px; background:url(images/bg03.gif) 0 0 no-repeat;}
.createEntry .bd td.sel a:hover{ background:url(images/bg03-h.gif) 0 0 no-repeat;}
.createEntry .bd td.line{height:8px; line-height:0; font-size:0;}
.createEntry .bd td.btn{ padding-top:15px; height:32px; line-height:32px; border-top:1px dashed #e1e1e1;}
.createEntry .bd td.btn a{ display:block; margin:0 auto; height:32px; line-height:32px; width:120px; text-align:center; font-size:14px; font-weight:bold; color:#fff; background:#c00; border-radius:3px;}
.createEntry .bd td.btn a:hover{ background:#f93;}
/*selectEntry*/
.selectEntry{ display:none; width:680px; height:460px; border:1px solid #ccc; border-radius:5px;background:#fff; position:absolute; top:50%; left:50%; margin:-231px 0 0 -341px; z-index:1500;}
.selectEntry .hd{ height:42px; line-height:42px; padding:0 18px 0 25px; border-bottom:1px solid #ccc; background:#f9fafc; border-radius:5px 5px 0 0;}
.selectEntry .hd span{ display:block; float:right; width:14px; height:14px; padding:14px 0px 0px;}
.selectEntry .hd span a{ display:block; width:14px; height:14px; line-height:14px; text-indent:-999px; overflow:hidden; background:url(images/icon05.png) 0 0 no-repeat;}
.selectEntry .hd h3{ font-size:14px; line-height:42px;}
.selectEntry .bd{ padding:20px 20px 15px; height:315px; border-bottom:1px solid #ccc;}
.selectEntry .bd .selected{ height:30px; padding:0 10px; border-bottom:1px dashed #ccc;}
.selectEntry .bd .selected strong{ display:block; float:left; padding-right:10px;}
.selectEntry .bd .selected .selectedList{}
.selectEntry .bd .options{ padding:15px 0 0; height:269px;overflow-y:auto;}
.selectEntry .bd .options li{height:22px; line-height:22px;}
.selectEntry .bd .options label{height:22px; line-height:22px;vertical-align:middle;}
.selectEntry .bd .options label input{height:22px; line-height:22px;vertical-align:middle;}
.selectEntry .ft{ height:40px; padding:15px 0 0;}
.selectEntry .ft a{display:block; margin:0 auto; height:32px; line-height:32px; width:120px; text-align:center; font-size:14px; font-weight:bold; color:#fff; background:#c00; border-radius:3px;}
.selectEntry .ft a:hover{ background:#f93;}
/*userInformation*/
.userInformation{ padding:10px 0;}
.userInformation .pic{ height:110px; }
.userInformation .pic img{ padding:2px; border:1px solid #ccc; width:100px; height:100px;}
.userInformation .name{height:30px; color:#666;}
.userInformation .name strong{ display:block; float:left; padding-right:4px; line-height:30px; font-size:14px;}
.userInformation .name span{display:block; float:left; width:22px; height:30px; background:url(images/icon06.png) center center no-repeat;}
.userInformation .sms{ height:24px; line-height:24px;}
.userInformation .sms a{display:block; float:left; padding-left:20px; background:url(images/icon07.png) left center no-repeat; color:#0268cd;}
.userInformation .sms p{display:block; float:left; margin-left:15px; font-weight:bold; padding-left:20px; background:url(images/icon08.png) left center no-repeat;}
.userInformation .other td{ padding:3px 0; line-height:20px; color:#666; font-family:Verdana, Geneva, sans-serif;}
.userInformation .other td.tit{ width:65px;}
/*searchEntry*/
.searchEntry .hd h4{ font-size:14px;}
.searchEntry .hd strong{font-size:14px;color:#f00;}
.searchEntry .ft{height:26px; padding:10px;}
/*noResult*/
.noResult{ display:none;padding:20px; height:30px; line-height:30px; background:#ffc; border:1px solid #e1e1e1; font-size:14px;}
.noResult span{ display:block; float:left;font-size:14px; line-height:30px;}
.noResult strong{color:#f00;}
.noResult a{display:block; float:left; height:30px; line-height:30px; width:100px; text-align:center; font-size:14px; font-weight:bold; color:#fff; background:#c00; border-radius:3px;}
.noResult a:hover{ background:#f93;}
/*resultList*/
.resultList{}
.resultList li{display:block; padding:0 0 0 10px; height:34px; line-height:34px; border-bottom:1px dashed #e1e1e1;}
.resultList span{ display:block; float:right; width:120px; font-size:14px; color:#666;}
.resultList a{ display:block; float:left; padding-left:10px; background:url(images/icon03.png) left 16px no-repeat; font-size:14px;color:#0268cd;}
.resultList a:hover{ background-position:left -21px; color:#f60;}
/*advancedSearch*/
.advancedSearch{ border:1px solid #e1e1e1; padding:30px 100px;}
.advancedSearch .hd{ padding:0 15px; height:34px; line-height:34px; border-bottom:1px dashed #e1e1e1;}
.advancedSearch .hd h5{ font-size:14px; line-height:34px;}
.advancedSearch .bd{ padding:15px;}
.advancedSearch td{padding:5px; line-height:28px;}
.advancedSearch td.tit{ width:160px; text-align:right; font-size:14px;}
.advancedSearch .bd .inputtext{ height:28px; width:300px; line-height:28px; padding:0 5px; font-size:14px; border:1px solid #ccc; border-radius:3px;}
.advancedSearch .ft{ padding:20px;border-top:1px dashed #e1e1e1;}
.advancedSearch .ft a{display:block; margin:0 auto; height:32px; line-height:32px; width:120px; text-align:center; font-size:14px; font-weight:bold; color:#fff; background:#c00; border-radius:3px;}
.advancedSearch .ft a:hover{ background:#f93;}
/*editEntry*/
.editArea{ height:auto !important; min-height:200px; _height:200px; border:1px solid #e1e1e1;}
.entryInformation{}
.entryInformation .hd{ height:36px; line-height:36px; padding:0 20px; border:1px solid #e1e1e1; background:#f3f7fa;}
.entryInformation .hd h5{ font-size:14px;}
.entryInformation .bd{ padding:15px; line-height:28px; font-size:14px; border:1px solid #e1e1e1; border-top:none;}
.entryInformation .bot{ height:40px; padding:10px;}
.entryInformation .bot a{ display:block; float:left; width:100px; height:38px; line-height:38px; font-weight:bold; text-align:center; font-size:16px; color:#fff; background:#007dff;border-radius:3px; margin-right:10px; }
.entryInformation .bot a.gray{background:#ccc; margin:0;}
.summary,.tag,.resources,.reason{ margin-top:12px;}
.summary textarea{ width:960px; height:100px; margin:0; border:1px solid #f2f2f2; border-radius:3px; outline:none; font-size:14px; line-height:26px; padding:5px;resize: none;}
.tag p{ padding-top:5px; color:#999; font-size:14px;}
.resources{}
.resources .bd li{display:block; height:28px; line-height:28px; padding:6px 0;}
.resources input,.tag input{ width:500px; border:1px solid #ccc; border-radius:3px; height:28px; line-height:28px; padding:0 5px; font-size:14px; color:#999;}
.resources .bd span{display:block; float:left; width:80px; text-align:right; font-size:14px; }
.resources .bd li.btn{padding-left:80px;}
.resources .bd li.btn a{display:block; float:left; width:80px; height:26px; line-height:26px; text-align:center; font-size:14px; color:#fff; background:#f00;border-radius:3px; margin-right:10px; }
.resources li.btn a.green{background:#090; margin:0;}
.resourcesList{ border-left:1px solid #e1e1e1; border-right:1px solid #e1e1e1; padding:10px 20px 5px;}
.resourcesList li{ display:block; height:60px; border-bottom:1px dashed #e1e1e1; padding:5px 20px;}
.resourcesList li h6{ font-size:14px; line-height:20px;}
.resourcesList li h6 strong{ font-size:14px; color:#f00; padding-right:5px;}
.resourcesList li p{ line-height:18px; color:#666;}
.resourcesList li a{ color:#36f; line-height:18px; padding-right:10px;}
.resourcesList li a:hover{ text-decoration:underline; color:#f60; }
.reason{ }
.reason .select{ height:36px; line-height:36px;}
.reason .select li{ display:block; float:left; padding:8px 12px 8px 0; height:20px; }
.reason .select li input{float:left;}
.reason .select li span{ display:block; float:left; height:20px; line-height:18px; padding-left:3px;font-size:14px;}
.reason .other textarea{ width:600px; height:100px; margin:0; border:1px solid #7f9db9; border-radius:3px; outline:none; font-size:14px; line-height:26px; padding:5px;resize: none;}
.reason .other p{ font-size:14px;}
/*historyList*/
.historyList{}
.historyList .hd{ height:50px; line-height:50px; border-bottom:1px solid #e1e1e1; padding:0 10px;}
.historyList .hd h3{ color:#0d66ba; font-size:26px; line-height:50x;}
.historyList .hd span a{ font-size:14px;}
.historyList .bd{ padding:10px 0;}
.historyList .bd h5{ display:block; height:40px; line-height:40px; padding:0 20px; background:#f7f7f7; color:#000; font-size:12px;}
.historyList .bd li{ display:block; height:40px; line-height:40px;border-bottom:1px dashed #ebebeb; padding:0 8px;}
.historyList .bd li.title{ border-top:1px dashed #e1e1e1; border-bottom:1px dashed #e1e1e1; margin-top:10px;}
.historyList .bd span{ display:block; float:left; height:16px; line-height:16px; padding:12px 3px; font-size:12px; width:80px;}
.historyList .bd span.l1{ width:205px;}
.historyList .bd span.l1 input{ float:left; padding:0; margin:1px 5px 0 0; width:14px; height:14px; }
.historyList .bd span.l2{ width:200px; color:#696969;}
.historyList .bd span.l3{ width:200px;}
.historyList .bd span .star{ float:left; padding-left:5px;/* width:60px; overflow:hidden;*/}
.historyList .bd span .star li{ display:block; float:left; width:16px; height:16px; padding-right:2px; background:url(images/icon06.png) 0 0 no-repeat;}
.historyList .bd span.l4{}
.historyList .bd span.l5{color:#c00;}
.historyList .bd span.l6{ color:#f00; background:url(images/icon08.png) left center no-repeat; padding-left:20px; width:60px;}
.historyList .bd li.title span.l6{ background:none; width:80px; padding-left:0; }
.historyList .bd span.l7{ width:350px;}
.historyList .bd li.title span{ color:#000;}
.historyList .bd a{ display:block; float:left; height:16px; line-height:16px; color:#0d66ba;}
.historyList .bd a:hover{ color:#f60; text-decoration:underline;}
/*navigation*/
.navigation{ border-top:1px dashed #e1e1e1; padding:15px 5px; }
.navigation li{ display:block; border:1px solid #dfdfdf; padding:15px 25px; background:#fafafa; margin-bottom:10px;}
.navigation li h4{height:30px; line-height:30px;}
.navigation li h4 a{ font-size:14px; color:#1167b4;}
.navigation li a{ padding-right:10px; color:#636365; line-height:20px;}
.navigation li a:hover{ color:#f60; text-decoration:underline;}
/*picList*/
.picList{}
.picList li{ display:block; float:left; width:215px; padding:10px 15px 15px; height:180px; text-align:center;}
.picList li a{ display:block;width:215px;height:180px;}
.picList li img{ width:215px; height:143px; border:none; padding:0; margin:0;}
.picList li span{ display:block; height:30px; line-height:30px;}
.picFt{ padding:20px ; height:28px;}
/*pagesize*/
.pagesize{ float:right; height:26px; }
.pagesize a,.pagesize span{ display:block; float:left; width:24px; height:24px; line-height:24px; border:1px solid #ccc; /*background:#d6b371;*/ margin:0 1px; text-align:center; font-size:14px; font-family:Verdana, Geneva, sans-serif; font-weight:normal;color:#999;}
.pagesize span.current{background:#f7f7f7; font-weight:bold;}
.pagesize span.total{ width:auto; border:none; padding:0 5px; line-height:26px;}
.pagesize span.total strong{color:#f00;padding:0 5px;}
.pagesize a:hover{color:#f60; text-decoration:underline;}
/* select category */
.childCategory{float:left;}
.options ul{clear:both;}
.uloptions {margin-top:30px;}
.uloptions li{margin:0px 5px;}
.entryInformation .bot input{ display:block; float:left; width:100px; height:38px; line-height:38px; font-weight:bold; text-align:center; font-size:16px; color:#fff; background:#007dff;border-radius:3px; margin-right:10px; }
.select td { width:90px; }
.select td label{ font-size: 14px; height: 20px; line-height: 18px; padding-left: 3px;}
.entryInformation .bot input.gray{background:#ccc; margin:0;}
.resources label {color:Red; margin-left:10px;}
.cateContent .tit .historyBox{ color:#666;line-height:25px;padding-bottom: 10px;}
#ul_list li input{display:none;}
.historyList .bd li.operate{ display:none; border-top:0px dashed #000000; border-bottom:0px dashed #000000; margin-top:10px;}
/* catalog */
#catalogTitle legend a {font-size:20px;font-weight: bold;}
#catalogTitle ul li a {font-size:14px;color: #136EC2;margin-left:10px;}
/*百科目录样式*/
.level1 {
font-size: 20px;
width:620px;
float:left;
font-weight: bold;
}
.level2 {
clear: both;
display: block;
float: none;
font-size: 16px;
font-weight: bold;
margin-top:15px;
}
.cateContent .c1
{
border-bottom: 1px solid #E1E1E1;
padding: 0 0 5px;
margin: 30px 0 10px 0;
float: left;
width:100%;
}
.cateContent .c1 a{font-size: 14px;line-height: 25px; color: #0268CD;text-decoration: none;}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,222 @@
(function($) {
$.fn.autopoint = function(options) {
defaults = {
url : options.url,
keyLeft : 37,// 向左方向键
keyUp : 38,// 向上方向键
keyRight : 39,// 向右方向键
keyDown : 40,// 向下方向键
keyEnter : 13,// 回车键
listHoverCSS : 'hoverLi',// 提示框列表鼠标悬浮的样式
topoffset : options.topoffset || 10
};
var options = $.extend(defaults, options);
var dropDiv = $('<ul id="tie" class="hide"></ul>').appendTo('#adjust_text');
var isOver = false;
dropDiv.hover(function() {
isOver = true;
}, function() {
isOver = false;
});
return this
.each(function() {
var pa = $(this);
$(this)
.bind(
'keydown',
function(event) {
if (dropDiv.css('display') != 'none') {// 当提示层显示时才对键盘事件处理
var currentList = dropDiv
.find('.' + options.listHoverCSS);
if (event.keyCode == options.keyDown) {// 如果按的是向下方向键
if (currentList.length == 0 || getPointWord(currentList.next()
.mouseover())=="") {
// 如果提示列表没有一个被选中,则将列表第一个选中
$(this)
.val(
getPointWord(dropDiv
.find('.list:first')
.mouseover()));
} else if (currentList.next().length == 0) {
// 如果是最后一个被选中,则取消选中,即可认为是输入框被选中
unHoverAll();
} else {
unHoverAll();
// 将原先选中列的下一列选中
if (currentList.next().length != 0)
$(this)
.val(
getPointWord(currentList
.next()
.mouseover()));
}
return false;
} else if (event.keyCode == options.keyUp) {// 如果按的是向上方向键
if (currentList.length == 0 || getPointWord(currentList.prev()
.mouseover())=="") {
$(this)
.val(
getPointWord(dropDiv
.find(
'.list:last')
.mouseover()));
} else if (currentList.prev().length == 0) {
unHoverAll();
} else {
unHoverAll();
if (currentList.prev().length != 0)
$(this)
.val(
getPointWord(currentList
.prev()
.mouseover()));
}
return false;
} else if (event.keyCode == options.keyEnter)
{
dropDiv.empty().hide();
}
}
// 当按下键之前记录输入框值,以方便查看键弹起时值有没有变
$(this).attr('alt', $(this).val());
})
.bind(
'keyup',
function(event) {
// 如果弹起的键是向上或向下方向键则返回
if (event.keyCode == options.keyDown
|| event.keyCode == options.keyUp)
return;
//modified by weic.lu 输入英文文本长度大等于2时才搜索
//中文长度>=1
var kwLength = 0;
if($(this).val() != '' && $(this).val().length>1)
{
var kwContent = $(this).val();
for(var i=0; i<kwContent.length; i++)
{
if(kwContent.charCodeAt(i)>255)
{
kwLength += 2;
}
else
{
kwLength += 1;
}
if(kwLength>=2)
{
break;
}
}
}
if ($(this).val() == '' || kwLength.length<2) {
dropDiv.empty().hide();
return;
}
// 若输入框值没有改变或变为空则返回
if ($(this).val() == $(this)
.attr('alt'))
return;
getData(pa, $(this).val());
})
.bind(
'blur',
function() {
if (isOver
&& dropDiv
.find('.' + options.listHoverCSS) != 0)
return;
// 文本输入框失去焦点则清空并隐藏提示层
dropDiv.empty().hide();
});
/** 处理ajax返回成功的方法* */
handleResponse = function(parent, json) {
if (json == null || json.length == 0) {
// 返回数据为空
$("#tie").hide();
return ;
}
refreshDropDiv(parent, json);
dropDiv.show();
}
/** 处理ajax失败的方法* */
handleError = function(error) {
// showError("由于url错误或超时请求失败!");
}
showError = function(error) {
alert(error);
}
/** 通过ajax返回json格式数据生成用来创建dom的字符串* */
render = function(parent, json) {
var appendStr = '';
// 用json对象中内容替换模版字符串中匹配/\{([a-z]+)\}/ig的内容,如{word},{view}
for ( var i = 0; i < json.length; i ++) {
if(i<json.length)
appendStr += '<li class="list" title="'+json[i].name+'"><span>约'+json[i].num+'条</span><div>'+json[i].name+'</div></li>';
}
appendStr += '<li class="close"><a onclick=$("#tie").hide() href="javascript:void(0)">[关闭]</a></li>' ;
jebind(parent, appendStr);
}
/** 将新建dom对象插入到提示框中,并重新绑定mouseover事件监听* */
jebind = function(parent, a) {
dropDiv.append(a);
dropDiv.find('.list').each(function() {
$(this).unbind('mouseover').mouseover(function() {
unHoverAll();
$(this).addClass(options.listHoverCSS);
}).unbind('click').click(function() {
parent.val(getPointWord($(this)));
dropDiv.empty().hide();
parent.focus();
var reqUrl = options.url.replace("searchsuggest.do","searchgoods.do");
window.location.href = reqUrl + "?keyword="
+ encodeURI(parent.val());
});
});
}
/**将提示框中所有列的hover样式去掉**/
unHoverAll = function() {
dropDiv.find('.list').each(function() {
$(this).removeClass(options.listHoverCSS);
});
}
/**在提示框中取得当前选中的提示关键字**/
getPointWord = function(p) {
return p.find('div:first').text()
}
/**刷新提示框,并设定样式**/
refreshDropDiv = function(parent, json) {
var left = parent.offset().left;
var height = parent.height();
var top = parent.offset().top + options.topoffset
+ height;
var width = options.width || parent.width() + 'px';
dropDiv.empty();
dropDiv.css(
{"background":"none repeat scroll 0 0 #FFFFFF",
"border":"1px solid #990005",
"overflow":"hidden",
"position":"absolute",
"top":"30px",
"width":"350px"}
);
render(parent, json);
//防止ajax返回之前输入框失去焦点导致提示框不消失
parent.focus();
}
/**通过ajax向服务器请求数据**/
getData = function(parent, word) {
word = word.replace(/[()'";,{}~!@#$%^&*(){}?\|<>.]/g,"");
$.getJSON(options.url+"?keyword="+encodeURI(encodeURI(word))+"&callback=?",function(json) {
handleResponse(parent, json);
}
);
}
});
}
})(jQuery);
@@ -0,0 +1,6 @@
// html5shiv MIT @rem remysharp.com/html5-enabling-script
// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
/*@cc_on(function(m,c){var z="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video";function n(d){for(var a=-1;++a<o;)d.createElement(i[a])}function p(d,a){for(var e=-1,b=d.length,j,q=[];++e<b;){j=d[e];if((a=j.media||a)!="screen")q.push(p(j.imports,a),j.cssText)}return q.join("")}var g=c.createElement("div");g.innerHTML="<z>i</z>";if(g.childNodes.length!==1){var i=z.split("|"),o=i.length,s=RegExp("(^|\\s)("+z+")",
"gi"),t=RegExp("<(/*)("+z+")","gi"),u=RegExp("(^|[^\\n]*?\\s)("+z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),r=c.createDocumentFragment(),k=c.documentElement;g=k.firstChild;var h=c.createElement("body"),l=c.createElement("style"),f;n(c);n(r);g.insertBefore(l,
g.firstChild);l.media="print";m.attachEvent("onbeforeprint",function(){var d=-1,a=p(c.styleSheets,"all"),e=[],b;for(f=f||c.body;(b=u.exec(a))!=null;)e.push((b[1]+b[2]+b[3]).replace(s,"$1.iepp_$2")+b[4]);for(l.styleSheet.cssText=e.join("\n");++d<o;){a=c.getElementsByTagName(i[d]);e=a.length;for(b=-1;++b<e;)if(a[b].className.indexOf("iepp_")<0)a[b].className+=" iepp_"+i[d]}r.appendChild(f);k.appendChild(h);h.className=f.className;h.innerHTML=f.innerHTML.replace(t,"<$1font")});m.attachEvent("onafterprint",
function(){h.innerHTML="";k.removeChild(h);k.appendChild(f);l.styleSheet.cssText=""})}})(this,document);@*/
@@ -0,0 +1,69 @@
jQuery.fn.sSelect = function () {
var selectId = $(this).attr('id');
var selectIndex;
$(this).append('<div class="dropselectbox"><h4><span></span><em></em></h4><ul style="display:none"></ul></div>');
$.each($('#' + selectId + ' > select > option:selected'), function (i) {
$('#' + selectId + ' > div > h4 >em').empty().append($(this).text());
});
$('.dropselectbox').show();
$('#' + selectId + ' > select').hide();
$('#' + selectId).bind("click", function (e) {
selectId = $(this).attr('id');
if ($('#' + selectId + ' > div > ul').css("display") == 'block') {
$('.dropselectbox > ul').empty().hide();
$('.dropselectbox > h4').removeClass("over");
} else {
$('#' + selectId + ' > div > ul').empty().toggle();
$('#' + selectId + ' > div > h4').toggleClass("over");
setSelectValue(selectId);
//select option
$('#' + selectId + ' > div > ul > li').click(function (e) {
selectIndex = $('#' + selectId + ' > div > ul > li').index($(this)[0]);
$('#' + selectId + '> select > option').removeAttr("selected");
$('#' + selectId + '> select > option').eq(selectIndex).attr("selected", "selected");
setSelectValue(selectId);
cleadMenu();
e.stopPropagation()
})
.hover(
function () {
$('#' + selectId + ' > div > ul > li').removeClass("over");
$(this).addClass("over");
},
function () {
$(this).removeClass("over");
}
);
$(document).bind("click", cleadMenu);
}
e.stopPropagation()
})
.bind("selectstart", function () {
return false;
})
.bind("blur", function () {
cleadMenu();
});
}
function cleadMenu(){
$('.dropselectbox > ul').empty().hide();
$('.dropselectbox > h4').removeClass("over");
$(document).unbind("click",cleadMenu);
}
function setSelectValue(sID) {
$.each($('#' + sID + ' > select > option'), function (i) {
var classStr = "";
if($(this).attr("class")){
classStr = " class='" + $(this).attr("class") + "'";
}
$('#' + sID + ' > div > ul').append("<li" + classStr +">" + $(this).text() + "</li>");
});
$.each($('#' + sID + ' > select > option:selected'), function (i) {
$('#' + sID + ' > div > h4 > em').empty().append($(this).text());
$('#' + sID + ' > div > ul > li').eq(i).addClass("over").addClass("selectedli");
});
}
@@ -0,0 +1,176 @@
/*--------------------------------------------------------------------------------------------------*/
$.fn.extend({//添加滚轮事件
mousewheel:function(Func){
return this.each(function(){
var _self = this;
_self.D = 0;//滚动方向
if($.browser.msie||$.browser.safari){
_self.onmousewheel=function(){_self.D = event.wheelDelta;event.returnValue = false;Func && Func.call(_self);};
}else{
_self.addEventListener("DOMMouseScroll",function(e){
_self.D = e.detail>0?-1:1;
e.preventDefault();
Func && Func.call(_self);
},false);
}
});
}
});
$.fn.extend({
jscroll:function(j){
return this.each(function(){
j = j || {}
j.Bar = j.Bar||{};//2级对象
j.Btn = j.Btn||{};//2级对象
j.Bar.Bg = j.Bar.Bg||{};//3级对象
j.Bar.Bd = j.Bar.Bd||{};//3级对象
j.Btn.uBg = j.Btn.uBg||{};//3级对象
j.Btn.dBg = j.Btn.dBg||{};//3级对象
var jun = { W:"15px"
,BgUrl:""
,Bg:"#efefef"
,Bar:{ Pos:"up"
,Bd:{Out:"#b5b5b5",Hover:"#ccc"}
,Bg:{Out:"#fff",Hover:"#fff",Focus:"orange"}}
,Btn:{ btn:true
,uBg:{Out:"#ccc",Hover:"#fff",Focus:"orange"}
,dBg:{Out:"#ccc",Hover:"#fff",Focus:"orange"}}
,Fn:function(){}}
j.W = j.W||jun.W;
j.BgUrl = j.BgUrl||jun.BgUrl;
j.Bg = j.Bg||jun.Bg;
j.Bar.Pos = j.Bar.Pos||jun.Bar.Pos;
j.Bar.Bd.Out = j.Bar.Bd.Out||jun.Bar.Bd.Out;
j.Bar.Bd.Hover = j.Bar.Bd.Hover||jun.Bar.Bd.Hover;
j.Bar.Bg.Out = j.Bar.Bg.Out||jun.Bar.Bg.Out;
j.Bar.Bg.Hover = j.Bar.Bg.Hover||jun.Bar.Bg.Hover;
j.Bar.Bg.Focus = j.Bar.Bg.Focus||jun.Bar.Bg.Focus;
j.Btn.btn = j.Btn.btn!=undefined?j.Btn.btn:jun.Btn.btn;
j.Btn.uBg.Out = j.Btn.uBg.Out||jun.Btn.uBg.Out;
j.Btn.uBg.Hover = j.Btn.uBg.Hover||jun.Btn.uBg.Hover;
j.Btn.uBg.Focus = j.Btn.uBg.Focus||jun.Btn.uBg.Focus;
j.Btn.dBg.Out = j.Btn.dBg.Out||jun.Btn.dBg.Out;
j.Btn.dBg.Hover = j.Btn.dBg.Hover||jun.Btn.dBg.Hover;
j.Btn.dBg.Focus = j.Btn.dBg.Focus||jun.Btn.dBg.Focus;
j.Fn = j.Fn||jun.Fn;
var _self = this;
var Stime,Sp=0,Isup=0;
$(_self).css({overflow:"hidden",position:"relative",padding:"0px"});
var dw = $(_self).width(), dh = $(_self).height()-1;
var sw = j.W ? parseInt(j.W) : 21;
var sl = dw - sw
var bw = j.Btn.btn==true ? sw : 0;
if($(_self).children(".jscroll-c").height()==null){//存在性检测
$(_self).wrapInner("<div class='jscroll-c' style='top:0px;z-index:9999;zoom:1;position:relative'></div>");
$(_self).children(".jscroll-c").prepend("<div style='height:0px;overflow:hidden'></div>");
$(_self).append("<div class='jscroll-e' unselectable='on' style=' height:100%;top:0px;right:0;-moz-user-select:none;position:absolute;overflow:hidden;z-index:10000;'><div class='jscroll-u' style='position:absolute;top:0px;width:100%;left:0;background:blue;overflow:hidden;'></div><div class='jscroll-h' unselectable='on' style='background:green;position:absolute;left:0;-moz-user-select:none;border-top:1px solid;border-bottom:1px solid;'></div><div class='jscroll-d' style='position:absolute;bottom:0px;width:100%;left:0;background:blue;overflow:hidden'></div></div>");
}
var jscrollc = $(_self).children(".jscroll-c");
var jscrolle = $(_self).children(".jscroll-e");
var jscrollh = jscrolle.children(".jscroll-h");
var jscrollu = jscrolle.children(".jscroll-u");
var jscrolld = jscrolle.children(".jscroll-d");
if($.browser.msie){document.execCommand("BackgroundImageCache", false, true);}
jscrollc.css({"padding-right":sw});
jscrolle.css({width:sw,background:j.Bg,"background-image":j.BgUrl});
jscrollh.css({top:bw,background:j.Bar.Bg.Out,"background-image":j.BgUrl,"border-color":j.Bar.Bd.Out,width:sw});
jscrollu.css({height:bw,background:j.Btn.uBg.Out,"background-image":j.BgUrl});
jscrolld.css({height:bw,background:j.Btn.dBg.Out,"background-image":j.BgUrl});
jscrollh.hover(function(){if(Isup==0)$(this).css({background:j.Bar.Bg.Hover,"background-image":j.BgUrl,"border-color":j.Bar.Bd.Hover})},function(){if(Isup==0)$(this).css({background:j.Bar.Bg.Out,"background-image":j.BgUrl,"border-color":j.Bar.Bd.Out})})
jscrollu.hover(function(){if(Isup==0)$(this).css({background:j.Btn.uBg.Hover,"background-image":j.BgUrl})},function(){if(Isup==0)$(this).css({background:j.Btn.uBg.Out,"background-image":j.BgUrl})})
jscrolld.hover(function(){if(Isup==0)$(this).css({background:j.Btn.dBg.Hover,"background-image":j.BgUrl})},function(){if(Isup==0)$(this).css({background:j.Btn.dBg.Out,"background-image":j.BgUrl})})
var sch = jscrollc.height();
//var sh = Math.pow(dh,2) / sch ;//Math.pow(x,y)x的y次方
var sh = (dh-2*bw)*dh / sch
if(sh<10){sh=10}
var wh = sh/6//滚动时候跳动幅度
// sh = parseInt(sh);
var curT = 0,allowS=false;
jscrollh.height(sh);
if(sch<=dh){jscrollc.css({padding:0});jscrolle.css({display:"none"})}else{allowS=true;}
if(j.Bar.Pos!="up"){
curT=dh-sh-bw;
setT();
}
jscrollh.bind("mousedown",function(e){
j['Fn'] && j['Fn'].call(_self);
Isup=1;
jscrollh.css({background:j.Bar.Bg.Focus,"background-image":j.BgUrl})
var pageY = e.pageY ,t = parseInt($(this).css("top"));
$(document).mousemove(function(e2){
curT =t+ e2.pageY - pageY;//pageY浏览器可视区域鼠标位置,screenY屏幕可视区域鼠标位置
setT();
});
$(document).mouseup(function(){
Isup=0;
jscrollh.css({background:j.Bar.Bg.Out,"background-image":j.BgUrl,"border-color":j.Bar.Bd.Out})
$(document).unbind();
});
return false;
});
jscrollu.bind("mousedown",function(e){
j['Fn'] && j['Fn'].call(_self);
Isup=1;
jscrollu.css({background:j.Btn.uBg.Focus,"background-image":j.BgUrl})
_self.timeSetT("u");
$(document).mouseup(function(){
Isup=0;
jscrollu.css({background:j.Btn.uBg.Out,"background-image":j.BgUrl})
$(document).unbind();
clearTimeout(Stime);
Sp=0;
});
return false;
});
jscrolld.bind("mousedown",function(e){
j['Fn'] && j['Fn'].call(_self);
Isup=1;
jscrolld.css({background:j.Btn.dBg.Focus,"background-image":j.BgUrl})
_self.timeSetT("d");
$(document).mouseup(function(){
Isup=0;
jscrolld.css({background:j.Btn.dBg.Out,"background-image":j.BgUrl})
$(document).unbind();
clearTimeout(Stime);
Sp=0;
});
return false;
});
_self.timeSetT = function(d){
var self=this;
if(d=="u"){curT-=wh;}else{curT+=wh;}
setT();
Sp+=2;
var t =500 - Sp*50;
if(t<=0){t=0};
Stime = setTimeout(function(){self.timeSetT(d);},t);
}
jscrolle.bind("mousedown",function(e){
j['Fn'] && j['Fn'].call(_self);
curT = curT + e.pageY - jscrollh.offset().top - sh/2;
asetT();
return false;
});
function asetT(){
if(curT<bw){curT=bw;}
if(curT>dh-sh-bw){curT=dh-sh-bw;}
jscrollh.stop().animate({top:curT},100);
var scT = -((curT-bw)*sch/(dh-2*bw));
jscrollc.stop().animate({top:scT},1000);
};
function setT(){
if(curT<bw){curT=bw;}
if(curT>dh-sh-bw){curT=dh-sh-bw;}
jscrollh.css({top:curT});
var scT = -((curT-bw)*sch/(dh-2*bw));
jscrollc.css({top:scT});
};
$(_self).mousewheel(function(){
if(allowS!=true) return;
j['Fn'] && j['Fn'].call(_self);
if(this.D>0){curT-=wh;}else{curT+=wh;};
setT();
})
});
}
});
@@ -0,0 +1,47 @@
@charset "utf-8";
/*---- public.css begin----*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,form,label,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-size:100%; font-size:12px;}
body{ background: url(images/bg.gif) top repeat-x #fff; font-family:"宋体" , arial, helvetica, sans-serif;-webkit-text-size-adjust: none;}
li{list-style-type:none;}
img{border-style: none;}
table{border-collapse:collapse;}
fieldset{ }
label,button{cursor: pointer;}
select,input,textarea{font-size:12px; outline: none;}
/*伪类定义*/
a{text-decoration: none;color: #000;}
a:hover{text-decoration:none;color:#f60;}
a:active{outline:none;}
/*清除链接虚框*/
a,area {blr:expression(this.onFocus=this.blur());outline-style:none; } /* for IE */
:focus {-moz-outline-style: none; } /*for Firefox */
/*清除浮动定义*/
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
.clearfix {display: inline-block;}
.clearbox {border-top: 1px solid transparent !important;margin-top: -1px !important;border-top: 0px;margin-top: 0px;height: 0px;clear: both;background: none; font-size: 0px;visibility: hidden;}/*clearbox:清除浮动,撑开边框*/
* html .clearfix {height: 1%;}
*+html .clearfix {height: 1%;}
.clearfix {display: block;}
.fix{word-break:keep-all;overflow:hidden;text-overflow:ellipsis;}
.clear{float:none; clear:both;font-size:0px;line-height:0px;height:0px; min-height:0px; padding:0px; margin:0px; overflow:hidden;}
.clear12{float:none; clear:both;font-size:0px;line-height:0px;height:12px; min-height:0px; padding:0px; margin:0px; overflow:hidden;}
.clear20{float:none; clear:both;font-size:0px;line-height:0px;height:20px; min-height:0px; padding:0px; margin:0px; overflow:hidden;}
/*浮动*/
.fl{ float:left;}
.fr{ float:right;}
/*大模块定义*/
.tit{ }
.tit span{}
.con{}
.bot{}
/*小模块定义*/
.hd{ }
.hd span{}
.bd{}
.ft{}