html表白程序源码 html生日快乐网站制作 HTML生日快乐代码 表白程序源码html 程序员表白代码html

article/2025/9/10 13:12:36

❤ 精彩专栏推荐👇🏻👇🏻👇🏻
💂 作者主页: 【进入主页—🚀获取更多源码】
🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】
🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (125套) 】
七夕来袭!是时候展现专属于程序员的浪漫了!你打算怎么给心爱的人表达爱意?鲜花礼物?代码表白?还是创意DIY?或者…无论那种形式,快来秀我们一脸吧!


📂文章目录

  • 二、📚网站介绍
  • 三、🔗网站效果
    • ▶️1.视频演示
    • 🧩 2.图片演示
  • 四、💒 网站代码
    • 🧱HTML结构代码
    • 🏠CSS样式代码
  • 五、🎁更多源码


二、📚网站介绍

📒网站文件方面:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,3D动态效果,雪花飘落等等
(3)📄 js文件包含:页面炫酷效果实现


三、🔗网站效果

▶️1.视频演示

104 贺卡制作蛋糕动画电子生日贺卡模板

🧩 2.图片演示

在这里插入图片描述


四、💒 网站代码

🧱HTML结构代码

<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>Dear Friend</title><link rel="stylesheet" href="css/style.css" media="screen" type="text/css" /><script src="js/shine-text.js"></script>
</head><body>
<div class="velas"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas-1"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas1"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas-2"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas2"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas-3"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><div class="velas3"><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div><div class="fuego"></div>
</div><canvas id="canvas" width=��200�� height=��200��></canvas><script>
window.requestAnimFrame = ( function() {return window.requestAnimationFrame ||window.webkitRequestAnimationFrame ||window.mozRequestAnimationFrame ||function( callback ) {window.setTimeout( callback, 1000 / 60 );};
})();
var canvas = document.getElementById( 'canvas' ),ctx = canvas.getContext( '2d' ),cw = window.innerWidth,ch = window.innerHeight,fireworks = [],particles = [],hue = 120,limiterTotal = 5,limiterTick = 0,timerTotal = 80,timerTick = 0,mousedown = false,mx,my;canvas.width = cw;
canvas.height = ch;  function random( min, max ) {return Math.random() * ( max - min ) + min;
}function calculateDistance( p1x, p1y, p2x, p2y ) {var xDistance = p1x - p2x,yDistance = p1y - p2y;return Math.sqrt( Math.pow( xDistance, 2 ) + Math.pow( yDistance, 2 ) );
}function Firework( sx, sy, tx, ty ) {this.x = sx;this.y = sy;this.sx = sx;this.sy = sy;this.tx = tx;this.ty = ty;this.distanceToTarget = calculateDistance( sx, sy, tx, ty );this.distanceTraveled = 0;this.coordinates = [];this.coordinateCount = 3;while( this.coordinateCount-- ) {this.coordinates.push( [ this.x, this.y ] );}this.angle = Math.atan2( ty - sy, tx - sx );this.speed = 2;this.acceleration = 1.05;this.brightness = random( 50, 70 );this.targetRadius = 1;
}Firework.prototype.update = function( index ) {this.coordinates.pop();this.coordinates.unshift( [ this.x, this.y ] );if( this.targetRadius < 8 ) {this.targetRadius += 0.3;} else {this.targetRadius = 1;}this.speed *= this.acceleration;var vx = Math.cos( this.angle ) * this.speed,vy = Math.sin( this.angle ) * this.speed;this.distanceTraveled = calculateDistance( this.sx, this.sy, this.x + vx, this.y + vy );if( this.distanceTraveled >= this.distanceToTarget ) {createParticles( this.tx, this.ty );fireworks.splice( index, 1 );} else {this.x += vx;this.y += vy;}
}Firework.prototype.draw = function() {ctx.beginPath();ctx.moveTo( this.coordinates[ this.coordinates.length - 1][ 0 ], this.coordinates[ this.coordinates.length - 1][ 1 ] );ctx.lineTo( this.x, this.y );ctx.strokeStyle = 'hsl(' + hue + ', 100%, ' + this.brightness + '%)';ctx.stroke();ctx.beginPath();ctx.arc( this.tx, this.ty, this.targetRadius, 0, Math.PI * 2 );ctx.stroke();
}function Particle( x, y ) {this.x = x;this.y = y;this.coordinates = [];this.coordinateCount = 5;while( this.coordinateCount-- ) {this.coordinates.push( [ this.x, this.y ] );}this.angle = random( 0, Math.PI * 2 );this.speed = random( 1, 10 );this.friction = 0.95;this.gravity = 1;this.hue = random( hue - 20, hue + 20 );this.brightness = random( 50, 80 );this.alpha = 1;this.decay = random( 0.015, 0.03 );
}Particle.prototype.update = function( index ) {this.coordinates.pop();this.coordinates.unshift( [ this.x, this.y ] );this.speed *= this.friction;this.x += Math.cos( this.angle ) * this.speed;this.y += Math.sin( this.angle ) * this.speed + this.gravity;this.alpha -= this.decay;if( this.alpha <= this.decay ) {particles.splice( index, 1 );}
}Particle.prototype.draw = function() {ctx. beginPath();ctx.moveTo( this.coordinates[ this.coordinates.length - 1 ][ 0 ], this.coordinates[ this.coordinates.length - 1 ][ 1 ] );ctx.lineTo( this.x, this.y );ctx.strokeStyle = 'hsla(' + this.hue + ', 100%, ' + this.brightness + '%, ' + this.alpha + ')';ctx.stroke();
}function createParticles( x, y ) {var particleCount = 30;while( particleCount-- ) {particles.push( new Particle( x, y ) );}
}function loop() {requestAnimFrame( loop );hue += 0.5;ctx.globalCompositeOperation = 'destination-out';ctx.fillStyle = 'rgba(0, 0, 0, 0.5)';ctx.fillRect( 0, 0, cw, ch );ctx.globalCompositeOperation = 'lighter';var i = fireworks.length;while( i-- ) {fireworks[ i ].draw();fireworks[ i ].update( i );}var i = particles.length;while( i-- ) {particles[ i ].draw();particles[ i ].update( i );}if( timerTick >= timerTotal ) {if( !mousedown ) {fireworks.push( new Firework( cw / 2, ch, random( 0, cw ), random( 0, ch / 2 ) ) );timerTick = 0;}} else {timerTick++;}if( limiterTick >= limiterTotal ) {if( mousedown ) {fireworks.push( new Firework( cw / 2, ch, mx, my ) );limiterTick = 0;}} else {limiterTick++;}
}canvas.addEventListener( 'mousemove', function( e ) {mx = e.pageX - canvas.offsetLeft;my = e.pageY - canvas.offsetTop;
});canvas.addEventListener( 'mousedown', function( e ) {e.preventDefault();mousedown = true;
});canvas.addEventListener( 'mouseup', function( e ) {e.preventDefault();mousedown = false;
});window.onload = loop;
</script><audio autoplay="autoplay" loop="loop" preload="auto" src="http://www.17sucai.com/preview/3630/2013-06-27/ruguomeiyouni.mp3" type="audio/wav"></audio></body>
</html>

