惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
The Last Watchdog
The Last Watchdog
C
Cisco Blogs
L
LINUX DO - 热门话题
T
Tenable Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cyberwarzone
Cyberwarzone
O
OpenAI News
The Hacker News
The Hacker News
V
Vulnerabilities – Threatpost
A
Arctic Wolf
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
量子位
V2EX - 技术
V2EX - 技术
GbyAI
GbyAI
W
WeLiveSecurity
Recorded Future
Recorded Future
P
Proofpoint News Feed
Project Zero
Project Zero
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
S
Security Affairs
Stack Overflow Blog
Stack Overflow Blog
B
Blog
Y
Y Combinator Blog
月光博客
月光博客
K
Kaspersky official blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Latest news
Latest news
Forbes - Security
Forbes - Security
T
Troy Hunt's Blog
T
The Blog of Author Tim Ferriss
C
Check Point Blog
D
DataBreaches.Net
MyScale Blog
MyScale Blog
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
D
Docker
P
Privacy International News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
Cyber Attacks, Cyber Crime and Cyber Security
S
Securelist
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
SecWiki News
SecWiki News
腾讯CDC
博客园 - Franky

gorpeln的个人博客 - gorpeln

免费领取Synology C2的30G对象存储空间 | gorpeln 用HuggingFace搭建100G超大图床 | gorpeln 毫无破绽的自我批评 | gorpeln's Blog 时光本的故事 - 始于热爱,归于珍藏 | gorpeln's Blog 给博客图片添加水印 | gorpeln's Blog 博客CDN流量异常 | gorpeln's Blog 一路生花 | gorpeln's Blog 10 周年:时光为证,与你共赴新程 | gorpeln's Blog 时光本 - 数据导出 | gorpeln's Blog 时光本 - 下线公告 | gorpeln's Blog 整蛊代码:你屏幕上有根毛 | gorpeln's Blog 博客阅读进度条 | gorpeln's Blog 手机真的在监听你的谈话? | gorpeln's Blog 使用Serv00部署在线工具箱 | gorpeln's Blog 自定义博客文章卡片 | gorpeln's Blog 个人博客可以尝试的 100 件事 | gorpeln's Blog MathJax的基本使用 | gorpeln's Blog Mac应用发布错误:ITMS-91109 | gorpeln's Blog 彩带、樱花背景 | gorpeln's Blog 节日倒计时与时间进度条 | gorpeln's Blog
春节灯笼 | gorpeln's Blog
gorpeln · 2024-12-21 · via gorpeln的个人博客 - gorpeln

想为你的博客增添浓浓的春节氛围吗?快来了解我们的独特功能!设定时间后,两个喜庆的灯笼将准时在博客右上角亮起,灯笼上 “新春快乐” 的祝福熠熠生辉,瞬间让你的博客充满节日的欢乐与温馨。这不仅是装饰,更是为访客送上真挚祝福的创意方式,快来探索如何让你的博客在春节别具一格吧。

效果
20241221151857323 方法

<link rel="stylesheet" type="text/css" href="../assets/css/deng.css">

注意:将文件下载到自己博客使用
https://gorpeln.top/assets/css/deng.css

html代码

<!-- 春节灯笼 -->
<div style="display:none;" id="lanterns">
    <div class="deng-box">
        <div class="deng">
            <div class="xian"></div>
            <div class="deng-a">
                <div class="deng-b">
                    <div class="deng-t">快乐</div>
                </div>
            </div>
            <div class="shui shui-a">
                <div class="shui-c"></div>
                <div class="shui-b"></div>
            </div>
        </div>
    </div>
    <div class="deng-box1">
        <div class="deng">
            <div class="xian"></div>
            <div class="deng-a">
                <div class="deng-b">
                    <div class="deng-t">新春</div>
                </div>
            </div>
            <div class="shui shui-a">
                <div class="shui-c"></div>
                <div class="shui-b"></div>
            </div>
        </div>
    </div>
</div>
<!-- 春节灯笼 -->
<script>
document.addEventListener("DOMContentLoaded", function() {
    // 获取当前日期
    var currentDate = new Date();
    
    // 定义开始日期和结束日期
    var startDate = new Date('2025-01-22');//腊月廿三
    var endDate = new Date('2025-02-12');//正月十五

    // 获取 div 元素
    var specialDiv = document.getElementById('lanterns');

    // 检查当前日期是否在指定的日期范围内
    if (currentDate >= startDate && currentDate <= endDate) {
        // 如果在范围内,则显示 div
        specialDiv.style.display = 'block';
    } else {
        // 否则,隐藏 div
        specialDiv.style.display = 'none';
    }
});
</script>

最后编辑于:2026-01-21

如有任何知识产权、版权问题或理论错误,还请指正。转载请附上原文出处链接。