打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
【分享】圣诞树自定义链接版

圣诞树自定义链接版

把下方链接中的【MYX】改成他/她的名字即可

https://lovebonnie.vip/Christmastree/Christmastree8/?name=MYX

原理:

<script type="text/javascript">        function GetQueryString(name) {            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");            var r = window.location.search.substr(1).match(reg);            if (r != null) {                return decodeURI(r[2]);            }            return null;        }
let name = document.getElementById('name'); const urlName = GetQueryString("name"); name.innerHTML = urlName == null ? '' : urlName;
document.addEventListener('DOMContentLoaded', function () {
Typed.new("#typed", { stringsElement: document.getElementById('typed-strings'), typeSpeed: 110, backDelay: 1000, loop: false, contentType: 'html', // or text // defaults to null for infinite loop loopCount: null, callback: function () { foo(); }, resetCallback: function () { newTyped(); } });
var resetElement = document.querySelector('.reset'); if (resetElement) { resetElement.addEventListener('click', function () { document.getElementById('typed')._typed.reset();
}); }
});
function newTyped() { }
function foo() { console.log("Callback"); }</script>

恭喜你发现了一个宝藏!

木易巷网站:

https://lovebonnie.vip/

百宝箱在线链接:

https://lovebonnie.vip/love/
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
验证码模型 For CodeIgniter
Js脚本:动态添加HTML自定义属性以及处理html元素的自定义属性(兼容Firefox和IE)
java,javascript 内连取数据
ActiveXObject 支持ie和ff(火狐,firefox)的方法 createXmlHttp
javascript Select标记中options操作方法集合
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服