生肖调用


<script>
function astro(birth)
{
    if (birth!='')
    {    var tmpstr;
        var bstr;
        var mm;
        var yy;
        var dd;
        var birthmonth;
        tmpstr=birth.split(' ')
        bstr=tmpstr[0]
        tmpstr=bstr.split('-')
        yy=(tmpstr[0]*1)
        mm=(tmpstr[1]*1)
        dd=(tmpstr[2]*1)
        switch(mm){
        case 1 :
        if(dd>=21){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z11.gif alt=水瓶座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z10.gif alt=魔羯座'+mm+'-'+dd+'>');}
        break;
        case 2 :
        if(dd>=20){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z12.gif alt=双鱼座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z11.gif alt=水瓶座'+mm+'-'+dd+'>');}
        break;
        case 3 :
        if(dd>=21){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z1.gif alt=白羊座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z12.gif alt=双鱼座'+mm+'-'+dd+'>');}
        break;
        case 4 :
        if(dd>=21){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z2.gif alt=金牛座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z1.gif alt=白羊座'+mm+'-'+dd+'>');}
        break;
        case 5 :
        if(dd>=22){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z3.gif alt=双子座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z2.gif alt=金牛座'+mm+'-'+dd+'>');}
        break;
        case 6 :
        if(dd>=22){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z4.gif alt=巨蟹座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z3.gif alt=双子座'+mm+'-'+dd+'>');}
        break;
        case 7 :
        if(dd>=23){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z5.gif alt=狮子座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z4.gif alt=巨蟹座'+mm+'-'+dd+'>');}
        break;
        case 8 :
        if(dd>=24){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z6.gif alt=处女座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z5.gif alt=狮子座'+mm+'-'+dd+'>');}
        break;
        case 9 :
        if(dd>=24){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z7.gif alt=天秤座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z6.gif alt=处女座'+mm+'-'+dd+'>');}
        break;
        case 10 :
        if(dd>=24){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z8.gif alt=天蝎座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z7.gif alt=天秤座'+mm+'-'+dd+'>');}
        break;
        case 11 :
        if(dd>=23){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z9.gif alt=射手座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z8.gif alt=天蝎座'+mm+'-'+dd+'>');}
        break;
        case 12 :
        if(dd>=22){return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z10.gif alt=魔羯座'+mm+'-'+dd+'>');}
        else{return('<img src=http://bbs.iebook.cn/Skins/Default/birth/z9.gif alt=射手座'+mm+'-'+dd+'>');}
        break;
        default : return('');
}
    }else{return('');}
}
document.write (astro('1985-02-06'));

</script>


document.write (astro('1985-02-06'));

[本日志由 cmscn 于 2007-08-12 02:30 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 0 | 引用: 0 | 查看次数: 702
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 20 字 | UBB代码 关闭 | [img]标签 关闭