福州现在哪里有比较好玩的js脚本代码,js比较漂亮的,老哥们分享几个呗

福州哪里推拿有擦边,就是帮你起飞 也负责降落。价格合理。JS漂亮_百度知道
福州哪里推拿有擦边,就是帮你起飞 也负责降落。价格合理。JS漂亮
不要路边野店。有点规模。
&对了还有那个爱丁堡 在六一环岛 沃尔玛那里 & js的话 都有漂亮的 &也有不漂亮的 可以换 &nbsp塔头路 桂花香钻推拿 就在塔头车站 桂香街路口那边 最贵的好像是198 好像 你最好带上300 好像涨价了 里面17号不错通湖路 ABC阿比西 & &就在西湖大门正对门 普拉达那条路走进去】西洪路靠近二环路上面 君悦 足按 里面16号不错我去过的就这三家了, &其他的比如 魔指仙境据说也有 五一中路那边有几家店好像也有, 还有就是 国货东路 长乐路口那边有一家什么名字忘了
采纳率:70%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。分享几种超漂亮的JS焰火 - JavaScript当前位置:& &&&分享几种超漂亮的JS焰火分享几种超漂亮的JS焰火www.MyException.Cn&&网友分享于:&&浏览:3次分享几种超漂亮的JS烟花
今天看到蓝色理想有几个哥们都发了自己写的烟花效果,弄的心里痒痒,自己也想写一个出来玩,结果把IE写死好几次,还是放弃了,这里转几个别人写的效果上来分享!
转自:http://www.ok22.org/art_detail.aspx?id=176(可直接运行)
Html代码运行
type="text/javascript"
var fireworks = function(){
this.size = 20;
this.rise();
fireworks.prototype = {
color:function(){
var c = ['0','3','6','9','c','f'];
var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
t.sort(function(){return Math.random()0.5?-1:1;});
return '#'+t.join('');
aheight:function(){
var h = document.documentElement.clientHeight-250;
return Math.abs(Math.floor(Math.random()*h-200))+201;
firecracker:function(){
var b = document.createElement('div');
var w = document.documentElement.clientW
b.style.position = 'absolute';
b.style.color = this.color();
b.style.bottom = 0;
b.style.left = Math.floor(Math.random()*w)+1+'px';
document.body.appendChild(b);
rise:function(){
var o = this.firecracker();
var n = this.aheight();
var c = this.
var e = this.
var s = this.
var k = n;
var m = function(){
o.style.bottom = parseFloat(o.style.bottom)+k*0.1+'px';
kk-=k*0.1;
clearInterval(clear);
e(o,n,s,c);
o.innerHTML = '.';
if(parseInt(o.style.bottom)){
var clear = setInterval(m,20);
expl:function(o,n,s,c){
var R=n/3,Ri=n/6,Rii=n/9;
var r=0,ri=0,rii=0;
for(var i=0;i;i++){
var span = document.createElement('span');
var p = document.createElement('i');
var a = document.createElement('a');
span.style.position = 'absolute';
span.style.fontSize = n/10+'px';
span.style.left = 0;
span.style.top = 0;
span.innerHTML = '*';
p.style.position = 'absolute';
p.style.left = 0;
p.style.top = 0;
p.innerHTML = '*';
a.style.position = 'absolute';
a.style.left = 0;
a.style.top = 0;
a.innerHTML = '*';
o.appendChild(span);
o.appendChild(p);
o.appendChild(a);
function spr(){
r += R*0.1;
ri+= Ri*0.06;
rii+= Rii*0.06;
sp = o.getElementsByTagName('span');
p = o.getElementsByTagName('i');
a = o.getElementsByTagName('a');
for(var i=0; i;i++){
sp[i].style.color = c();
p[i].style.color = c();
a[i].style.color = c();
sp[i].style.left=r*Math.cos(360/s*i)+'px';
sp[i].style.top=r*Math.sin(360/s*i)+'px';
sp[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
p[i].style.left=ri*Math.cos(360/s*i)+'px';
p[i].style.top=ri*Math.sin(360/s*i)+'px';
p[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
a[i].style.left=rii*Math.cos(360/s*i)+'px';
a[i].style.top=rii*Math.sin(360/s*i)+'px';
a[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
RR-=R*0.1;
o.innerHTML = '';
o.parentNode.removeChild(o);
clearInterval(clearI);
var clearI = setInterval(spr,20);
window.onload = function(){
function happyNewYear(){
new fireworks();
setInterval(happyNewYear,1000);
type="text/css"
style="background:#000;font:12px Georgia, 'Times New Roman', Times, serif"
&script type="text/javascript"&
var fireworks = function(){
this.size = 20;
this.rise();
fireworks.prototype = {
color:function(){
var c = ['0','3','6','9','c','f'];
var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
t.sort(function(){return Math.random()&0.5?-1:1;});
return '#'+t.join('');
aheight:function(){
var h = document.documentElement.clientHeight-250;
return Math.abs(Math.floor(Math.random()*h-200))+201;
firecracker:function(){
var b = document.createElement('div');
var w = document.documentElement.clientW
b.style.position = 'absolute';
b.style.color = this.color();
b.style.bottom = 0;
b.style.left = Math.floor(Math.random()*w)+1+'px';
document.body.appendChild(b);
rise:function(){
var o = this.firecracker();
var n = this.aheight();
var c = this.
var e = this.
var s = this.
var m = function(){
o.style.bottom = parseFloat(o.style.bottom)+k*0.1+'px';
clearInterval(clear);
e(o,n,s,c);
o.innerHTML = '.';
if(parseInt(o.style.bottom)&n){
var clear = setInterval(m,20);
expl:function(o,n,s,c){
var R=n/3,Ri=n/6,Rii=n/9;
var r=0,ri=0,rii=0;
for(var i=0;i&s;i++){
var span = document.createElement('span');
var p = document.createElement('i');
var a = document.createElement('a');
span.style.position = 'absolute';
span.style.fontSize = n/10+'px';
span.style.left = 0;
span.style.top = 0;
span.innerHTML = '*';
p.style.position = 'absolute';
p.style.left = 0;
p.style.top = 0;
p.innerHTML = '*';
a.style.position = 'absolute';
a.style.left = 0;
a.style.top = 0;
a.innerHTML = '*';
o.appendChild(span);
o.appendChild(p);
o.appendChild(a);
function spr(){
r += R*0.1;
ri+= Ri*0.06;
rii+= Rii*0.06;
sp = o.getElementsByTagName('span');
p = o.getElementsByTagName('i');
a = o.getElementsByTagName('a');
for(var i=0; i&sp.i++){
sp[i].style.color = c();
p[i].style.color = c();
a[i].style.color = c();
sp[i].style.left=r*Math.cos(360/s*i)+'px';
sp[i].style.top=r*Math.sin(360/s*i)+'px';
sp[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
p[i].style.left=ri*Math.cos(360/s*i)+'px';
p[i].style.top=ri*Math.sin(360/s*i)+'px';
p[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
a[i].style.left=rii*Math.cos(360/s*i)+'px';
a[i].style.top=rii*Math.sin(360/s*i)+'px';
a[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
o.innerHTML = '';
o.parentNode.removeChild(o);
clearInterval(clearI);
var clearI = setInterval(spr,20);
window.onload = function(){
function happyNewYear(){
new fireworks();
setInterval(happyNewYear,1000);
&style type="text/css"&
&body style="background:#000;font:12px Georgia, 'Times New Roman', Times, serif"&
Html代码运行
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
xmlns=" href="http://www.w3.org/1999/xhtml"http://www.w3.org/1999/xhtml"
http-equiv="Content-Type" content="text/ charset=utf-8"
firework - Zehee
type="text/javascript"
var firework = function(){
this.size = 40;
this.speed = 0.1;
this.rise();
firework.prototype = {
color:function(){
var c = ['0','3','6','9','c','f'];
var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
t.sort(function(){return Math.random()0.5?-1:1;});
return '#'+t.join('');
aheight:function(){
var h = document.documentElement.clientH
return Math.abs(Math.floor(Math.random()*h-200))+201;
firecracker:function(){
var b = document.createElement('div');
var w = document.body.clientW
b.style.color = this.color();
b.style.position = 'absolute';
b.style.bottom = 0;
b.style.left = Math.floor(Math.random()*w)+1+'px';
document.body.appendChild(b);
rise:function(){
var o = this.firecracker();
var n = this.aheight();
var speed = this.
var e = this.
var s = this.
var k = n;
var m = function(){
o.style.bottom = parseFloat(o.style.bottom)+k*speed+'px';
clearInterval(clear);
e(o,n,s,speed);
o.innerHTML = '*';
if(parseInt(o.style.bottom)){
var clear = setInterval(m,20);
expl:function(o,n,s,speed){
var R = n/3;
var Ri = n/6;
var r = 0;
var ri = 0;
for(var i=0;i;i++){
var span = document.createElement('span');
var p = document.createElement('p');
span.style.position = 'absolute';
span.style.left = 0;
span.style.top = 0;
span.innerHTML = '*';
p.style.position = 'absolute';
p.style.left = 0;
p.style.top = 0;
p.innerHTML = '+';
o.appendChild(span);
o.appendChild(p);
function spr(){
ri+= Ri*speed/2;
sp = o.getElementsByTagName('span');
p = o.getElementsByTagName('p');
for(var i=0; i;i++){
sp[i].style.left=r*Math.cos(360/s*i)+'px';
sp[i].style.top=r*Math.sin(360/s*i)+'px';
p[i].style.left=ri*Math.cos(360/s*i)+'px';
p[i].style.top=ri*Math.sin(360/s*i)+'px';
clearInterval(clearI);
o.parentNode.removeChild(o);
var clearI = setInterval(spr,20);
window.onload = function(){
function happyNewYear(){
new firework();
setInterval(happyNewYear,400);
type="text/css"
style="background:#000;font:12px Arial"
&!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"&
&meta http-equiv="Content-Type" content="text/ charset=utf-8" /&
&title&firework - Zehee&/title&
&script type="text/javascript"&
var firework = function(){
this.size = 40;
this.speed = 0.1;
this.rise();
firework.prototype = {
color:function(){
var c = ['0','3','6','9','c','f'];
var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
t.sort(function(){return Math.random()&0.5?-1:1;});
return '#'+t.join('');
aheight:function(){
var h = document.documentElement.clientH
return Math.abs(Math.floor(Math.random()*h-200))+201;
firecracker:function(){
var b = document.createElement('div');
var w = document.body.clientW
b.style.color = this.color();
b.style.position = 'absolute';
b.style.bottom = 0;
b.style.left = Math.floor(Math.random()*w)+1+'px';
document.body.appendChild(b);
rise:function(){
var o = this.firecracker();
var n = this.aheight();
var speed = this.
var e = this.
var s = this.
var m = function(){
o.style.bottom = parseFloat(o.style.bottom)+k*speed+'px';
clearInterval(clear);
e(o,n,s,speed);
o.innerHTML = '*';
if(parseInt(o.style.bottom)&n){
var clear = setInterval(m,20);
expl:function(o,n,s,speed){
var R = n/3;
var Ri = n/6;
var r = 0;
var ri = 0;
for(var i=0;i&s;i++){
var span = document.createElement('span');
var p = document.createElement('p');
span.style.position = 'absolute';
span.style.left = 0;
span.style.top = 0;
span.innerHTML = '*';
p.style.position = 'absolute';
p.style.left = 0;
p.style.top = 0;
p.innerHTML = '+';
o.appendChild(span);
o.appendChild(p);
function spr(){
ri+= Ri*speed/2;
sp = o.getElementsByTagName('span');
p = o.getElementsByTagName('p');
for(var i=0; i&sp.i++){
sp[i].style.left=r*Math.cos(360/s*i)+'px';
sp[i].style.top=r*Math.sin(360/s*i)+'px';
p[i].style.left=ri*Math.cos(360/s*i)+'px';
p[i].style.top=ri*Math.sin(360/s*i)+'px';
clearInterval(clearI);
o.parentNode.removeChild(o);
var clearI = setInterval(spr,20);
window.onload = function(){
function happyNewYear(){
new firework();
setInterval(happyNewYear,400);
&style type="text/css"&
&body style="background:#000;font:12px Arial"&
Html代码运行
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
xmlns="http://www.w3.org/1999/xhtml"
Untitled Page
type="text/css"
.fire{display: overflow: font-size:12 position:absolute};
body{overflow: background:#000}
html{overflow: background:#000}
type="text/javascript"
var Fire = function(r, color) {
this.radius = r || 12;
this.color = color || "FF6600";
this.xpos = 0;
this.ypos = 0;
this.zpos = 0;
this.vx = 0;
this.vy = 0;
this.vz = 0;
this.mass = 1;
this.p = document.createElement("span");
this.p.className = "fire";
this.p.innerHTML = "*";
thisthis.p.style.fontSize = this.radius + "px";
this.p.style.color = "#" + this.
Fire.prototype = {
append: function(parent) {
parent.appendChild(this.p);
setSize: function(scale) {
thisthis.p.style.fontSize = this.radius * scale + "px";
setPosition:function(x, y) {
this.p.style.left = x + "px";
this.p.style.top =
setVisible: function(b) {
this.p.style.display = b ? "block" : "none";
var fireworks = function() {
var fires = new Array();
var count = 100;
var fl = 250;
var vpx = 500;
var vpy = 300;
var gravity = .3;
var floor = 200;
var bounce = -.8;
init: function() {
for (var i=0; i; i++) {
var color = 0xFF0000;
color = (Math.random() * 0xFFFFFF).toString(16).toString().split(".")[0];
while(color.length
color = "0" +
var fire = new Fire(12, color);
fires.push(fire);
fire.ypos = -100;
fire.vx = Math.random() * 6 - 3;
fire.vy = Math.random() * 6 - 3;
fire.vz = Math.random() * 6 - 3;
fire.append(document.body);
var that = this;
timer = setInterval(function() {
for (var i=0;i; i++) {
that.move(fires[i]);
move: function(fire) {
fire.vy +=
fire.xpos += fire.
fire.ypos += fire.
fire.zpos += fire.
if (fire.ypos
fire.ypos = floor;
fire.vy *=
if (fire.zpos
var scale = fl/ (fl+fire.zpos);
fire.setSize(scale);
fire.setPosition(vpx + fire.xpos * scale,
vpy + fire.ypos * scale);
fire.setVisible(true);
fire.setVisible(false);
fireworks().init();
&!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" &
&title&Untitled Page&/title&
&style type="text/css"&
.fire{display: overflow: font-size:12 position:absolute};
body{overflow: background:#000}
html{overflow: background:#000}
&script type="text/javascript"&
var Fire = function(r, color) {
this.radius = r || 12;
this.color = color || "FF6600";
this.xpos = 0;
this.ypos = 0;
this.zpos = 0;
this.vx = 0;
this.vy = 0;
this.vz = 0;
this.mass = 1;
this.p = document.createElement("span");
this.p.className = "fire";
this.p.innerHTML = "*";
this.p.style.fontSize = this.radius + "px";
this.p.style.color = "#" + this.
Fire.prototype = {
append: function(parent) {
parent.appendChild(this.p);
setSize: function(scale) {
this.p.style.fontSize = this.radius * scale + "px";
setPosition:function(x, y) {
this.p.style.left = x + "px";
this.p.style.top =
setVisible: function(b) {
this.p.style.display = b ? "block" : "none";
var fireworks = function() {
var fires = new Array();
var count = 100;
var fl = 250;
var vpx = 500;
var vpy = 300;
var gravity = .3;
var floor = 200;
var bounce = -.8;
init: function() {
for (var i=0; i& i++) {
var color = 0xFF0000;
color = (Math.random() * 0xFFFFFF).toString(16).toString().split(".")[0];
while(color.length & 6) {
color = "0" +
var fire = new Fire(12, color);
fires.push(fire);
fire.ypos = -100;
fire.vx = Math.random() * 6 - 3;
fire.vy = Math.random() * 6 - 3;
fire.vz = Math.random() * 6 - 3;
fire.append(document.body);
var that =
timer = setInterval(function() {
for (var i=0;i& i++) {
that.move(fires[i]);
move: function(fire) {
fire.vy +=
fire.xpos += fire.
fire.ypos += fire.
fire.zpos += fire.
if (fire.ypos & floor) {
fire.ypos =
fire.vy *=
if (fire.zpos & -fl) {
var scale = fl/ (fl+fire.zpos);
fire.setSize(scale);
fire.setPosition(vpx + fire.xpos * scale,
vpy + fire.ypos * scale);
fire.setVisible(true);
fire.setVisible(false);
fireworks().init();
Html代码运行
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
xmlns="http://www.w3.org/1999/xhtml"
Untitled Page
type="text/css"
.fire{display: overflow: font-size:12 position:absolute};
body{overflow: background:#000}
html{overflow: background:#000}
type="text/javascript"
var Fire = function(r, color) {
this.radius = r || 12;
this.color =
this.xpos = 0;
this.ypos = 0;
this.zpos = 0;
this.vx = 0;
this.vy = 0;
this.vz = 0;
this.mass = 1;
this.x =0;
this.p = document.createElement("span");
this.p.className = "fire";
this.p.innerHTML = "*";
thisthis.p.style.fontSize = this.radius + "px";
this.p.style.color = "#" + this.
Fire.prototype = {
append: function(parent) {
parent.appendChild(this.p);
setSize: function(scale) {
thisthis.p.style.fontSize = this.radius * scale + "px";
setPosition:function(x, y) {
this.p.style.left = x + "px";
this.p.style.top =
setVisible: function(b) {
this.p.style.display = b ? "block" : "none";
var fireworks = function() {
var fires = new Array();
var count = 150;
var fl = 250;
var vpx = 500;
var vpy = 300;
var gravity = .5;
var floor = 200;
var bounce = -.8;
var wind = ((Math.floor(Math.random()*3) + 3)/10)*(Math.random()*2 - 1
0 ? 1 : -1)*.25;
var wpos = 0;
init: function() {
wcount = 50 + Math.floor(Math.random() * 100);
for (var i=0; i; i++) {
var color = 0xFF0000;
color = (Math.random() * 0xFFFFFF).toString(16).toString().split(".")[0];
while(color.length
color = "0" +
var fire = new Fire(12, color);
fires.push(fire);
fire.ypos = -100;
fire.vz = Math.random() * 6 - 3;
fire.vx = (Math.random()*2 - 1)*2 ;
fire.vy = Math.random()*-15 - 15;
fire.x = 500
fire.y = 600;
fire.append(document.body);
var that = this;
timer = setInterval(function() {
if (wpos = wcount) {
wcount = 50 + Math.floor(Math.random() * 100);
wind = ((Math.floor(Math.random()*3) + 3)/10)*(Math.random()*2 - 1
0 ? 1 : -1)*.25;
for (var i=0;i; i++) {
that.move(fires[i]);
move: function(fire) {
fire.vy +=
fire.x += fire.
fire.y += fire.
fire.vx +=
fire.setPosition(fire.x, fire.y);
if (fire.x
|| fire.x 1000 || fire.y
fire.vx = (Math.random()*2 - 1)*2;
fire.vy = Math.random()*-15 - 15;
fire.x = 500;
fire.y = 600;
fire.setPosition(fire.x, fire.y);
fireworks().init();
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有

我要回帖

更多关于 nodejs 好玩 的文章

 

随机推荐