🏠CSS样式代码

.velas-1:after,
.velas-1:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas-1:after {top: 25%;left: 0;
}.velas-1:before {top: 45%;left: 0;
}.velas1:after,
.velas1:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas1:after {top: 25%;left: 0;
}.velas1:before {top: 45%;left: 0;
}.velas-2:after,
.velas-2:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas-2:after {top: 25%;left: 0;
}.velas-2:before {top: 45%;left: 0;
}.velas2:after,
.velas2:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas2:after {top: 25%;left: 0;
}.velas2:before {top: 45%;left: 0;
}.velas-3:after,
.velas-3:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas-3:after {top: 25%;left: 0;
}.velas-3:before {top: 45%;left: 0;
}.velas3:after,
.velas3:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas3:after {top: 25%;left: 0;
}.velas3:before {top: 45%;left: 0;
}.velas-4:after,
.velas-4:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas-4:after {top: 25%;left: 0;
}.velas-4:before {top: 45%;left: 0;
}.velas4:after,
.velas4:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas4:after {top: 25%;left: 0;
}.velas4:before {top: 45%;left: 0;
}.velas-5:after,
.velas-5:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas-5:after {top: 25%;left: 0;
}.velas-5:before {top: 45%;left: 0;
}.velas5:after,
.velas5:before {background: rgba(255, 0, 0, 0.4);content: "";position: absolute;width: 100%;height: 2.22222222px;
}.velas5:after {top: 25%;left: 0;
}.velas5:before {top: 45%;left: 0;
}.fuego {border-radius: 100%;position: absolute;top: -20px;left: 50%;margin-left: -2.2px;width: 6.66666667px;height: 18px;
}.fuego:nth-child(1) {-webkit-animation: fuego 2s 6.5s infinite;animation: fuego 2s 6.5s infinite;
}.fuego:nth-child(2) {-webkit-animation: fuego 1.5s 6.5s infinite;animation: fuego 1.5s 6.5s infinite;
}.fuego:nth-child(3) {-webkit-animation: fuego 1s 6.5s infinite;animation: fuego 1s 6.5s infinite;
}.fuego:nth-child(4) {-webkit-animation: fuego 0.5s 6.5s infinite;animation: fuego 0.5s 6.5s infinite;
}.fuego:nth-child(5) {-webkit-animation: fuego 0.2s 6.5s infinite;animation: fuego 0.2s 6.5s infinite;
}@-webkit-keyframes fuego {0%, 100% {background: rgba(254, 248, 97, 0.5);-webkit-box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);-webkit-transform: translateY(0) scale(1);transform: translateY(0) scale(1);}50% {background: rgba(255, 50, 0, 0.1);-webkit-box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);-webkit-transform: translateY(-20px) scale(0);transform: translateY(-20px) scale(0);}
}@keyframes fuego {0%, 100% {background: rgba(254, 248, 97, 0.5);-webkit-box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);-webkit-transform: translateY(0) scale(1);transform: translateY(0) scale(1);}50% {background: rgba(255, 50, 0, 0.1);-webkit-box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);-webkit-transform: translateY(-20px) scale(0);transform: translateY(-20px) scale(0);}
}@-webkit-keyframes in {to {-webkit-transform: translateY(0);transform: translateY(0);}
}@keyframes in {to {-webkit-transform: translateY(0);transform: translateY(0);}
}

