给自己鼠标改个样式,再加一个炫酷的拖尾 #HTML鼠标皮肤拖尾

 在自己的网页上面,有时候觉得太单调,想给自己的鼠标加点皮肤

下面的代码拿过来就直接可以用的,因为都是站点里面的图片,不用自己去找图片也能先玩玩看

想要自己修改样式的话,只用改里面几个url后面的图片地址就好了,十分的简单方便

线上demo:

鼠标特效icon-default.png?t=N2N8http://longsong.games/time/wife/

<!doctype html>
<html style="cursor:url(http://www.longsong.xyz/Count_Visitor/images/cruise.ico),auto;">
<style>
  div{
    width: 20px;
    height: 20px;
    background-image:url(http://longsong.games/time/Count_Visitor/images/cruise.ico);
    position: absolute;
    border-radius: 50%;
  }
</style>
 
<head>
  <meta charset="utf-8">
  <title>鼠标特效</title>
</head>
 
<body style="height: 100%;width: 100%;position=relative">
<video src="http://www.longsong.online/wp-content/uploads/2022/03/mulai.mp4" style="width: 100%;height: 100%;object-fit: cover;position: absolute;top: 0;left: 0;" autoplay="autoplay" loop="loop" muted="muted"></video>
<div id="warp" onmouseover="over()" onmouseout="out()">
  <div id="text" style="display: none;">这里面有一段文字</div>
</div>
</body>
 
<script>
  document.onmousemove = function () {
    var div = document.createElement('div');
    var x = event.clientX;
    var y = event.clientY;
    var o = 10; //这里可以自行调节
    div.style.left = x + "px";
    div.style
    div.style.top = y + "px";
    document.body.appendChild(div);
 
    for(var i = 0;i<o;i++){
      setTimeout(function(){
        document.body.removeChild(div); 
      },100)
    }
 
 
 
 
 
  }
</script>
 
</html>

想要给自己的网页加个动态背景:

如何把MP4视频作为html网页的背景?_long_songs的博客-CSDN博客大家可以先欣赏欣赏我妻红莉栖放在首页的样子:http://www.longsong.xyz/http://www.longsong.xyz/<!doctype html><html><head></head><body style="height: 100%;width: 100%;position=relative"><video src="http://www.longsong.online/w...https://blog.csdn.net/long_songs/article/details/123300771

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值