中国红客联盟国际站
联盟介绍
联盟架构
联盟文化
联盟事记
联盟邮箱
购买特权
捐助我们
收藏本站
请登录
立即注册
首页
Portal
资讯
圈子
Group
贡献榜
关于我们
红客起源事记
搜索
文章
帖子
用户
请
登录
后使用快捷导航
没有账号?
立即注册
赞助我们
当前位置:
»
交流社区
›
圈子
›
官方圈子
›
中国红客联盟第五战区
›
代码
点赞
4
收藏
0
回复
代码
4458
6
萧婉月
2022-12-28 11:30:01
|
显示全部楼层
|
阅读模式
谁有爱心代码,急着表白
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
千斤顶
照妖镜
H.U.C.-鳌
2022-12-31 15:48:57
|
显示全部楼层
此为html代码,用时先打开txt文档更改想更改的内容(已标注中文)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>删除此段文字并输入标题</title>
<style>
*{
margin: 0;
padding: 0;
}
body{
overflow: hidden;
background-color: #000;
}
h1{
position: absolute;
line-height: 50px;
letter-spacing: 5px;
color: #fff;
width: 300px;
top: 40%;
left: 50%;
margin-left: -200px;
font-size: 30px;
}
</style>
</head>
<body>
<h1>
</h1>
<canvas></canvas>
<script>
var canvas=document.querySelector("canvas");
ctx=canvas.getContext("2d");
w=canvas.width=window.innerWidth;
h=canvas.height=window.innerHeight;
var canvas2=document.createElement("canvas");
ctx2=canvas2.getContext("2d");
canvas2.width=100;
canvas2.height=100;
var a=canvas2.width/2;
var grandient=ctx.createRadialGradient(a,a,0,a,a,a);
grandient.addColorStop(0.025,'#fff');
grandient.addColorStop(0.1, 'hsl(220,59%,18%)');
grandient.addColorStop(0.025, 'hsl(220,60%,33%)');
grandient.addColorStop(1,"transparent");
ctx2.fillStyle=grandient;
ctx2.beginPath();
ctx2.arc(a,a,a,0,Math.PI*2);
ctx2.fill();
ctx2.closePath();
var stars=[];
var count=0;
function Star(){
this.pos=Math.floor(Math.random()* w/2-100);
this.r=Math.floor(Math.random()*100);
this.dx=w/2;
this.dy=h/2;
this.rand=Math.floor(Math.random()*360);
this.speed=this.pos/100000;
stars[count]=this;
count ++;
}
Star.prototype.draw=function(){
var x=Math.sin(this.rand+1)* this.pos+this.dx;
y=Math.cos(this.rand)*this.pos/2+this.dy;
ctx.drawImage(canvas2,x-this.r/2,y-this.r/2,this.r,this.r);
this.rand=this.rand+this.speed;
}
for(var i=0;i<1000;i++){
new Star();
}
function anmit(){
ctx.clearRect(0,0,w,h);
for(var i=0;i<stars.length;i++){
stars[i].draw();
}
requestAnimationFrame(anmit);
}
anmit();
var oH=document.getElementsByTagName("h1")[0];
var arr=["这世间过于俗气","不像你一般","浩瀚星辰,温柔婉转(预设文字,可更改)"],
index=0,
arrLen=arr.length,
strLen=arr[0].length;
pos=0,
row=0,
str="",
timer=null;
function print() {
while(row<index){
str=str+arr[row]+"<br>";
row++;
}
oH.innerHTML=str+arr[index].substring(0,pos);
if(pos==strLen){
index++;
pos =0;
if(index<arr.length){
strLen=arr[index].length;
timer=setTimeout(print,250);
}
}else{
pos++;
timer=setTimeout(print,250);
}
}
setTimeout(print,250);
</script>
</body>
</html>
回复
支持
反对
使用道具
举报
照妖镜
cinond800T_T
2023-1-2 10:32:36
|
显示全部楼层
我有vbs代码 行不?
回复
支持
反对
使用道具
举报
照妖镜
中国红客——DHN
2023-1-2 21:50:04
|
显示全部楼层
6
回复
使用道具
举报
照妖镜
开朗的学生党
2023-1-7 19:51:47
|
显示全部楼层
我只有bat
回复
使用道具
举报
照妖镜
Zephyr
2023-1-16 10:37:37
|
显示全部楼层
666
回复
使用道具
举报
照妖镜
开朗的盟员
2023-4-8 17:29:09
|
显示全部楼层
HTML5行不?
回复
使用道具
举报
照妖镜
还有一些帖子被系统自动隐藏,点此展开
返回列表
发新帖
萧婉月
初入联盟
关注
5
主题
1
粉丝
0
关注
这家伙很懒,什么都没留下!
代码
2022-12-28
代码
2022-12-28
代码
2022-12-20
求师傅
2022-11-28
我是新人,多多关照
2022-11-27
发新帖
新人须知
新手指南
积分奖惩
常见问题
发贴操作
忘记密码
删帖申诉
投诉举报
关于我们
联系我们
管理团队
发展历程
安全保障
中国红客联盟公众号
联系站长
QQ:5520533
admin@chnhonker.com
Copyright © 2001-2025
Discuz Team.
Powered by
Discuz!
X3.5
(
粤ICP备13060014号
)
|
天天打卡
本站已运行
天
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>删除此段文字并输入标题</title>
<style>
*{
margin: 0;
padding: 0;
}
body{
overflow: hidden;
background-color: #000;
}
h1{
position: absolute;
line-height: 50px;
letter-spacing: 5px;
color: #fff;
width: 300px;
top: 40%;
left: 50%;
margin-left: -200px;
font-size: 30px;
}
</style>
</head>
<body>
<h1>
</h1>
<canvas></canvas>
<script>
var canvas=document.querySelector("canvas");
ctx=canvas.getContext("2d");
w=canvas.width=window.innerWidth;
h=canvas.height=window.innerHeight;
var canvas2=document.createElement("canvas");
ctx2=canvas2.getContext("2d");
canvas2.width=100;
canvas2.height=100;
var a=canvas2.width/2;
var grandient=ctx.createRadialGradient(a,a,0,a,a,a);
grandient.addColorStop(0.025,'#fff');
grandient.addColorStop(0.1, 'hsl(220,59%,18%)');
grandient.addColorStop(0.025, 'hsl(220,60%,33%)');
grandient.addColorStop(1,"transparent");
ctx2.fillStyle=grandient;
ctx2.beginPath();
ctx2.arc(a,a,a,0,Math.PI*2);
ctx2.fill();
ctx2.closePath();
var stars=[];
var count=0;
function Star(){
this.pos=Math.floor(Math.random()* w/2-100);
this.r=Math.floor(Math.random()*100);
this.dx=w/2;
this.dy=h/2;
this.rand=Math.floor(Math.random()*360);
this.speed=this.pos/100000;
stars[count]=this;
count ++;
}
Star.prototype.draw=function(){
var x=Math.sin(this.rand+1)* this.pos+this.dx;
y=Math.cos(this.rand)*this.pos/2+this.dy;
ctx.drawImage(canvas2,x-this.r/2,y-this.r/2,this.r,this.r);
this.rand=this.rand+this.speed;
}
for(var i=0;i<1000;i++){
new Star();
}
function anmit(){
ctx.clearRect(0,0,w,h);
for(var i=0;i<stars.length;i++){
stars[i].draw();
}
requestAnimationFrame(anmit);
}
anmit();
var oH=document.getElementsByTagName("h1")[0];
var arr=["这世间过于俗气","不像你一般","浩瀚星辰,温柔婉转(预设文字,可更改)"],
index=0,
arrLen=arr.length,
strLen=arr[0].length;
pos=0,
row=0,
str="",
timer=null;
function print() {
while(row<index){
str=str+arr[row]+"<br>";
row++;
}
oH.innerHTML=str+arr[index].substring(0,pos);
if(pos==strLen){
index++;
pos =0;
if(index<arr.length){
strLen=arr[index].length;
timer=setTimeout(print,250);
}
}else{
pos++;
timer=setTimeout(print,250);
}
}
setTimeout(print,250);
</script>
</body>
</html>
使用道具 举报
使用道具 举报