您的位置:首页 > Web前端 > CSS

精通 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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  css 函数 class