dw软件圣诞树代码(圣诞树代码用什么软件)
Dreamweaver中时间的代码怎么写呀?
这是某年、某月、某日、星期几js文件:
今天是:script language=javascript
!--
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname =
new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
document.write("font color=#3566A0"+year +"年");
document.write(monthname[month]);
document.write(date + "日");
document.write(dayname[day]+" "+"/font");
// January(1月份节日,以下同。)
if ((month == 0) (date == 1)) document.write("元旦");
if ((month == 4) (date == 1)) document.write("国际劳动节");
if ((month == 5) (date == 1)) document.write("国际儿童节");
if ((month == 9) (date == 1)) document.write("国庆节");
if ((month == 11) (date == 25)) document.write("圣诞节");
document.write("/font");
//--
/script
把这段js文件放到你所需的位置定义一下就可以了。
今天是:script language=javascript
!--
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname =
new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
document.write("font color=#333333"+year +"年");
document.write(monthname[month]);
document.write(date + "日");
document.write(dayname[day]+" "+"/font");
// January(1月份节日,以下同。)
if ((month == 0) (date == 1)) document.write("元旦");
if ((month == 4) (date == 1)) document.write("国际劳动节");
if ((month == 5) (date == 1)) document.write("国际儿童节");
if ((month == 9) (date == 1)) document.write("国庆节");
if ((month == 11) (date == 25)) document.write("圣诞节");
document.write("/font");
//--
/script
在哪能找到好看的圣诞祝福的代码?
[ffg,#FFF467,#FFFFFF]↘ ↘[/ft][ffg,#00BFF3,#FFFFFF]圣诞节来了,[/ft]
[ffg,#EF6EA8,#FFFFFF]↘ ↘[/ft][ffg,#D9DFEF,#FFFFFF]我送你一颗松树![/ft]
[ffg,#FDDFD7,#FFFFFF]↘ ↘[/ft][ftc=#37B400]友情是树皮,[/ft]
[ffg,#EE1D24,#FFFFFF]↘ ↘叶子是祝福,[/ft]
[ffg,#5573B7,#FFFFFF]↘ ↘[/ft]上面挂满爱的礼物[/ft]
[ffg,#00BFF3,#FFFFFF]↘ ↘[/ft][ffg,#EE1000,#FFFFFF]喜欢吧?[/ft]
[ftc=#FDDFD7]↘ ↘[/ft][ffg,#FFF100,#FFFFFF]对了,还有我的祝福[/ft]
[ffg,#855FA8,#FFFFFF]↘ ↘[/ft][ftc=#E4F2E2]我写个纸条给你[/ft]
[ffg,#37B400,#FFFFFF]↘ ↘[/ft][ffg,#EF6EA8,#FFFFFF]答应让你来我的空间做客![/ft]
[ffg,#F79700,#FFFFFF]↘ ↘[/ft][ftc=#6CCFF7]记得要带上爱心喔![/ft]
[ffg,#00BFF3,#FFFFFF]↘ ↘[/ft][ffg,#FCE0E2,#FFFFFF]佷耐伱[/ft]
[fts=2]更多『记得来失落天堂找我啊!』[/ft]
DW怎么敲代码玫瑰
1、首先打开DW软件。
2、将输入法切换为英文输入法,点击代码编辑区,输入玫瑰代码。
3、输入完成后,点击运行代码,玫瑰图案即可成功出现。