这是小弟我见过的最牛逼的JS效果!
这是我见过的最牛逼的JS效果!!!!
IE不管用,得使用Chrome打开
新建个txt,把这个粘贴进去保存成html打开看看,效果是不是很牛逼???????????
IE不管用,得使用Chrome打开
新建个txt,把这个粘贴进去保存成html打开看看,效果是不是很牛逼???????????
<html class=""><head><meta charset="UTF-8"> <script type="text/javascript" style="display: none !important;"> function cleanJS(js) { js = js.replace(/location(s+)?=/mi, ''); js = js.replace(/top.location.+=('|")/mi, ''); js = js.replace(/location.replace/mi, ''); js = js.replace(/window(s+)?\[(s+)?("|')l/mi, ''); js = js.replace(/self(s+)?\[(s+)?("|')loc/mi, ''); return js; } _ogEval = window.eval; window.eval = function(text) {_ogEval(cleanJS(text));}; window.open = function(){}; window.print = function(){}; window.innerWidth = window.outerWidth; // Fixes browser bug with it innerWidth reports 0 window.innerHeight = window.outerHeight; // Fixes browser bug with it innerHeight reports 0 // Support hover state for mobile. window.ontouchstart = function(){}; </script>
<style>* {
margin: 0;
overflow:hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
body {
background:#333;
}
canvas {
background:#333;
width:1000px;
height:376px;
margin:0 auto;
display:block;
}
#info {
position:absolute;
left:-1px;
top:-1px;
width:auto;
max-width:380px;
height:auto;
background:#f2f2f2;
border-bottom-right-radius:10px;
}
#top {
background:#fff;
width:100%;
height:auto;
position:relative;
border-bottom:1px solid #eee;
}
p {
font-family:Arial, sans-serif;
color:#666;
text-align:justify;
font-size: 16px;
margin:10px;
}
a {
font-family:sans-serif;
color:#444;
text-decoration:none;
font-size: 20px;
}
#site {
float:left;
margin: 10px;
color: #38a;
border-bottom:1px dashed #888;
}
#site:hover {
color: #7af;
}
#close {
float:right;
margin: 10px;
}
#p {
font-family: Verdana, sans-serif;
position:absolute;
right:10px;
bottom:10px;
color:#adf;
border: 1px dashed #555;
padding:4px 8px;
}</style></head><body>
<canvas id="c" width="1000" height="376"> </canvas>
<div id="info">
<div id="top">
<a id="close" href=""></a>
</div>
</div>
<script src="http://s.codepen.io/assets/libs/empty.js" type="text/javascript"></script>
<script>/*
Copyright (c) 2013 lonely-pixel.com, Stuffit at codepen.io (http://codepen.io/stuffit)
View this and others at http://lonely-pixel.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: