喵,那是单身的小狗啊。嗯,坦白姐姐(哥哥)
功能:
输入要为其生成带参数网址的网页的名称。
在浏览器中输入该网站后,会打开以该名称命名的页面,图像会被轮流传送,还会有音乐哦
(为了简单实现,本文推荐的不是技术软件,而是小工具。)。
(ps:已经有了移动侧配合,开启手机的效果更好哦) ) )。
代码:
// name.html
! DOCTYPE html
html lang=&; #039; en&; #039;
头儿
meta charset=&; #039; UTF-8&; #039; /
metaname=&; #039; viewport&; #039; content=&; #039; width=device-width,initial-scale=1.0&; #039; /
metahttp-equiv=&; #039; x-UA-compatible&; #039; content=&; #039; ie=edge&; #039; /
输入标题名称/标题
斯泰尔斯
body {
最小高度: VH;
background : linear-gradient (# 1d2b 64,#f8cdda );
color: #fff;
字体错误:萍房sc -注册器;
padding:
边距:
}
input {
显示:在线块;
width:%;
height:px;
行高:5;
padding:pxpx;
边距: px auto auto;
字体大小: px;
border:px solid #dcdee2;
border-radius:px;
color: #515a6e;
background-color: #fff;
background-image: none;
定位:关系;
cursor :文本;
- WebKit-transition 3360 border.2s ease-in-out,background.2s ease-in-out,
- web kit-box-shadow.2s ease-in-out;
transition : border.2s ease-in-out,background.2s ease-in-out,
- web kit-box-shadow.2s ease-in-out;
transition : border.2s ease-in-out,background.2s ease-in-out,
box-shadow.2s ease-in-out;
transition : border.2s ease-in-out,background.2s ease-in-out,
box-shadow.2s ease-in-out,- WebKit-box-shadow.2s ease-in-out;
}
. button {
display :闪存;
align-items3360中心;
内容:中心;
定位:关系;
z-index:
width:%;
height:px;
background:rgba(89,
border-radius:px;
字体大小: px;
字体权重:
color:rgba(255,
line-height:px;
cursor: pointer;
}
. button-shadow {
width:%;
height:px;
background:rgba(106,
border-radius:px;
opacity:3081;
-WebKit-Filter:blur(4px );
过滤器:蓝牙(4px;
边距-顶部:-36px;
}
#card {
width:%;
盒- sizing :盒;
padding:pxpx;
word-wrap: break-word;
}
@ mediascreenand (最小宽度: px ) {
. container {
width:px;
边距:自动;
}
}
/style
/head
身体
div class=&; #039; 容器& amp; #039;
divstyle=&; #039; 文本对齐:中心; 边距- top : px & amp; #039;
h2Happy Valentine&; #039; s Day/h2
input type=&; #039; 文本& amp; #039; id=&; #039; name&; #039; /
/div
脚本
window.onload=function (
document.getelementbyid(&; #039; BTN&; #039; ).addeventlistener ),函数) {
let name=document.getelementbyid (& amp; #039; name&; #039; ) .值;
if(name===&; #039; &; #039; ) {
警报(& amp; #039; 请输入名称);
返回;
}
let url=
&; #039; https://zxp super.github.io/demo/valentine _ day/index.html? name=&; #039;
编码组件(name );
document.getelementbyid(&; #039; card&; #039; ).innerHTML=url;
);
(;
/脚本
div
style=&; #039; display :闪存; 边距-顶级: px; flex-direction :列; align-items:中心&; #039;
div class=&; #039; button&; #039; id=&; #039; btn&; #039; 确定/div
div class=&; #039; button-shadow&; #039; /div
div id=&; #039; card&; #039; /div
p id=&; #039; 复印- BTN & amp; #039; 把以上的URL复制并发送给别人吧/p
/div
/div
/body
/html
//index.html
! DOCTYPE html
html lang=&; #039; en&; #039;
头儿
meta charset=&; #039; UTF-8&; #039; /
metaname=&; #039; viewport&; #039; content=&; #039; width=device-width,initial-scale=1.0&; #039; /
metahttp-equiv=&; #039; x-UA-compatible&; #039; content=&; #039; ie=edge&; #039; /
title情人节快乐/title
斯泰尔斯
img {
width:%;
}
body {
最小高度: VH;
background : linear-gradient (# 1d2b 64,#f8cdda );
color: #fff;
字体错误:萍房sc -注册器;
padding:
边距:
}
. avatar {
width:px;
height:px;
border-radius:%;
border:px solid #fff;
}
. shadow {
定位:助手;
left:
z-index: -1;
过滤器:蓝牙(50px;
}
. btn-group {
display :闪存;
边距-顶级: px;
justify-content 3360 space-between;
align-items3360中心;
}
. btn-group div {
flex:
文本照明3360中心;
}
. sure {
padding:px
background :线性梯度(
deg、
RGBA(255,) %,
RGBA(221,) %
);
border-top-left-radius:px;
border-bottom-left-radius 3360 px;
}
. cancel {
padding:px
background: #eee;
颜色: # 333;
border-top-right-radius:px;
border-bottom-right-radius 3360 px;
}
marquee {
background: none;
}
@ mediascreenand (最小宽度: px ) {
. container {
width:px;
边距:自动;
}
}
/style
/head
身体
div class=&; #039; 容器& amp; #039;
div style=&; #039; padding:px&; #039;
div
style=&; #039; 定位:关系; display :闪存; align-items3360中心; 边距- bottom : px & amp; #039;
imgsrc=&; #039; Avatar.jpg&; #039; alt=&; #039; &; #039; class=&; #039; Avatar&; #039; /
imgsrc=&; #039; Avatar.jpg&; #039; alt=&; #039; &; #039; class=&; #039; Avatarshadow&; #039; /
spanstyle=&; #039; 边距-左边缘: px & amp; #039; id=&; #039; name&; #039; 小皮咖啡馆/span
/div
marqueescrolldelay=&; #039; 0&; #039; scrollamount=&; #039; 20&; #039;
img src=&; #039; 1.png&; #039; /
img src=&; #039; 2.png&; #039; /
img src=&; #039; 3.png&; #039; /
img src=&; #039; 4.png&; #039; /
img src=&; #039; 5.png&; #039; /
img src=&; #039; 6.png&; #039; /
img src=&; #039; 7.png&; #039; /
/marquee
音频
SRC=&; #039; http://att.chinaui.com/day _ 181211/2018 12 11 _ 8480 d 0323003455 BD6de8ccq3eq 28 mm9.MP3 & amp; #039;
自动播放
loop
您的浏览器不支持audio标签。
/audio
div class=&; #039; btn-group&; #039;
div class=&; #039; sure&; #039; onclick=&; #039; 警报(& amp; #039; 情人节快乐((^o^ )/~ () ) )。
确认
/div
divclass=&; #039; 取消& amp; #039; onclick=&; #039; 警报(& amp; #039; 取消无效。 请重新选择() ) )取消/div
/div
/div
/div
脚本
功能querystring {
varreg=newregexp () ) (^|) (name ) )|$ )、&; #039; I&; #039; );
varr=window.location.search.substr (1).match(reg );
国际空间站!=null ) {
return r[2];
}
返回空值;
}
window.onload=function (
letname=getquerystring(&; #039; name );
document.getelementbyid(&; #039; name&; #039; ).innerHTML=decodeURIComponent (
编码组件(name )。
);
(;
/脚本
/body
/html
各位,这次的情人节真开心啊。