网页屏幕上有只小虫在到处爬(代码)

有段时间看到几个站长的网页上突然出现了一只小虫子在屏幕上到处爬,即便你的高度很高,滚动条怎么下拉它都会出现在屏幕上的。感觉挺有意思的,然后就看源码给弄下来了,结果一看,尼玛太简单了方法,下面就是源码步骤,奇思妙想的同学也可以将gif图片替换成其他的图片即可。

网页屏幕上有只小虫在到处爬

测试源码,点击运行按钮即可,已经将图片进行base64转码,也可以直接保存图片替换base64即可

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
  <style type="text/css">
    .adorn{width: 100%;height: 207px;background: url(data:image/gif;base64,R0lGODlhoAB4APECAMzMzAAAAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCAACACw0AFIAGAAbAEACVZR/gMupKcBrVIaLMd1mcuZ9VHaJG0CWYnhKzcN+EqrMMTinN3ikF71DBFAkEyJ4MiaVL4jMdYwgj1BYByrKYFs2H9P3M7nAw+CEmJIGVl6lC83scAoAIfkECQkAAgAsMABIABYAGwAAAlSUf4DLrA3Xi3RGYBPVbqf8ZA2GhJ5gKeS5qqL0ka8TBvZMo/YdrNcOdPlGwBuruDsJkMaKgRlYRqJLpmE2gaKGEu31RbJuZMgTteyhPm1KnMd9KAAAIfkECQoAAgAsLwA/ABEAGQAAAk+UYamoAtxclPFN22DNmqswURrTkeTRCSAFYh4QrOulxk6awPHu5s/Ou5kcwBgEcSwGcAcl06CcZaLSHDQ6YkRVi8QW49r6FspDqHgMnRQFACH5BAkIAAIALC8ANAARABkAAAJPlGCZgHq+mpOKVsvgmjpe3UiMZYRmJwTICgRo1rqkoga2ih6xzbhcerN5dIYg73cw4jq726ykfICUqic1hQEaSxmsNgiRXF/bXNJp1i0VBQAh+QQJDAACACwxAC8AGAAYAAACT5SPKaDty540ccpqKcJ57f5RHKgpwGmh28mxZ7AEFeugQ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ddZPebfYasSbWWBbXC2jGZmS0AACH5BAUIAAIALDUAWwAbABkAAAJalC+Ay42gnHRx2lPvjVBL7k1Kh2VaFIwkA61IkACp11byHRq1HKR9/ugJeyZKyzAc8mQ6oy8p5LhY0GSRIqgqTzrtb4PxXi3aMTYBBcJ0kBQzNAW+5PSc2VAAADs=) no-repeat center;position: fixed;left: 0;top: 0;z-index: -99;}
  </style>
  <script type="text/javascript">
  </script>
 </head>

 <body>
    <!--BUG图片-->
    <div class="adorn"></div>
    <p style="height: 1000px"></p>
 </body>
</html>


未经允许请勿转载:程序喵 » 网页屏幕上有只小虫在到处爬(代码)

点  赞 (7) 打  赏
分享到: