console
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
$('#verification').hide();
$('#login').click(function () {
if ($(":text").val().length == 0) {
$('#username').focus();
$("#errorMessage").html(
"请您填写手机/邮箱/用户名");
} else if ($(":password").val().length == 0)
{
$('#password').focus();
$("#errorMessage").html(
"请您填写密码");
$('#verification').show();
}
else if ($('#verification').val().length == 0)
{
$('#verification').focus();
$('#errorMessage').html("请您填写验证码");
}
});
$('#verification').blur(function () {
if ($('#username').val().length != 0 && $('#password').val().length != 0)
{
if ($('#verification').val().length == 0)
{
$('#errorMessage').html("请您填写验证码");
}
else if ($('#verification').val() != 'mm')
{
$("#errorMessage").html(
"您输入的验证码有误: " + $('#verification').val());
}
else
{
$("#errorMessage").html('');
}
}
});
<div class="zongti">
<div class="class1">
<div>
<nav class="class2">
<a href="http://world.huanqiu.com/">
<b >首页
</b></a>
<a href="http://world.huanqiu.com/">
<b > 国际</b>
</a>
<a |href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > </b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 军事</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 国内</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 台海</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 评论</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 社会</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 环球</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 专题</b>
</a>
<a href="http://mil.huanqiu.com/observation/2017-05/10611678.html">
<b > 金融</b>
</a>
</nav>
<div id="menu" style="background-color:white;height:1130px;width:200px;float:left;"><p>环球今日评</p>
<li >社评:马克龙获胜,欧洲赢了民粹阻击战</li>
<li >劳木:勒庞败选,欧洲还不是民粹的天下</li>
<li >王嵎生:时代已发展到了节点,接近质变</li>
<li >刘志勤:中国又迎来一个“红五月”</li>
<li >杨毅:妥善处理中美军事关系的五个议题</li>
<br><br>
<img src="http://ipengtai.huanqiu.com/2016/0718/6a640732-cc45-4ef8-afc9-ffbd033b0d8d.jpg"style="width:165px;height:120px;">
<br>
<br>
<br>
第一话题
<li >社评:马克龙获胜,欧洲赢了民粹阻击战</li>
<li >劳木:勒庞败选,欧洲还不是民粹的天下</li>
<li >王嵎生:时代已发展到了节点,接近质变</li>
<li >刘志勤:中国又迎来一个“红五月”</li>
<li >杨毅:妥善处理中美军事关系的五个议题</li>
<li >劳木:勒庞败选,欧洲还不是民粹的天下</li>
<li >王嵎生:时代已发展到了节点,接近质变</li>
<li >王嵎生:时代已发展到</li>
<br>
<br>
<img src="http://ubmcmm.baidustatic.com/media/v1/0f000PLukNKg3C8C7ncyS0.jpg"style="width:165px;height:120px;">
<br>
<br>
<br>
<br>
<img src="http://ipengtai.huanqiu.com/2016/0719/1db33059-7257-4c94-aab0-84a7b04d411b.png"style="width:165px;height:120px;">
</div>
<img src="https://ss0.bdstatic.com/-0U0bnSm1A5BphGlnYG/tam-ogel/adf35b42dc14baf1e4579a382079561b_259_146.jpg">
<img src="https://ss0.bdstatic.com/-0U0bnSm1A5BphGlnYG/tam-ogel/8a8f7751188020a5ae05484093975b6b_259_194.jpg">
<img src="http://himg2.huanqiu.com/attachment2010/2017/0505/09/53/20170505095313546.jpg">
<img src="http://himg2.huanqiu.com/attachment2010/2017/0508/08/58/20170508085810409.jpg">
<img src="http://himg2.huanqiu.com/attachment2010/2017/0506/09/32/20170506093256186.png">
</div>
<div id="content" style="background-color:white;height:1000px;width:700px;float:left;">
<footer>
<br>
<p id="errorMessage"></p>
<input id='username' type="text" name="username">
<input type="password" id='password' name="password">
<input type='text' id='verification' />
<br />
<button id='login'>登录</button>
<br>
<div id="flip">666</div>
<h1 class="ccc">
<a href="http://jsrun.net/eNYKp/show" target="_blank" title="美媒:中国超算是美国安全威胁 削弱美国的核威慑力"> 中国让美撤掉太平洋司令?五角大楼回应:从未听说过此类消息</a>
</h1>
<div id="panel">
<br>
<img src="http://himg2.huanqiu.com/attachment2010/2017/0508/04/00/20170508040017175.jpg"
style="width:500px;height:500px;">
<br>
<p> 环球时报综合报道:日本媒体6日晚爆出惊人消息:“中方要求美军免去拥有日本血统的美国太平洋司令部司令哈里斯的职务,以作为在朝核问题上与美国合作的回报。《环球时报》驻华盛顿记者7日一早打电话给五角大楼求证,值班新闻官杰米·戴维斯表示,他从未听说过此类消息。当记者问他“是不是假新闻”时,他笑着说,,这是日本媒体的报道,有兴趣可以再问问他们。社6日晚报道称,值班新闻官杰米·戴维斯表示朝鲜加强施压作出报,中国政府要求美国更换太平洋司令哈里斯,理由是他在南海问题上对中国采取强硬姿态。报道称一名熟悉中美关系的消息人士”透露的。军队司令的人选调整属于内政重大事项,他国要求更换是极端异常的。这名消息人士称,中方是通过驻美大使向美方表达这一要求的,消息人士还说,中方同时要求特朗普政府不要把中国列为“汇率操纵国”,鉴于北京在华盛顿应对朝鲜问题上的作用,美方没有给中国贴上“汇率操纵国”标签。
【环球时报驻美国、日本记者 张朋辉 蓝雅歌 环球时报记者 郭媛丹 王亚斌 任重】
</p> </div>
</footer>
.zongti{
width:900px;
margin:auto;
}
.class1{
text-align:left;
height:50px;
}
.class2 {
text-align: center;
background-color:#007799;
margin: 0px;
padding: 25px;
height:5px;
}
nav a:link {color:white; text-decoration:none;}
nav a:visited {color:white;}
nav a:hover {text-align: center;
background-color:back;
margin: 0px;
padding:10px;
}
#title{
border:3px solid gray;
text-align:center;
color:white;
background-color: green;
}
.dhl{
border:3px solid gray;
width:200px;
text-align:center;
background-color:#C0C0C0;
height:100px;
}
#s1{
border:2px solid red;
width:200px;
padding:20px;
margin-top:5px;
float:left;
height:1020px;
}
img
{
width:130px;
height:130px;
}
}
footer{
border:3px solid gray;
text-align:center;
}
body{
background-color:;
text-align: center;
}
#flip
{
padding:5px;
text-align:center;
background-color:;
border:solid 1px #c3c3c3;
}
#panel,#panel
{
padding:50px;
display:none;
}
#errorMessage {
color: red;
}