技术标签: okhttp
大家好,给大家分享一下js经典案例代码大全,很多人还不知道这一点。下面详细解释一下。现在让我们来看看!
代码如下所示,通过JavaScript函数showDaTu显示大图,重点是在<img>中调用onmouseover鼠标函数,然后通过document.getElementById函数实现换图。
<html>
<head>
<title>
JavaScript 图片切换
</title>
</head>
<body>
<>
function showDaTu(src){
document.getElementById("defaultImg").src=src;
}
</>
<img src="wall1.jpg" id="defaultImg">
<br><br><br>
<img src='wall_s1.jpg' οnmοuseοver="showDaTu('wall1.jpg')">
<img src='wall_s2.jpg' οnmοuseοver="showDaTu('wall2.jpg')">
<img src='wall_s3.jpg' οnmοuseοver="showDaTu('wall3.jpg')">
<img src='wall_s4.jpg' οnmοuseοver="showDaTu('wall4.jpg')">
<br>因图片较大,请等待图片加载完成……然后鼠标放小图上就会切换了。
</body>
</html>
运行结果如下图所示:
该部分参考:CSS3实现鼠标移动到图片上图片变大(缓慢变大,有过渡效果,放大的过程是有动画过渡的,这个过渡的时间可以自定义)_css 鼠标移入时el-card放大-程序员宅基地
CSS3的transform:scale()可以实现按比例放大或者缩小功能。
CSS3的transition允许CSS的属性值在一定的时间区间内平滑地过渡。这种效果可以在鼠标单击、获得焦点、被点击或对元素任何改变中触发,并圆滑地以动画效果改变CSS的属性值。
代码如下所示:
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
div{
width: 300px;
height: 300px;
border: #000 solid 1px;
margin: 50px auto;
overflow: hidden;
}
div img{
cursor: pointer;
transition: all 0.6s;
}
div img:hover{
transform: scale(1.4);
}
</style>
</head>
<body>
<div>
<img src="focus.jpg" />
</div>
</body>
</html>
效果如下图所示,包括缩放前后的对比。
transition: all 0.6s;表示所有的属性变化在0.6s的时间段内完成。
transform: scale(1.4);表示在鼠标放到图片上的时候图片按比例放大1.4倍。
PS:这部分代码参考博主"简单就是美",推荐大家可以去学习下,非常不错。
这段代码参考文章:http://blog.csdn.net/hill_kinsham/article/details/52448668
重点说一下关键功能的几个函数。
1.οnmοuseοver=" change('zs', this) " 函数的功能是鼠标移动到目标区域时,响应函数。这里的'zs'用id与后面要变更的区域绑定。this的功能不太了解,效果是改变当前的值。
2.οnmοuseοut="change2(this)";函数的功能是鼠标移开目标区域时,响应函数。
3.display. display 属性规定元素应该生成的框的类型。
none 此元素不会被显示。block 此元素将显示为块级元素,此元素前后会带有换行符。inline 默认。此元素会被显示为内联元素,元素前后没有换行符。
4.用<ul>时,去掉行号,并把它放到最左边。 list-style-type: none;
<html>
<head>
<meta charset="UTF-8">
<style>
body{
font-size: 12px;
}
.div1{
width: 126px;
height: 156px;
/* background-color: peachpuff;*/
}
.navi{
width: 21px;
height: 156px;
/* background-color: yellowgreen;*/
float: left;
}
.navi ul{
padding: 0px;
margin-left: 0px;
margin-top: 0px;
}
.navi ul li{
list-style-type: none;
width: 21px;
height: 43px;
margin-top: 4px;
text-align: center;
padding-top: 5px;
background-color: silver;
}
.zs, .rz,.ky{
width: 101px;
margin-left: 4px;
height: 156px;
margin-top: 0px;
/*background-color: rosybrown;*/
float: left;
}
.zs ul,.rz ul,.ky ul{
padding: 0px;
margin-left: 0px;
margin-top: 3px;
float: left;
}
.zs ul li,.rz ul li,.ky ul li{
list-style-type: none;
line-height: 19px;
}
.rz,.ky{
display: none;
}
</style>
<title>souhu</title>
< language="JavaScript">
<!--
function change(val,obj) {
obj.style.backgroundColor="#FFC12D";
if(val=='zs'){
zs.style.display='block';
rz.style.display='none';
ky.style.display='none';
}else if(val=='rz'){
ky.style.display='none';
zs.style.display='none';
rz.style.display='block';
}else if(val=='ky'){
ky.style.display='block';
zs.style.display='none';
rz.style.display='none';
}
}
function change2(val) {
val.style.backgroundColor="silver";
}
//-->
</>
</head>
<body>
<div class="div1">
<div class="navi">
<ul>
<li οnmοuseοver="change('zs',this)" οnmοuseοut="change2(this)">招生</li>
<li οnmοuseοver="change('rz',this)" οnmοuseοut="change2(this)">热招</li>
<li οnmοuseοver="change('ky',this)" οnmοuseοut="change2(this)">考研</li>
</ul>
</div>
<div id="zs" class="zs">
<ul>
<li><a href="#">招生招生招生招生</a></li>
<li><a href="#">招生招生招生招生</a></li>
<li><a href="#">招生招生招生招生</a></li>
<li><a href="#">招生招生招生招生</a></li>
<li><a href="#">招生招生招生招生</a></li>
<li><a href="#">招生招生招生招生</a></li>
</ul>
</div>
<div id="rz" class="rz" >
<ul>
<li><a href="#">热招热招热招热招</a></li>
<li><a href="#">热招热招热招热招</a></li>
<li><a href="#">热招热招热招热招</a></li>
<li><a href="#">热招热招热招热招</a></li>
<li><a href="#">热招热招热招热招</a></li>
<li><a href="#">热招热招热招热招</a></li>
</ul>
</div>
<div id="ky" class="ky" >
<ul>
<li><a href="#">考研考研考研考研</a></li>
<li><a href="#">考研考研考研考研</a></li>
<li><a href="#">考研考研考研考研</a></li>
<li><a href="#">考研考研考研考研</a></li>
<li><a href="#">考研考研考研考研</a></li>
<li><a href="#">考研考研考研考研</a></li>
</ul>
</div>
<div></div>
<div></div>
</div>
</body>
</html>
运行结果如下图所示:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>下菜单实现</title>
<style>
body{
width:100%;
padding:0px;
margin:0px;
}
#layout{
margin-top:10px;
padding:0px;
width:1024px;
margin-left:auto;
margin-right:auto;
}
#top{
width:1024px;;
height:59px;
}
#top #logo{
float:left;
margin-bottom:0px;
}
#top #second{
float:left;
margin-left:160px;
margin-top:20px;
padding:0px;
}
#top #second li{
font-size: 12px;
font-weight: bolder;
margin-right: 20px;
list-style-type: none;
float: left;
font-family: "微软雅黑";
}
#top #second li a{
text-decoration:none;
color:gray;
}
#top #second li a:hover{
color:red;
}
#top #third{
float: left;
border::gray 1px solid;
border: 2px solid #FFF;
background-color:gray;
margin-left:53px;
margin-top:10px;
padding-top:8px;
padding-bottom:8px;
padding-left:20px;
padding-right:5px;
border-radius:8px;
}
#top #third li{
float:left;
margin-right:10px;
list-style-type:none;
font-size:12px;
}
#top #third li a{
color:white;
text-decoration:none;
}
#top #third li a:hover{
text-decoration:underline;
}
#menu{
width: 2000px;
height: 50px;
background-color: #313b4d;
padding-top: 0px;
padding-left: 460px;
padding-bottom: 0px;
margin-left: -460px;
z-index: 20;
}
#menu #first{
position: relative;
width:100%;
margin-left:10px;
padding:0px;
}
#menu #first li{
float: left;
list-style-type: none;
font-size: 14px;
margin-right: 40px;
margin-top: 15px;
margin-bottom: 0px;
padding-bottom: 15px;
font-family: "微软雅黑";
}
#tit1:hover#tit1:hover,#tit2:hover,#tit3:hover,#tit4:hover,#tit5:hover,#tit6:hover,#tit7:hover{
background-image: url(backgroundimg.png);
background-repeat: no-repeat;
background-position: center bottom;
}
#tit1:hover #one,#tit2:hover #two,#tit3:hover #three,#tit4:hover #four,#tit5:hover #five,#tit6:hover #six,#tit7:hover #seven{
display:inline;
}
#tit1 a, #tit2 a, #tit3 a,#tit4 a,#tit5 a,#tit6 a,#tit7 a{
color:white;
text-decoration:none;
font-weight:bolder;
padding:0px;
margin:0px;
}
#one,#two,#three,#four,#five,#six,#seven{
position: absolute;
background-color:white;
top: 50px;
left:-460px;
width: 1920px;
padding-top: 25px;
padding-left: 0px;
padding-bottom: 25px;
display: none;
margin-right:0px;
}
#one img,#two img,#three img,#four img,#five img,#six img,#seven img{
float:left;
margin-right:50px;
margin-left:460px;
}
#one ul,#two ul,#three ul,#four ul,#five ul,#six ul,#seven ul{
font-family: "微软雅黑";
margin-top:10px;
width:1200px;
}
#one li a,#two li a,#three li a,#four li a,#five li a,#six li a,#seven li a{
color:#313b4d;
font-weight:normal;
margin-right:5px;
}
#one li a:hover,#two li a:hover,#three li a:hover,#four li a:hover,#five li a:hover,#six li a:hover,#seven li a:hover{
color: #AD0000;
}
form{
float:left;
width:200px;
border:white solid 2px;
border-radius:8px;;
padding-left:5px;
padding-bottom:5px;
margin-top:10px;
margin-left:133px;
}
#search{
font-family: Arial, Helvetica, sans-serif;
color: gray;
font-size: 12px;
border: none;
padding:0px;
margin-left:5px;
margin-top: 5px;
margin-bottom:3px;
background-color: transparent;
letter-spacing:1px;
}
#search_img{
margin-top:17px;
margin-bottom:3px;
margin-left:-30px;
}
#bg{
padding:0px;
width:100%;
height:520px;
background-color:black;
margin-top:0px;
}
p{
font-family:"微软雅黑"
font-size: 16px;
font-weight: bolder;
text-align:center;
color: gray;
margin-top:50px;
border-top-width: 1px;
border-bottom-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #333;
border-right-color: #333;
border-bottom-color: #333;
border-left-color: #333;
}
</style>
</head>
<body>
<div id="layout">
<div id="top">
<img id="logo" src="gufe_logo.png">
<ul id="second">
<li><a href="#">领导信箱</a></li>
<li><a href="#">信息公开</a></li>
<li><a href="#">数字贵财</a></li>
<li><a href="#">邮箱</a></li>
<li><a href="#">English</a></li>
</ul>
<ul id="third">
<li><a href="#">学生</a></li>
<li><a href="#">教职工</a></li>
<li><a href="#">校友</a></li>
<li><a href="#">考生/访客</a></li>
</ul>
</div>
<div id="menu">
<ul id="first">
<li id="tit1"><a href="#">贵财概况</a>
<div id="one">
<img src="gaikuo_img.jpg"/>
<ul >
<li><a href="#">学校简介</a></li>
<li><a href="#">贵财标识</a></li>
<li><a href="#">现任领导</a></li>
<li><a href="#">发展战略</a></li>
<li><a href="#">领导关怀</a></li>
<li><a href="#">校友风采</a></li>
<li><a href="#">大事记</a></li>
<li><a href="#">历史沿革</a></li>
<li><a href="#">校园风光</a></li>
</ul>
</div>
</li>
<li id="tit2"><a href="#">组织机构</a>
<div id="two">
<img src="zuzhi_img.jpg"/>
<ul >
<li><a href="#">党群部门</a></li>
<li><a href="#">行政部门</a></li>
<li><a href="#">院系设置</a></li>
<li><a href="#">科研机构</a></li>
<li><a href="#">教辅部门</a></li>
</ul>
</div></li>
<li id="tit3"><a href="#">招生就业</a>
<div id="three">
<img src="zhaosheng_img.jpg" />
<ul >
<li><a href="#">本专科招生</a></li>
<li><a href="#">研究生招生</a></li>
<li><a href="#">本专科就业</a></li>
<li><a href="#">研究生就业</a></li>
</ul>
</div></li>
<li id="tit4"><a href="#">教育教学</a>
<div id="four">
<img src="jiaoyu_img.jpg">
<ul >
<li><a href="#">师资队伍</a></li>
<li><a href="#">本科生教育</a></li>
<li><a href="#">研究生教育</a></li>
<li><a href="#">继续教育</a></li>
<li><a href="#">留学生教育(国际合作培养)</a></li>
</ul>
</div></li>
<li id="tit5"><a href="#">科学研究</a>
<div id="five">
<img src="kexue_img.jpg"/>
<ul >
<li><a href="#">学科建设</a></li>
<li><a href="#">科研项目</a></li>
<li><a href="#">科研机构</a></li>
<li><a href="#">学术刊物</a></li>
</ul>
</div></li>
<li id="tit6"><a href="#">合作交流</a>
<div id="six">
<img src="hezuo_img.jpg"/>
<ul >
<li><a href="#">中外合作办学</a></li>
<li><a href="#">孔子学院</a></li>
<li><a href="#">学术交流</a></li>
<li><a href="#">国际交流</a></li>
</ul>
</div></li>
<li id="tit7"><a href="#">校园服务</a>
<div id="seven">
<img src="fuwu_img.jpg"/>
<ul >
<li><a href="#">校园文化</a></li>
<li><a href="#">校园导览</a></li>
<li><a href="#">生活指南</a></li>
<li><a href="#">校园媒体</a></li>
<li><a href="#">道德讲堂</a></li>
<li><a href="#">心理健康教育</a></li>
<li><a href="#">助学服务</a></li>
<li><a href="#">校历</a></li>
<li><a href="#">问卷调查</a></li>
</ul>
</div></li>
</ul>
<form>
<input id="search" type="text" name="search" value="请输入搜索内容..." size="20px;" />
</form><input id="search_img"type="image" src="search_button.png"/>
</div>
</div>
<img id="bg" src="bga2.jpg" >
<p>By Eastmount CSDN</p>
</body>
</html>
运行如下图所示,鼠标移动到不同位置可以显示不同下拉菜单,非常实用的例子。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>放大镜</title>
<style type="text/css">
#div1 { width: 120px; height: 90px; padding: 5px; border: 1px solid #ccc; position: relative; }
#div1 .small_pic { width: 120px; height: 90px; background: #eee; position: relative; }
#div1 .float_layer { width: 50px; height: 50px; border: 1px solid #000; background: #fff; filter: alpha(opacity: 30); opacity: 0.3; position: absolute; top: 0; left: 0; display:none; }
#div1 .mark {width:100%; height:100%; position:absolute; z-index:2; left:0px; top:0px; background:red; filter:alpha(opacity:0); opacity:0;}
#div1 .big_pic { position: absolute; top: -1px; left: 215px; width:250px; height:250px; overflow:hidden; border:2px solid #CCC; display:none; }
#div1 .big_pic img { position:absolute; top: -30px; left: -80px; }
</style>
< type="text/java">
function getByClass(oParent, sClass)
{
var aEle=oParent.getElementsByTagName('*');
var aTmp=[];
var i=0;
for(i=0;i<aEle.length;i++)
{
if(aEle[i].className==sClass)
{
aTmp.push(aEle[i]);
}
}
return aTmp;
}
window.οnlοad=function ()
{
var oDiv=document.getElementById('div1');
var oMark=getByClass(oDiv, 'mark')[0];
var oFloat=getByClass(oDiv, 'float_layer')[0];
var oBig=getByClass(oDiv, 'big_pic')[0];
var oSmall=getByClass(oDiv, 'small_pic')[0];
var oImg=oBig.getElementsByTagName('img')[0];
oMark.οnmοuseοver=function ()
{
oFloat.style.display='block';
oBig.style.display='block';
};
oMark.οnmοuseοut=function ()
{
oFloat.style.display='none';
oBig.style.display='none';
};
oMark.οnmοusemοve=function (ev)
{
var oEvent=ev||event;
var l=oEvent.clientX-oDiv.offsetLeft-oSmall.offsetLeft-oFloat.offsetWidth/2;
var t=oEvent.clientY-oDiv.offsetTop-oSmall.offsetTop-oFloat.offsetHeight/2;
if(l<0)
{
l=0;
}
else if(l>oMark.offsetWidth-oFloat.offsetWidth)
{
l=oMark.offsetWidth-oFloat.offsetWidth;
}
if(t<0)
{
t=0;
}
else if(t>oMark.offsetHeight-oFloat.offsetHeight)
{
t=oMark.offsetHeight-oFloat.offsetHeight;
}
oFloat.style.left=l+'px';
oFloat.style.top=t+'px';
var percentX=l/(oMark.offsetWidth-oFloat.offsetWidth);
var percentY=t/(oMark.offsetHeight-oFloat.offsetHeight);
oImg.style.left=-percentX*(oImg.offsetWidth-oBig.offsetWidth)+'px';
oImg.style.top=-percentY*(oImg.offsetHeight-oBig.offsetHeight)+'px';
};
};
</>
</head>
<body>
<div id="div1">
<div class="small_pic">
<span class="mark"></span>
<span class="float_layer"></span>
<img src="wall_s6.jpg" /></div>
<div class="big_pic"><img src="wall6.jpg" /></div>
</div>
</body>
</html>
代码如下所示,该段代码实现点击"下一页"翻页功能。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
#top {
background-color: #8EC7FF;
height: 45px;
width: 1030px;
float: left;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-bottom-style: solid;
border-top-color: #FFF;
border-right-color: #FFF;
border-bottom-color: #FFF;
border-left-color: #FFF;
}
#own {
width: 1030px;
margin: 0 auto;
}
h2 {
display: inline;
float: left;
font-size: 18px;
font-weight: 400;
margin-top: -12px;
}
#message {
height: 30px;
width: 1030px;
background-color: #CCCCCC;
float: left;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-bottom-style: solid;
border-top-color: #999;
border-right-color: #999;
border-bottom-color: #999;
border-left-color: #999;
}
#own #message .h1 {
width: 150px;
}
#own #message .h2 {
width: 700px;
}
#top .sb {
height: 30px;
width: 100px;
margin-left: 10px;
margin-top: 10px;
}
#top .sb1 {
height: 30px;
width: 120px;
margin-left: 10px;
margin-top: 10px;
}
#buttom {
width: 1030px;
float: left;
margin-top: 10px;
}
td{
border-bottom:#CCC solid 1px;
border-collapse:collapse;
}
a{
text-decoration:none;
color:#333;
}
a:link {color: #333} /* 未访问的链接 */
a:visited {color:#00C;} /* 已访问的链接 */
a:hover {color:#99C;}
</style>
<!--实现全选-->
< type="text/java" src="js/jquery-1.4.4.min.js"></>
< type="text/java">
$(function(){
$('#selectAll').click(function(){
$('input[type=checkbox]').attr('checked', $(this).attr('checked'));
});
});
</>
<!--批量删除-->
< language="java">
function deleteAll(obj){
var checked = document.getElementsByName(obj);
for(var i = 0; i < checked.length; i ++){
if(checked[i].checked){
var tr=checked[i].parentNode.parentNode;
var tbody=tr.parentNode;
tbody.removeChild(tr);
i--;
}
}
}
</>
< type="text/java">
function goPage(pno,psize){
var itable = document.getElementById("idData");
var num = itable.rows.length;//表格所有行数(所有记录数)
console.log(num);
var totalPage = 0;//总页数
var pageSize = psize;//每页显示行数
//总共分几页
if(num/pageSize > parseInt(num/pageSize)){
totalPage=parseInt(num/pageSize)+1;
}else{
totalPage=parseInt(num/pageSize);
}
var currentPage = pno;//当前页数
var startRow = (currentPage - 1) * pageSize+1;//开始显示的行 31
var endRow = currentPage * pageSize;//结束显示的行 40
endRow = (endRow > num)? num : endRow; 40
console.log(endRow);
//遍历显示数据实现分页
for(var i=1;i<(num+1);i++){
var irow = itable.rows[i-1];
if(i>=startRow && i<=endRow){
irow.style.display = "block";
}else{
irow.style.display = "none";
}
}
var pageEnd = document.getElementById("pageEnd");
var tempStr = "共"+num+"条记录 分"+totalPage+"页 当前第"+currentPage+"页";
if(currentPage>1){
tempStr += "<a href=\"#\" onClick=\"goPage("+(1)+","+psize+")\">首页</a>";
tempStr += "<a href=\"#\" onClick=\"goPage("+(currentPage-1)+","+psize+")\"><上一页</a>"
}else{
tempStr += "首页";
tempStr += "<上一页";
}
if(currentPage<totalPage){
tempStr += "<a href=\"#\" onClick=\"goPage("+(currentPage+1)+","+psize+")\">下一页></a>";
tempStr += "<a href=\"#\" onClick=\"goPage("+(totalPage)+","+psize+")\">尾页</a>";
}else{
tempStr += "下一页>";
tempStr += "尾页";
}
document.getElementById("barcon").innerHTML = tempStr;
}
</>
<>
function td()
{
document.getElementById("btn1").value="已读";
}
function td1()
{
document.getElementById("btn2").value="已读";
}
</>
</head>
<body onload ="goPage(1,5);" >
<div id="own">
<div id="top">
<input class="sb" type="submit" id="" value="删除" name="delete_button" οnclick="deleteAll('range');" />
</div>
<div id="buttom">
<span>我的消息</span>
<div><hr color="#00CCFF" width="1030px"/></div>
<table cellPadding=0 cellSpacing=0 style="text-align:center" id="idData">
<tbody>
<tr style="height:35px;">
<td width="45px"><input type="checkbox" value="" name="range" id="selectAll"/></td>
<td width="120px">反馈人</td>
<td width="680px">反馈内容</td>
<td width="150px">反馈时间</td>
<td width="50px">操作</td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="xxxiangxi.html" target="menuFrame" οnclick="iframe.location='xxxiangxi.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="xxxiangxi.html" target="menuFrame" οnclick="iframe.location='xxxiangxi.html'"><input class="sb" type="submit" value="未读" id="btn1" οnclick="td()"/></a></td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="note.html" target="menuFrame" οnclick="iframe.location='note.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="note.html" target="_blank"><input class="sb" type="submit" id="btn2" οnclick="td1()" value="未读" /></a></td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="note.html" target="menuFrame" οnclick="iframe.location='note.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="note.html" target="_blank"><input class="sb" type="submit" id="btn2" οnclick="td1()" value="未读" /></a></td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="note.html" target="menuFrame" οnclick="iframe.location='note.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="note.html" target="_blank"><input class="sb" type="submit" id="btn2" οnclick="td1()" value="未读" /></a></td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="note.html" target="menuFrame" οnclick="iframe.location='note.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="note.html" target="_blank"><input class="sb" type="submit" id="btn2" οnclick="td1()" value="未读" /></a></td>
</tr>
<tr style="height:32px;">
<td width="45px"><input type="checkbox" value="" name="range"/></td>
<td width="120px">沈敏</td>
<td width="680px"><a href="note.html" target="menuFrame" οnclick="iframe.location='note.html'">你好呀!!!!!!!!!!!!!!!!!!!!!!!!!!!!</a></td>
<td width="150px">2016/11/13</td>
<td width="50px"><a href="note.html" target="_blank"><input class="sb" type="submit" id="btn2" οnclick="td1()" value="未读" /></a></td>
</tr>
</tbody>
</table>
<table width="100%" align="right">
<tr><td style="padding-left:640px;"><div id="barcon" name="barcon"></div></td></tr>
</table>
</div>
</div>
</body>
</html>
运行结果如下所示:
最后希望这篇文章对你有所帮助,尤其是我的学生和JS学习者。
最近非常开心,感谢娜娜,晚安~
(By:Eastmount 2016-12-19 凌晨1点 Eastmount_网络安全自学篇,Python学习系列,知识图谱、web数据挖掘及NLP-程序员宅基地 )
文章浏览阅读5.8k次。在大数据的发展当中,大数据技术生态的组件,也在不断地拓展开来,而其中的Hive组件,作为Hadoop的数据仓库工具,可以实现对Hadoop集群当中的大规模数据进行相应的数据处理。今天我们的大数据入门分享,就主要来讲讲,Hive应用场景。关于Hive,首先需要明确的一点就是,Hive并非数据库,Hive所提供的数据存储、查询和分析功能,本质上来说,并非传统数据库所提供的存储、查询、分析功能。Hive..._hive应用场景
文章浏览阅读496次。Zblog是由Zblog开发团队开发的一款小巧而强大的基于Asp和PHP平台的开源程序,但是插件市场上的Zblog采集插件,没有一款能打的,要么就是没有SEO文章内容处理,要么就是功能单一。很少有适合SEO站长的Zblog采集。人们都知道Zblog采集接口都是对Zblog采集不熟悉的人做的,很多人采取模拟登陆的方法进行发布文章,也有很多人直接操作数据库发布文章,然而这些都或多或少的产生各种问题,发布速度慢、文章内容未经严格过滤,导致安全性问题、不能发Tag、不能自动创建分类等。但是使用Zblog采._zblog 网页采集插件
文章浏览阅读2.4k次,点赞2次,收藏2次。restUI页面提交1.1 添加上传jar包1.2 提交任务job1.3 查看提交的任务2. 命令行提交./flink-1.9.3/bin/flink run -c com.qu.wc.StreamWordCount -p 2 FlinkTutorial-1.0-SNAPSHOT.jar3. 命令行查看正在运行的job./flink-1.9.3/bin/flink list4. 命令行查看所有job./flink-1.9.3/bin/flink list --all._flink定时运行job
文章浏览阅读1k次,点赞2次,收藏6次。这个项目是基于STM32的LED闪烁项目,主要目的是让学习者熟悉STM32的基本操作和编程方法。在这个项目中,我们将使用STM32作为控制器,通过对GPIO口的控制实现LED灯的闪烁。这个STM32 LED闪烁的项目是一个非常简单的入门项目,但它可以帮助学习者熟悉STM32的编程方法和GPIO口的使用。在这个项目中,我们通过对GPIO口的控制实现了LED灯的闪烁。LED闪烁是STM32入门课程的基础操作之一,它旨在教学生如何使用STM32开发板控制LED灯的闪烁。_嵌入式stm32闪烁led实验总结
文章浏览阅读63次。本文介绍了安装和部署Debezium的详细步骤,并演示了如何将Debezium服务托管到systemctl以进行方便的管理。本文将详细介绍如何安装和部署Debezium,并将其服务托管到systemctl。解压缩后,将得到一个名为"debezium"的目录,其中包含Debezium的二进制文件和其他必要的资源。注意替换"ExecStart"中的"/path/to/debezium"为实际的Debezium目录路径。接下来,需要下载Debezium的压缩包,并将其解压到所需的目录。
文章浏览阅读4.4k次。需求:在诗词曲文项目中,诗词整篇朗读的时候,文章没有读完会因为屏幕熄灭停止朗读。要求:在文章没有朗读完毕之前屏幕常亮,读完以后屏幕常亮关闭;1.权限配置:设置电源管理的权限。
文章浏览阅读2.3k次。目标检测简介、评估标准、经典算法_目标检测
文章浏览阅读6.3k次,点赞4次,收藏9次。实训时需要安装SQL server2008 R所以我上网上找了一个.exe 的安装包链接:https://pan.baidu.com/s/1_FkhB8XJy3Js_rFADhdtmA提取码:ztki注:解压后1.04G安装时Microsoft需下载.NET,更新安装后会自动安装如下:点击第一个傻瓜式安装,唯一注意的是在修改路径的时候如下不可修改:到安装实例的时候就可以修改啦数据..._sqlserver 127 0 01 无法连接
文章浏览阅读7.4k次。1. Object.keys(item); 获取到了key之后就可以遍历的时候直接使用这个进行遍历所有的key跟valuevar infoItem={ name:'xiaowu', age:'18',}//的出来的keys就是[name,age]var keys=Object.keys(infoItem);2. 通常用于以下实力中 <div *ngFor="let item of keys"> <div>{{item}}.._js 遍历对象的key
文章浏览阅读2.2w次,点赞51次,收藏310次。粒子群算法求解路径规划路径规划问题描述 给定环境信息,如果该环境内有障碍物,寻求起始点到目标点的最短路径, 并且路径不能与障碍物相交,如图 1.1.1 所示。1.2 粒子群算法求解1.2.1 求解思路 粒子群优化算法(PSO),粒子群中的每一个粒子都代表一个问题的可能解, 通过粒子个体的简单行为,群体内的信息交互实现问题求解的智能性。 在路径规划中,我们将每一条路径规划为一个粒子,每个粒子群群有 n 个粒 子,即有 n 条路径,同时,每个粒子又有 m 个染色体,即中间过渡点的_粒子群算法路径规划
文章浏览阅读353次。所谓稳健的评估指标,是指在评估的过程中数据的轻微变化并不会显著的影响一个统计指标。而不稳健的评估指标则相反,在对交易系统进行回测时,参数值的轻微变化会带来不稳健指标的大幅变化。对于不稳健的评估指标,任何对数据有影响的因素都会对测试结果产生过大的影响,这很容易导致数据过拟合。_rar 海龟
文章浏览阅读607次,点赞2次,收藏7次。–基于STM32F103ZET6的UART通讯实现一、什么是IAP,为什么要IAPIAP即为In Application Programming(在应用中编程),一般情况下,以STM32F10x系列芯片为主控制器的设备在出厂时就已经使用J-Link仿真器将应用代码烧录了,如果在设备使用过程中需要进行应用代码的更换、升级等操作的话,则可能需要将设备返回原厂并拆解出来再使用J-Link重新烧录代码,这就增加了很多不必要的麻烦。站在用户的角度来说,就是能让用户自己来更换设备里边的代码程序而厂家这边只需要提供给_value line devices connectivity line devices