五、🎁更多源码

1.如果我的博客对你有帮助 请 “👍点赞” “✍️评论” “💙收藏” 一键三连哦!

2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻


http://chatgpt.dhexx.cn/article/HrQxcP0y.shtml

相关文章

❤送女朋友生日快乐祝福网页制作❤(HTML+CSS+JS)

❤女朋友生日快乐祝福网页制作❤&#xff08;HTMLCSSJS&#xff09; 程序员情人节表白网页, 生日祝福网页制作 ❤520/表白/七夕情人节/求婚❤专用html5css3js 生日快乐网站模板 HTML生日快乐祝福网页模板&#xff0c;该模板有多种动态效果图&#xff0c;全局采用蓝色装饰&#…

用HTML语言制作一个非常浪漫的生日祝福网,手把手教你制作炫酷生日祝福网页

一、&#x1f4da;网页介绍 明天就是女朋友的生日了, 是时候展现专属于程序员的浪漫了&#xff01;你打算怎么给心爱的人表达爱意&#xff1f;鲜花礼物&#xff1f;代码表白&#xff1f;还是创意DIY&#xff1f;或者…无论那种形式&#xff0c;快来秀我们一脸吧&#xff01; …

dw生日祝福网页制作教程_怎样制作生日祝福网页

有朋友看到生日祝福网页很漂亮&#xff0c;想给自己的朋友做一个&#xff0c;但又不会动画制作技术。这里提供给你一个模板&#xff0c;让不会专业软件的朋友享受一下自己制作的快乐。(这里只提供没有动画基础的朋友自娱自乐&#xff0c;高手请绕行) 1、登陆自己的博客(本文以新…

最新520表白网站制作HTML前端超好看 (HTML生日快乐代码)

❤ 精彩专栏推荐&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb; &#x1f482; 作者主页: 【进入主页—&#x1f680;获取更多源码】 &#x1f393; web前端期末大作业&#xff1a; 【&#x1f4da;HTML5网页期末作业 (1000套) 】 &#x1…

生日快乐网页

最近无意中逛自己的网盘&#xff0c;发现有个几年前为了给男朋友庆生搞的一套生日快乐网页&#xff0c;决定分享出来&#xff0c;大家有需要可以在文末自取源码。 源码不是我写的&#xff0c;那会我还没怎么接触过html、css以及js&#xff0c;也是在网上找的代码&#xff0c;自…

不会写代码也可以, 手把手教你制作炫酷生日祝福网页(程序员专属情人节表白网站)

❤ 精彩专栏推荐&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb; &#x1f482; 作者主页: 【进入主页—&#x1f680;获取更多源码】 &#x1f393; web前端期末大作业&#xff1a; 【&#x1f4da;HTML5网页期末作业 (1000套) 】 &#x1…

超炫酷生日快乐网页源代码_最炫表白网站源码_html生日快乐网站制作

❤ 精彩专栏推荐&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb; &#x1f482; 作者主页: 【进入主页—&#x1f680;获取更多源码】 &#x1f393; web前端期末大作业&#xff1a; 【&#x1f4da;HTML5网页期末作业 (1000套) 】 &#x1…

制作一个创意的生日快乐网页祝福网站送给心爱的她(HTML+CSS+JS)

❤ 精彩专栏推荐&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb; &#x1f482; 作者主页: 【进入主页—&#x1f680;获取更多源码】 &#x1f393; web前端期末大作业&#xff1a; 【&#x1f4da;HTML5网页期末作业 (1000套) 】 &#x1…

生日快乐网站模板

