eae93dd4 by 任超

style:头部

1 parent c30a50ba
......@@ -18,7 +18,6 @@ document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + loca
document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/header.css\' />");
document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/common.css\' />");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/common.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/header.js\'></script>");
document.writeln("</head>");
......@@ -33,7 +32,7 @@ document.writeln(" <input type=\'text\' name=\'title\' required l
document.writeln(" class=\'layui-input\'>");
document.writeln(" <img class=\'search_img\' src=\'" + localhostPaht + "/staticImages/search.png\'>");
document.writeln(" </div>");
document.writeln(" <ul class='login login-con isLogin'>");
document.writeln(" <ul class='login layui-nav login-con'>");
document.writeln(" <span class='loginButton' id='login'>登录</span>");
document.writeln(" <p class='loginButton register' id='register'><a href=\'" + localhostPaht + "/staticViews/register.html\'>注册</a></p>");
document.writeln(" </ul>");
......@@ -69,4 +68,5 @@ document.writeln(" </div> ");
document.writeln(" </div> ");
document.writeln("</html>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/layui/layui.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>");
document.writeln("<script src=\'https://at.alicdn.com/t/font_2174584_1j8kvwarwge.js\'></script>");
......
......@@ -2,11 +2,11 @@ $(function () {
newsCenterData();
})
function newsCenterData() {
$('.sysNewsList .newsDetail').mouseover(function () {
$(document).on("mouseover", ".sysNewsList .newsDetail", function (e) {
$('.sysNewsList .newsDetail').addClass('ellipsis');
$(this).removeClass('ellipsis');
})
$('.sysNewsList .newsDetail').mouseout(function () {
$(document).on("mouseout", ".sysNewsList .newsDetail", function (e) {
$('.sysNewsList .newsDetail').addClass('ellipsis');
})
}
}
\ No newline at end of file
......
......@@ -94,8 +94,8 @@ function handleLogin(data) {
// 登录成功之前数据操作
function beforeLogin() {
$('.login-con').empty();
$('.login-con').append('<span class="loginButton" id="login">登录</span>'+
'<p class="loginButton register" id="register"><a href="/staticViews/register.html">注册</a></p>')
$('.login-con').append('<span class="loginButton" id="login">登录</span>' +
'<p class="loginButton register" id="register"><a href="/staticViews/register.html">注册</a></p>')
}
// 登录成功之后数据操作
function appendData() {
......@@ -134,11 +134,11 @@ function appendData() {
'<dd><a id="cancellation"><img src="/staticImages/zhuxiao.png">退出</a>' +
'</dd>' +
'</dl>' +
'</li>'
'</li>'
)
layui.use(['element'],function(){
layui.use(['element'], function () {
layui.element.init();//手动调用初始化方法
})
})
}
// 点击注册的时候
......