Commit ed697fcb authored by xuwh's avatar xuwh
Browse files

陈羿州

parent 73046693
// 异步同载 begin
function about(url,obj,sel0,sel1) {
$.ajax({
type:"get",
url:url,
beforeSend: function(data,textStatus){
$("#abouts").html("<div style='text-align:center'><div style='height:250px;'></div><img src='/templets/1520/yangchao/images/ajax-loader.gif'/><div>");
},
success:function(data,textStauts){
$("#abouts").html($("#picList").html());
$(".picture").html("");
for(var i=0 ;i<data.count;i++){
$('#picTmp').tmpl(data.list[i]).appendTo('.picture');
}
scrollBar();
$("#abouts").fadeTo(3000, 1);
},
error:function(){
$("#abouts").text("失败");
}
});
setClass(obj,sel0,sel1);
}
//ajax请求文章内容详细信息
function ajaxContact(url,obj,sel0,sel1){
$.ajax({
type:"get",
url:url,
beforeSend: function(data,textStatus){
$("#abouts").html("<div style='text-align:center'><div style='height:250px;'></div><img src='/templets/1520/yangchao/images/ajax-loader.gif'/><div>");
},
success:function(data,textStauts){
$("#abouts").html("");
$("#abouts").html($("#contentDetail").html());
$(".contentbody").html(data.articleContent);
scrollBar();
},
error:function(){
$("#abouts").text("失败");
}
});
setClass(obj,sel0,sel1);
}
function scrollBar() {
$(".content").mCustomScrollbar({
setWidth:false,
setHeight:false,
setTop:0,
setLeft:0,
axis:"y",
scrollbarPosition:"inside",
scrollInertia:950,
autoDraggerLength:true,
autoHideScrollbar:false,
autoExpandScrollbar:false,
alwaysShowScrollbar:0,
snapAmount:null,
snapOffset:0,
mouseWheel:{
enable:true,
scrollAmount:"auto",
axis:"y",
preventDefault:false,
deltaFactor:"auto",
normalizeDelta:false,
invert:false
},
scrollButtons:{
enable:false,
scrollType:"stepless",
scrollAmount:"auto"
},
keyboard:{
enable:true,
scrollType:"stepless",
scrollAmount:"auto"
},
contentTouchScroll:25,
advanced:{
autoExpandHorizontalScroll:false,
autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",
updateOnContentResize:true,
updateOnSelectorLength:false
},
theme:"light",
callbacks:{
onScrollStart:false,
onScroll:false,
onTotalScroll:false,
onTotalScrollBack:false,
whileScrolling:false,
onTotalScrollOffset:0,
onTotalScrollBackOffset:0,
alwaysTriggerOffsets:true
},
live:false
});
}
// 异步同载 begin
function ajaxNews(url) {
$.ajax({
type:"get",
url:url,
beforeSend: function(data,textStatus){
$("#abouts").html("<div style='text-align:center'><div style='height:250px;'></div><img src='templets/yangchao/images/ajax-loader.gif'/><div>");
},
success:function(data,textStauts){
$("#abouts").css("display","none");
$("#abouts").html(data);
$("#abouts").html(data);
$("#abouts").fadeTo(3000, 1);
},
error:function(){
$("#abouts").text("失败");
}
});
}
//name:当前页数,value:上一页,a;一下页,b;
function pic(url,name,value ) {
var num;
num = $("#curNum").html()
if(value==null){
if(url!="#"){
$.ajax({
type:"get",
url:url,
beforeSend: function(data,textStatus){
$("#abouts").html("<div style='text-align:center '><div style='height:250px;'></div><img src='templets/yangchao/images/ajax-loader.gif'/><div>");
},
success:function(data,textStauts) {
$("#abouts").css("display","none");
$("#abouts").html(data);
$("#abouts").html(data);
$("#abouts").fadeTo(3000, 1);
scrollBar();
setTimeout(function() {$("#curNum").html(name);},100)
},
error:function() {
$("#abouts").text("失败");
}
});
}
}else{
if(value=="a"){
num--;
}else{
num++;
}
}
$.ajax({
type:"get",
url:url,
beforeSend: function(data,textStatus){
$("#abouts").html("<div style='text-align:center '><div style='height:250px;'></div><img src='templets/yangchao/images/ajax-loader.gif'/><div>");
},
success:function(data,textStauts) {
$("#abouts").css("display","none");
$("#abouts").html(data);
$("#abouts").html(data);
$(".list").prepend(num);
scrollBar();
$("#abouts").fadeTo(3000, 1);
},
error:function() {
$("#abouts").text("失败");
}
});
}
// 异步同载 end
/**
*菜单鼠标点击
*obj:点击对象
*sel:
*/
function setClass(obj,sel0,sel1) {
$("#menuLi li").each(function(i){
if (i!=parseInt(sel0)) {
$(this).mouseover(function(){
$(this).attr("class","selabout"+i);
});
$(this).mouseout(function(){
$(this).attr("class","about"+i);
});
$(this).attr("class","about"+i);
}
});
$(obj).unbind("mouseover");
$(obj).unbind("mouseout");
$(obj).attr("class","selabout"+sel0);
$(sel1).unbind("mouseover");
$(sel1).unbind("mouseout");
$(sel1).attr("class","selabout2");
}
$(function(){
$("#menuLi > li").hover(function(){
var backNo = $(this).attr("data-back");
var style = "about"+backNo;
var newStyle = "selabout"+backNo;
$(this).removeClass(style);
$(this).addClass(newStyle);
},function(){
var backNo = $(this).attr("data-back");
var style = "about"+backNo;
var newStyle = "selabout"+backNo;
$(this).removeClass(newStyle);
$(this).addClass(style);
})
})
\ No newline at end of file
// 将页面居中显示
$(window).resize(function(){
if($(window).width()>1140 && $(window).height()>550){
$('.contentFixed').css({
position:'absolute',
left: ($(window).width() - $('.contentFixed').width())/2,
top: ($(window).height() - $('.contentFixed').height())/2
});
}else if($(window).width()>1140){
$('.contentFixed').css({
position:'absolute',
left: ($(window).width() - $('.contentFixed').width())/2
});
}else if($(window).height()>550){
$('.contentFixed').css({
position:'absolute',
top: ($(window).height() - $('.contentFixed').height())/2
});
}
});
// To initially run the function:
$(window).resize();
// 将页面居中显示结束
<!--
━━━━━━神兽出没━━━━━━
   ┏┓   ┏┓
  ┏┛┻━━━┛┻┓
  ┃       ┃
  ┃   ━   ┃
  ┃ ┳┛ ┗┳ ┃
  ┃       ┃
  ┃   ┻   ┃
  ┃       ┃
  ┗━┓   ┏━┛
    ┃   ┃
    ┃   ┃
    ┃   ┗━━━┓
    ┃       ┣┓
    ┃       ┏┛
    ┗┓┓┏━┳┓┏┛
     ┃┫┫ ┃┫┫
     ┗┻┛ ┗┻┛
@author 肖欣(946953627@qq.com)
创建日期:2016/02/27
━━━━━━感觉萌萌哒━━━━━━
-->
<script src="http://cdn.mingsoft.net/plugins/jquery/1.9.1/jquery-1.9.1.js"></script>
<script type="text/javascript" src="{ms:global.host/}/{ms:global.style/}/js/goal.js"></script>
<script src="http://cdn.mingsoft.net/plugins/jquery.tmpl/1.4.2/jquery.tmpl.min.js"></script>
<script src="http://cdn.mingsoft.net/plugins/seajs/3.0.0/sea.js"></script>
<script src="http://cdn.mingsoft.net/model/1.0.0/main.min.js"></script>
<script>ms.config({
base:"{ms:global.host/}",
filter: {
people:{
loginUrl:'{ms:global.host/}'
}
}
}); </script>
<div class="left" >
<div class="logoGap"></div>
<div class="smallLogo"></div>
<div class="gap"></div>
<!--栏目列表开始-->
<div class="menu" >
<ul id="menuLi">
<script>
var t = new Date().getTime();
</script>
<li class="about0" data-back="0" onclick="parent.location.href='{ms:global.url/}/xueshu/index.html'"></li>
<li class="about1" data-back="1" onclick="parent.location.href='{ms:global.url/}/jianjie/index.html'"></li>
<li class="about2" data-back="2"></li>
<li class="about3" data-back="3" onclick="parent.location.href='{ms:global.url/}/zuopin/ciban/index.html'"></li>
<li class="about4" data-back="4" onclick="parent.location.href='{ms:global.url/}/zuopin/ciping/index.html'"></li>
<li class="about5" data-back="5" onclick="parent.location.href='{ms:global.url/}/zuopin/taoyi/index.html'"></li>
<li class="about6" data-back="6" onclick="parent.location.href='{ms:global.url/}/zuopin/shuimo/index.html'"></li>
<li class="about10" data-back="10" onclick="parent.location.href='{ms:global.url/}/shehuipingjia/index.html'"></li>
<li class="about9" data-back="9" onclick="parent.location.href='{ms:global.url/}/lianxi/index.html'"></li>
</ul>
</div>
<!--栏目列表结束-->
<div class="filed">
<div class="gap1"></div>
<div class="foot"></div>
</div>
</div>
<div class="backline" style="height: 100%;"></div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{ms:global.name/}</title>
<link rel="shortcut icon" href="{ms:global.host/}/{ms:global.style/}/favicon.ico" type="x-icon"/>
<meta name="description" content="{ms:global.descrip/}">
<meta name="keywords" content="{ms:global.keyword/}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/stley.css">
</head>
<body>
<div class="content" style="width: 1040px;">
<!--菜单页面-->
<div style="overflow:hidden;margin-right: 0;position: fixed;height: 100%;" >
<#include "left.htm">
</div>
<div class="right" style="float:right;">
<div class="About1999" style="margin-right:50px;width: 752px;">
{ms:arclist size=10 titlelen=12 ispaging=true}
<div class="newsTitle">
<div class="title">${field.title}</div>
<div class="pubdate">{ms:field.date?string("yyyy-MM-dd")/}</div>
</div>
<div class="newsBody">
<div class="img"><img src="{ms:global.host/}/{@ms:file field.litpic/}"/></div>
<div class="contentbody">${field.descrip}</div>
</div>
<a class="more" href="{ms:global.url/}[field.link/]"><img src="{ms:global.host/}/{ms:global.style/}/images/001.jpg" /></a>
<div style="height:30px;border-top:1px #979797 solid;" ></div>
{/ms:arclist}
<div class="pageList">
<ul>
<li><a href="{ms:global.url/}/{ms:page.index/}">首页</a></li>
<li><a href="{ms:global.url/}/{ms:page.pre/}">上一页</a></li>
<li><a href="{ms:global.url/}/{ms:page.next/}">下一页</a></li>
<li><a href="{ms:global.url/}/{ms:page.last/}">末页</a></li>
</ul>
</div>
<div class="hrdashed"></div>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0030)http://yangchao.ming-soft.net/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{ms:global.name/}</title>
<link rel="shortcut icon" href="{ms:global.host/}/{ms:global.style/}/favicon.ico" type="x-icon"/>
<meta name="description" content="{ms:global.descrip/}">
<meta name="keywords" content="{ms:global.keyword/}">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/stley.css">
</head>
<body style="overflow-x:hidden">
<div class="content" style="width: 1040px;">
<!--菜单页面-->
<div style="overflow:hidden;margin-right: 0;position: fixed;height: 100%;" >
<#include "left.htm">
</div>
<div class="right" style="float:right;width: 852px;">
<div class="About1999" style="margin-right:50px;width: 752px;">
<div style="width:70px"></div>
<div class="newsTitle">
<div class="title">{ms:field.title/}</div>
<div class="pubdate">{ms:field.date?string("yyyy-MM-dd")/}</div>
</div>
<div class="newsBody">
<div class="contentbody">{ms:field.content/}</div>
</div>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0030)http://yangchao.ming-soft.net/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{ms:global.name/}</title>
<link rel="shortcut icon" href="{ms:global.host/}/{ms:global.style/}/favicon.ico" type="x-icon"/>
<meta name="description" content="{ms:global.descrip/}">
<meta name="keywords" content="{ms:global.keyword/}">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/css.css">
<style>
::-webkit-scrollbar{width:2px;}
::-webkit-scrollbar-track {
background-color: #f1f1f1 ;
} /* 滚动条的滑轨背景颜色 */
::-webkit-scrollbar-thumb {
background-color:#c9c9cb;
} /* 滑块颜色 */
</style>
</head>
<body>
<div class="contentFixed">
<!--菜单页面-->
<#include "left.htm">
<div class="right" id="abouts">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/CustomScrollbar.css">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/styleScrollbar.css">
<script>window.jQuery || document.write('<script src="{ms:global.host/}/{ms:global.style/}/js/jquery-1.11.0.min.js"><\/script>')</script>
<script src="{ms:global.host/}/{ms:global.style/}/js/jquery.mCustomScrollbar.concat.min.js"></script>
<section id="examples">
<div class="content">
<div class="picture">
{ms:arclist size=10000}
<dl id="picList">
<dt>
<a href='{ms:global.url/}[field.link/]'>
<img style="border:none;" src='{ms:global.host/}{@ms:file field.litpic/}' width="78" height="78" /></a>
</dt>
<dd>${field.title}</dd>
</dl>
{/ms:arclist}
</div>
</div>
</section>
</div>
</div>
</body>
</html>
<div style="display:none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff50e2f644b494d7d9c752db5c1bd5c05' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0030)http://yangchao.ming-soft.net/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{ms:global.name/}</title>
<link rel="shortcut icon" href="{ms:global.host/}/{ms:global.style/}/favicon.ico" type="x-icon"/>
<meta name="description" content="{ms:global.descrip/}">
<meta name="keywords" content="{ms:global.keyword/}">
<link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/css.css">
</head>
<body style="overflow-x:hidden">
<div class="contentFixed">
<!--菜单页面-->
<div style="overflow:hidden;margin-right: 0;position: fixed;height: 100%;" >
<#include "left.htm">
</div>
<div class="right">
<div class="About1999" style="margin:25px;width:750px;">
<div style="width:70px"></div>
<div class="newsTitle">
<div class="title">{ms:field.title/}</div>
<div class="pubdate">{ms:field.date?string("yyyy-MM-dd")/}</div>
</div>
<div class="newsBody">
<div class="contentbody">{ms:field.content/}</div>
</div>
</div>
</div>
</div>
</body>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment