精通 CSS+DIV 网页样式与布局 154
2016-12-29 16:34
609 查看
}
Date.js
//isaac at Feb 23 2005 11:31
function astrology(month,day){
document.write(‘<a href=”/frames.html?mainurl=/bbsdoc.php?board=birthday”
class=”astro” title=”点击进入 birthday 版”>’);
var constellation = new Array(
“摩羯”, “水瓶”, “双鱼”, “牡羊”, “金牛”, “双子”,
“巨蟹”, “狮子”, “处女”, “天秤”, “天蝎”, “射手”);
switch(month)
{
case 1:
if (day < 21)
document.write(constellation[0]);
else
document.write(constellation[1]);
break;
case 2:
if (day < 19)
document.write(constellation[1]);
else
document.write(constellation[2]);
break;
case 3:
if (day < 21)
document.write(constellation[2]);
else
document.write(constellation[3]);
break;
case 4:
if (day < 21)
document.write(constellation[3]);
else
document.write(constellation[4]);
break;
case 5:
if (day < 21)
document.write(constellation[4]);
else
document.write(constellation[5]);
break;
case 6:
if (day < 22)
Date.js
//isaac at Feb 23 2005 11:31
function astrology(month,day){
document.write(‘<a href=”/frames.html?mainurl=/bbsdoc.php?board=birthday”
class=”astro” title=”点击进入 birthday 版”>’);
var constellation = new Array(
“摩羯”, “水瓶”, “双鱼”, “牡羊”, “金牛”, “双子”,
“巨蟹”, “狮子”, “处女”, “天秤”, “天蝎”, “射手”);
switch(month)
{
case 1:
if (day < 21)
document.write(constellation[0]);
else
document.write(constellation[1]);
break;
case 2:
if (day < 19)
document.write(constellation[1]);
else
document.write(constellation[2]);
break;
case 3:
if (day < 21)
document.write(constellation[2]);
else
document.write(constellation[3]);
break;
case 4:
if (day < 21)
document.write(constellation[3]);
else
document.write(constellation[4]);
break;
case 5:
if (day < 21)
document.write(constellation[4]);
else
document.write(constellation[5]);
break;
case 6:
if (day < 22)
相关文章推荐
- 精通CSS.DIV网页样式与布局(六)——页面和浏览器元素
- 精通CSS.DIV网页样式与布局(二)
- 精通 CSS+DIV 网页样式与布局 14
- 精通 CSS+DIV 网页样式与布局 16
- 精通 CSS+DIV 网页样式与布局 7
- 精通CSS.DIV网页样式与布局(七)——制作实用菜单
- 精通 CSS+DIV 网页样式与布局 18
- 精通 CSS+DIV 网页样式与布局 1 什么是样式表
- 精通 CSS+DIV 网页样式与布局 21
- 精通 CSS+DIV 网页样式与布局 20
- 精通CSS.DIV网页样式与布局(二)—— 段落
- 精通 CSS+DIV 网页样式与布局 8
- 精通 CSS+DIV 网页样式与布局 15
- 精通 CSS+DIV 网页样式与布局 2 Selector -- 选择符
- 系列文章--精通CSS.DIV网页样式与布局学习
- 精通CSS.DIV网页样式与布局(八)——滤镜的使用
- 精通 CSS+DIV 网页样式与布局 12
- 精通 CSS+DIV 网页样式与布局 4
- 精通CSS.DIV网页样式与布局(一)
- 精通 CSS+DIV 网页样式与布局 13