loveyue系列1到8的源码 这个网页里有一点点解释,只针对没有网站基础的人,什么都不会的,可以看看这个:http://loveyue1.sinaapp.com/love/index.html
wuxia2001 / loveyue Goto Github PK
View Code? Open in Web Editor NEWloveyue系列1到8的源码
loveyue系列1到8的源码
loveyue系列1到8的源码 这个网页里有一点点解释,只针对没有网站基础的人,什么都不会的,可以看看这个:http://loveyue1.sinaapp.com/love/index.html
想加个mp3背景音乐,能自动播放!--试过在Love.html目录下加一个love.mp3,但是不行,没反应
1 查过百度,不行(似乎说现在版本的Google浏览器、firefox都不支持自动播放)
2 查过Google 试过不少方法,依然没有反应(说是改什么隐私。。。似乎太麻烦了把)
3 可能是我没有系统的搞过html(基础问题,)
4 谁有办法呢?(想求帮忙,有人可以给个简单的例子吗,能运行的,我再模仿,跟着改)
https://github.com/lxl0317/like 这个是第二个的增强版
只冒星星不显示文本内容啊
设置了时间,但是自动计时还是不对
请问这个
1.function movbulb(){
with (this) {
if(ec < 20){
if(Math.abs(x0 - xm) < 100 && Math.abs(y0 - ym) < 100){
xx = (xm - x0) / 8;
yy = (ym - y0) / 8;
ec++;
}
}
xx *= 0.99;
yy *= 0.99;
x0 = Math.round(x0 + Math.cos(y0 / 15) * p) + xx;
y0+= yy - v;
if(y0 < -h * 2 || x0 < -w * 2 || x0 > nx + w * 2){
y0 = ny + N + h * 2;
x0 = nx/2-100 + Math.random() * 100;
ec = 0;
}
obj.style.top = y0 - h;
obj.style.left = x0 - w;
}
}
2.
this.v = 1 + Math.round((80 / h) * Math.random());
this.p = 1 + Math.round((w / 8) * Math.random());
请问大佬实现这个盒子上下左右浮动核心代码是什么原理,核心代码看不懂
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.