html近期所学

导航栏(新学的,,,,,其实就是简单的href)
css
开门大吉
轮播样式

js
css
js1
js1
js1
js1
js1
js7

首先是css

开门大吉

改只需其中的gif
  <html><head><style>section{width: 361px;height: 247px;border: red 1px solid;margin: 100px auto;background:url(erha.gif);position: relative;}.l,.r{position: absolute;top:0;width:50%;height:100%;background-color: red;transition:all 1s;}.l{left:0;border:1px solid #000;transform-origin: left;}.r{right:0;border:1px solid #000;transform-origin: right;}section:hover .l{transform: rotateY(-130deg);}section:hover .r{transform: rotateY(-130deg);}</style></head><body><section><div class="l"></div><div class="r"></div></section></body>
</html>

在这里插入图片描述

轮播样式

<html><style>ul{list-style:none;}div{width: 318px;height: 500px;border: 1px solid #ccc;margin: 50px auto;padding: 5px auto;position: relative;}.l{position:absolute;top: %50;margin-top: -250px;left:0;}.r{position:absolute;top: %50;margin-top: -250px;right:0;}.circle{width:65px;height: 13px;background-color:;position:absolute;margin-top: -14px;left: 50%;margin-left: -55px;}.circle li{width:9px;height: 9px;background-color: #B7B7B7;float: right;margin: 2px;border-radius: 50%;background: rgba(0,0,0,0.5);}.circle .current{background-color: #f40;}</style>
<body><div><img src="2.jpg" height="500" ><img src="left.png"	width="40" height="40" class="l" ><img src="right.png" width="30" height="40" class="r"><ul class="circle"><li class="current"></li><li></li><li></li><li></li><li></li><ul></div>
</body>
</html>

随便找的图
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

js

账户密码获取

<html><title>show</title>
<body><form method="get" action="xxx.php"><input type="txt" name="username" value=""><input type="password" name="word" value=""><input type="submit" name="sub" ></form>
</body>
</html>

xxx.php

<?phpecho '<pre>';var_dump($_REQUEST);

回车发送命令(按键)

<html>
<head>
<meta charset="utf8">
<style>
#count{width:200px;height:100px;border:black solid 1px;
}
</style>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery-3.4.1.js"></script>
<script src="js/bootstrap.js"></script>
</head><body>
<div>
<input type="button" id="btn" value="点我">
<input type="text" id="txt" value=""></div>
<div id="count"></div><script>document.onkeydown = function(e){if(e.keyCode==13){count.innerHTML = txt.value;}}btn.onclick = function(){count.innerHTML = txt.value;}</script>
</body></html>

计时器

<html>
<head>
<meta charset="utf8">
<style>
#count{width:200px;height:100px;border:black solid 1px;
}
</style>
<link rel="stylesheet" href="css/bootstrap.css">
</head><body>
<div>
<input type="button" id="btn" value="点我">
</div>
<div id="count"><span><span>
</div><script>var a=document.getElementById('btn');var b=document.getElementById('count');var timer =null;var count=0;b.innerHTML=count;timer = function tip(){count++;b.innerHTML=count;}a.onclick=function(){setInterval(timer,1000);}</script>
</body><script src="js/jquery-3.4.1.js"></script>
<script src="js/bootstrap.js"></script>
</html>

通过按钮实现清屏

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
window.onload=function(){
document.getElementById("btn").onclick=function(){displayDate()};function displayDate(){
txt.value="我喜欢你";
}
}</script>
</head>
<body>
<input id="txt" value="">
<button id="btn">清屏</button></body>
</html>

选项卡(轮播图原型)

<html>
<head>
<meta charset="utf8">
<style>
#div1 div{
width:200px;
height:200px;
border:black solid 2px;
display: none;
}#div1 .active{
background:red;
}
</style>
<link rel="stylesheet" href="css/bootstrap.css">
</head><body>
<div id="div1"><input id="btn1" class="active" type="button" value="农药资讯"><input id="btn2" type="button" value="前方消息"><input id="btn3" type="button" value="最新报道"><input id="btn4" type="button" value="聊天"><div style="display:block;">21123</div><div >321231</div><div >231321</div><div>54654321</div></div	><script>var oDiv=document.getElementById("div1");var aBtn=div1.getElementsByTagName("input");var aDiv=div1.getElementsByTagName("div");for(var i=0;i<aBtn.length;i++){	aBtn[i].index=i;aBtn[i].onclick=function(){	for(var i=0;i<aBtn.length;i++){aBtn[i].className="none";aDiv[i].style.display="none";}this.className="active";aDiv[this.index].style.display='block';}}</script>
</body><script src="js/jquery-3.4.1.js"></script>
<script src="js/bootstrap.js"></script></body>
</html>

阶乘

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
//点击btn触发函数事件
window.onload=function()
{
document.getElementById("btn").onclick=function(){add()	}
};//定义一个阶乘的函数
function add()
{var i,j=1;for(i=1;i<=txt.value;i++){j=j*i;}txt1.value=j;
}</script>
</head>
<body>
<input id="txt" value="">
<button id="btn">的阶乘是</button>
<input id="txt1" value=""></body>
</html>

密码一致登录

<html><body><input type="password" id="password" name="password" value="登 录"/>
加个按钮
<input name="a" type="submit" value="登 录" onclick="checkpassword();"/></body>
<script>function checkpassword(){var pwd="1234567";//你和朋友约定的密码,写死的var inpwd=document.getElementById("password").value;//获取输入的代码if(pwd == inpwd){ //判断一下是否一样window.location.href="img1.html";}
}
alert(inpwd);
</script></html>

Top

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/323362.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

asp.net core后台系统登录的快速构建

登录流程图 示例预览 构建步骤 当然&#xff0c;你也可以直接之前前往coding仓库查看源码&#xff0c;要是发现bug记得提醒我啊~ LoginDemo地址 1. 首先你得有一个项目 2. 然后你需要一个登录页面 完整Login.cshtml视图代码戳这里-共计55行 效果预览图 <!DOCTYPE html>&l…

JavaFX Chart设置数值显示

一、XYChart import javafx.application.Application; import javafx.geometry.NodeOrientation; import javafx.geometry.Side; import javafx.scene.Scene; import javafx.scene.chart.*; import javafx.scene.control.Label; import javafx.stage.Stage;public class LineC…

多多自走棋

文章目录[x]形似麻将种族职业各种搭配操作下面还是讲讲攻略&#xff08;主要&#xff09;在朋友的推荐下玩了自走棋&#xff0c;我一个不玩王者不玩吃鸡的人&#xff0c;玩这游戏竟然上瘾了&#xff0c;太不可思议了&#xff0c;这两天被这游戏搞得中午都没睡好&#xff0c;不得…

Linux--用SecureCRT来上传和下载文件

转载自 Linux--用SecureCRT来上传和下载文件 SecureCRT下的文件传输协议有以下几种&#xff1a;ASCII、Xmodem、Ymodem、Zmodem ASCII&#xff1a;这是最快的传输协议&#xff0c;但只能传送文本文件。 Xmodem&#xff1a;这种古老的传输协议速度较慢&#xff0c;但由于使用…

从头编写 asp.net core 2.0 web api 基础框架 (1)

工具: 1.Visual Studio 2017 V15.3.5 2.Postman (Chrome的App) 3.Chrome (最好是) 关于.net core或者.net core 2.0的相关知识就不介绍了, 这里主要是从头编写一个asp.net core 2.0 web api的基础框架. 我最近几年一直在使用asp.net web api (传统.net framework)作为后台Api, …

美妙的Github

这十天来&#xff0c;一度被自走棋带入了旋涡。没学到什么&#xff0c;但让我惊喜的是&#xff0c;游戏之余&#xff0c;我尝试了下Github。人们都讲Github是程序员的必备&#xff0c;连Github都不知道做什么程序员。玩了github之后我才是知道什么叫大佬。 通常我找源代码都是上…

白嫖之Github

文章目录[x]微信机器人这十天来&#xff0c;一度被自走棋带入了旋涡。没学到什么&#xff0c;但让我惊喜的是&#xff0c;游戏之余&#xff0c;我尝试了下Github。人们都讲Github是程序员的必备&#xff0c;连Github都不知道做什么程序员。玩了github之后我才是知道什么叫大佬。…

layer之弹层组件文档 layui.layer(v.1.9.0之后)

弹层组件文档 - layui.layer layer 至今仍作为 layui 的代表作&#xff0c;她的受众广泛并非偶然&#xff0c;而是这数年来的坚持、不弃的执念&#xff0c;将那些不屑的眼光转化为应得的尊重&#xff0c;不断完善和维护、不断建设和提升社区服务&#xff0c;在 Web 开发者的圈子…

设置宽带自动连接

刚接触电脑的小伙伴有没有这样的困扰&#xff0c;每次电脑开机的时候都要自己手动重新连接宽带&#xff0c;很麻烦。 而通过一些设置我们可以免除这样的麻烦&#xff0c;不需要输入账号密码&#xff0c;开机自动连接&#xff0c;每次开机省去个一两分钟的宽带连接时间&#xf…

随时随地以任意方式编写 .NET 应用程序

希望大家现在都知道&#xff0c;Microsoft .NET 不再仅适用于 Windows。借助 .NET Core&#xff0c;可以使用想要的语言&#xff08;C#、Visual Basic 或 F#&#xff09;编写应用程序&#xff0c;这些应用程序可以在选定的任何 OS&#xff08;Windows、macOS 或 Linux&#xff…

java实现如何定时给微信群中发送消息

大家好&#xff0c;我是雄雄。 前言 前几天&#xff0c;发了一个系列这样的文章&#xff0c;如下所示&#xff1a; java实现每日给女友微信发送早安等微信信息java实现给微信群中定时推送消息如何将每日新闻添加到自己博客中&#xff0c;发送到微信群中 基本都是说的一个事儿…

一张图理清ASP.NET Core启动流程

1. 引言 对于ASP.NET Core应用程序来说&#xff0c;我们要记住非常重要的一点是&#xff1a;其本质上是一个独立的控制台应用&#xff0c;它并不是必需在IIS内部托管且并不需要IIS来启动运行&#xff08;而这正是ASP.NET Core跨平台的基石&#xff09;。ASP.NET Core应用程序拥…

DevOps之发布系统V1.0

一、发布系统架构 &#xff08;1&#xff09;普通发布 &#xff08;2&#xff09;微服务发布 二、子系统与功能模块 &#xff08;1&#xff09;代码仓库 github、gitlab、svn &#xff08;2&#xff09;构建机 jenkins、maven构建机、本地构建包 &#xff08;3&#xff0…

Nodejs安装及使用

现阶段nodejs我用的多的是它里面的npm js的各种库都可以用npm安装&#xff0c;十分方便&#xff0c;再也不用去网上找了 当然&#xff0c;主要还是github上面的很多项目都要用npm“解封” 那下面说下它的安装吧 进入官网 https://nodejs.org/en/ 它会自动检测你的电脑&#xf…

在ASP.NET Core上实施每个租户策略的数据库

不定时更新翻译系列&#xff0c;此系列更新毫无时间规律&#xff0c;文笔菜翻译菜求各位看官老爷们轻喷&#xff0c;如觉得我翻译有问题请挪步原博客地址 本博文翻译自&#xff1a; http://gunnarpeipman.com/2017/08/database-per-tenant/ 让我们继续使用ASP.NET Core web应用…

php动态网站

记得从五六月份就说要建一个可以注册登录的网站了&#xff0c;结果自己两个多月都没能建成&#xff0c;由于学习动态网站实在需要太多知识了&#xff0c;可以说我这几个月的时间都是花在网页上的&#xff0c;从刚开始的htmlcss 到后面的js&#xff0c;js花了太多太多时间&#…

从头编写 asp.net core 2.0 web api 基础框架 (2)

上一篇是: 从头编写 asp.net core 2.0 web api 基础框架 (1) Github源码地址是: https://github.com/solenovex/Building-asp.net-core-2-web-api-starter-template-from-scratch 本文讲的是里面的Step 2. 上一次, 我们使用asp.net core 2.0 建立了一个Empty project, 然后做了…

java实现上传网络图片到七牛云存储

大家好&#xff0c;我是雄雄。 前言 最近阳了&#xff0c;第二条杠红的发紫&#xff0c;真难受啊&#xff0c;但是吧&#xff0c;博客上有个bug&#xff0c;不解决感觉比阳了还难受。 话还是要从博客的图片显示不出来这里说起&#xff0c;当时做的时候&#xff0c;在发文章这…

gRPC官方快速上手学习笔记(c#版)

上手前准备工作 支持操作系统&#xff1a;windows、OS X、Linux。实例采用.net、.net core sdk。 The .NET Core SDK command line tools. The .NET framework 4.5 (for OS X and Linux, the open source .NET Framework implementation, “Mono”, at version 4, is suitable…

spring cloud+dotnet core搭建微服务架构:Api网关(三)

前言 国庆假期&#xff0c;一直没有时间更新。 根据群里面的同学的提问&#xff0c;强烈推荐大家先熟悉下spring cloud。文章下面有纯洁大神的spring cloud系列。 上一章最后说了&#xff0c;因为服务是不对外暴露的&#xff0c;所以在外网要访问服务必须通过API网关来完成&…