html特效代码大全表白动漫(html5特效代码大全)
html表白代码是那个软件
html表白代码是以下软件:Brackets、WebStorm、vscode、Sublime Text、HBuilder 、EditPlus等。
向HTML代码里加入流星飞逝的代码
第一步:把 body改为: body bgcolor=#000000" onLoad="snow()"
第二步:加入
script language="JavaScript"
!--
N = 40;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i N; i++){
Y[i]=Math.round(Math.random()*iH);
X[i]=Math.round(Math.random()*iW);
S[i]=Math.round(Math.random()*5+2);
A[i]=0;
B[i]=Math.random()*0.1+0.1;
M[i]=Math.round(Math.random()*1+1);
}
if (V){
for (i = 0; i N; i++)
{document.write("LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M[i]+","+M[i]+"'/LAYER")}
}
else{
document.write('div style="position:absolute;top:0px;left:0px"');
document.write('div style="position:relative"');
for (i = 0; i N; i++)
{document.write('div id="si" style="position:absolute;top:0;left:0;width:'+M[i]+';height:'+M[i]+';background:#fffff0;font-size:'+M[i]+'"/div')}
document.write('/div/div');
}
function snow(){
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i N; i++){
sy=S[i]*Math.sin(90*Math.PI/180);
sx=S[i]*Math.cos(A[i]);
Y[i]+=sy;
X[i]+=sx;
if (Y[i] H){
Y[i]=-10;
X[i]=Math.round(Math.random()*W);
M[i]=Math.round(Math.random()*1+1);
S[i]=Math.round(Math.random()*5+2);
}
if (V){document.layers['sn'+i].left=X[i];document.layers['sn'+i].top=Y[i]+T}
else{si[i].style.pixelLeft=X[i];si[i].style.pixelTop=Y[i]+T}
A[i]+=B[i];
}
setTimeout('snow()',10);
}
//--
/script
表白代码html原码
原发布者:year哈喽酷狗
#include
#include
#include
#definestoptimeshort40
#definestoptimelong100
voidmain()
{
//////////////////
charch[10];
intf[9][36]={0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,
0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0
;
ints[9][21]={0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,
0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,
1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,
1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,
0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,
0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,
0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0
网页背景音乐的HTML代码是什么?
网页背景音乐的HTML代码有三种,分别用bgsound/bgsound、embed/embed和audio/audio标签。
由于bgsound的特性是非标准的,所以请尽量不要在生产环境中使用它。下面对三者的参数进行介绍:
1、bgsound:
bgsound是IE浏览器中设置网页背景音乐的元素。
bgsound src="sound1.mid"
bgsound src="sound2.au" loop="infinite"
balance
该属性取值在-10,000到+10,000,它决定扬声器之间的音量如何分配。
loop
该属性表明音频被播放的次数,是一个数值或者关键字infinite。
2、EMBED:
embed 标签定义嵌入的内容,比如插件,插入音频和视频方式。
EMBED src="your.mid"autostart="true" loop="true" hidden="true"
height pixels 设置嵌入内容的高度。
src url 嵌入内容的 URL。
type type 定义嵌入内容的类型。
width pixels 设置嵌入内容的宽度。
3、audio:
audio 标签定义声音,比如音乐或其他音频流。
audio src="someaudio.wav"您的浏览器不支持 audio 标签。/audio
扩展资料:
html特效代码大全:
1)贴图:img src="图片地址"
2)加入连接:a href="所要连接的相关地址"写上你想写的字/a
3)在新窗口打开连接:a href="相关地址" target="_blank"写上要写的字/a
4)移动字体(走马灯):marquee写上你想写的字/marquee
5)字体加粗:b写上你想写的字/b
参考资料来源:百度百科-bgsound
参考资料来源:百度百科-embed
html爱心特效代码怎么改花瓣的颜色
html爱心特效代码改花瓣颜色的方法如下:
1、获取花瓣,所有调色条,以及用来显示rgb值的div盒子。
2、给花瓣循环绑定点击事件,这里需要一个匿名的自调用函数来储存i的值,不然事件绑定不上,i值会变为最终长度值。
3、利用"排他思想"循环遍历将所有花瓣的selected类名去掉,然后给当前点击的花瓣添加被选中的类名"selected"将边框变为虚线,表示被选中。
4、下面一个for循环同样利用了匿名的自调用函数存储i值,然后给所有的调色条绑定input事件。
5、判断一下是否有被选中的元素,通过判断之后获取带有selected类名的花瓣,然后将其背景颜色改为三个input输入的value值,最后将三个rgb值渲染到显示rgb值的div盒子中,这样一个彩色花瓣的效果就完成了。
html特效
1、你的那段放在body/body之间
2、要把文章内容放在p id="ccon"/div中间,并接在你那段后面;
2、再就是将这段代码放到head/head之间
script language="javascript"
//保存背景颜色和字号
function setSz()
{
var va = document.getElementById("bjColor").value;
setCookie("bjColor", va, 30);
va = document.getElementById("wzSize").value;
setCookie("wzSize", va, 30);
va = document.getElementById("wzColor").value;
setCookie("wzColor", va, 30);
va = document.getElementById("gd").value;
setCookie("gd", va, 30);
alert("保存成功!");
return ;
}
//设置背景颜色和字号
function getSz()
{
var bjColor = getCookie('bjColor');
var wzSize = getCookie('wzSize');
var wzColor = getCookie('wzColor');
var gd = getCookie('gd');
if(bjColor != null)
{
document.getElementById("ccon").style.background=bjColor;
setSelect(bjColor,"bjColor");
}
if(wzSize != null)
{
document.getElementById("ccon").style.fontSize=wzSize;
setSelect(wzSize,"wzSize");
}
if(wzColor != null)
{
document.getElementById("ccon").style.color=wzColor;
setSelect(wzColor,"wzColor");
}
if(gd != null)
{
SetScrollValue(gd);
setSelect(gd,"gd");
}
}
/*
* 设置滚动速度
*/
var currentpos,timer;
var scrollValue = 100;
function SetScrollValue(value)
{
scrollValue = value * 20;
}
function initialize()
{
timer = window.setInterval("scrollwindow()",scrollValue);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos = document.documentElement.scrollTop;
window.scroll(0,++currentpos);
window.status = currentpos;
if (currentpos != document.documentElement.scrollTop) sc();
}
document.ondblclick = function()
{
initialize();
}
document.onmousedown = function()
{
sc();
}
/script