生日网站模板 哈&#xff0c;这不是女朋友过生日嘛&#xff0c;然后我就花了几天时间弄了一个一个网站作为生日祝福。也花了挺多的时间去复习了抛弃了有一段时间的HTML和CSS&#xff0c;又去学习了CSS。最后做出来的效果自己还是挺满意的&#xff0c;因此在这里放出来&#xf…

生日快乐网站模板(HTML5+JS+CSS) 带音效

分享一个生日祝福网站源码&#xff0c;可以给她做了个网站作为生日祝福。主要是HTML、CSS、JS&#xff0c;修改了很多地方&#xff0c;现在作为模板放在这&#xff0c;希望能够对大家有所帮助。 源码链接&#xff1a;https://pan.baidu.com/s/1KOcCPmbsHpQcksJPqiAuZg 提取码…

生日快乐网站模板(个人制作)(HTML5+CSS3+JS)

哈&#xff0c;前一阵子一个比较要好的朋友过生日&#xff0c;就给她做了一个网站作为生日祝福。也花了挺多的时间去复习了抛弃了有一段时间的HTML和CSS&#xff0c;又去学习了CSS3。最后做出来的效果自己还是挺满意的&#xff0c;因此在这里放出来&#xff0c;也希望能帮助到大…

对绝对地址的操作

&#xfeff;&#xfeff; 嵌入式系統中往往需要讓程序跳到內存的某個地址去執行&#xff0c;比如想讓程序跳轉到絕對地址是0x100000去執行&#xff0c;應該怎麼做&#xff1f; 這樣&#xff1a; * (( void ( * )( void )) 0x100000 )(); 即可。 解釋一下&#xff0c;想讓程序…

相对地址和绝对地址的理解

相对地址和绝对地址 个人对地址的理解 第一## 标题 第二&#xff0c;全部的地址

手机中geetest是什么文件_手机中的英文文件夹都表示什么意思?哪些是可以删除的?...

现在我们使用手机会积攒下大量的垃圾文件&#xff0c;所占的内存就会越来越多&#xff0c;长此以久手机就会开始卡顿。但当我们打开手机内存想要清理一下的时候又会发现文件夹全是英文名&#xff0c;一个也看不懂&#xff0c;生怕删错了重要文件搞坏手机。其实因为我们手机使用…

软件ETest

ETest简介 ETest是一款软件开发环境IDE&#xff0c;基于该IDE可以完成嵌入式系统测试软件的开发与部署。该产品是由凯云科技率先在行业内推出的国产自主可控半实物仿真测试开发平台&#xff0c;有效打破了国内该领域长期由进口软件LabView、DSpace等产品垄断的格局。ETest可广…

Geetest极验验证码的使用

后端部署 1.首先从Github: gt3-python-sdk下载.zip文件 &#xff0c;用于后台搭建 gt3-java-sdk-master\src\sdk\GeetestLib.java 这个文件相当java中的实体类 gt3-java-sdk-master\src\demo\demo1\GeetestConfig.java &#xff0c;是geetest的配置文件&#xff0c;用来放我们在…

GEE scale

以下从gee 官网翻译 gee中scale 表示像素分辨率&#xff0c;与其他GIS和图像处理平台不同&#xff0c;分析的规模由输出决定&#xff0c;而不是由输入决定。比如&#xff0c;当你从服务器请求返回一个图像或者统计结果时&#xff0c;您可以指定输入数据的scale到分析过…

gtest 单元测试工具的基本使用

gtest 单元测试 gtest 简介gtest 优点安装 gtest测试 demo总结 gtest 简介 gtest是Google的一套用于编写C测试的框架&#xff0c;可以运行在很多平台上&#xff08;包括Linux、Mac OS X、Windows、Cygwin等等&#xff09;。基于xUnit架构。支持很多好用的特性&#xff0c;包括…

Python Selenium破解滑块验证码最新版(GEETEST 95%以上通过率)

一、滑块验证码简述 有爬虫&#xff0c;自然就有反爬虫&#xff0c;就像病毒和杀毒软件一样&#xff0c;有攻就有防&#xff0c;两者彼此推进发展。而目前最流行的反爬技术验证码&#xff0c;为了防止爬虫自动注册&#xff0c;批量生成垃圾账号&#xff0c;几乎所有网站的注册页…

Python Selenium 破解极验(GeeTest)滑动验证

A r m o u r G e e T e s t ArmourGeeTest ArmourGeeTest [TOS] 本项目仅供交流学习&#xff0c;有疑问请在issue中提出&#xff1b;本项目不提供面向任何商业需求的版本迭代&#xff1b;关于本项目源码的使用请遵循Apache-2.0 License&#xff1b;禁止任何人使用本项目及其分支…