兔子专栏

刘晓逸(liuxiaoyi666)的小地盘

用户操作
[即时聊天] [发私信] [加为好友]
刘晓逸ID:liuxiaoyi666
71081次访问,排名1449好友121人,关注者439
微软最有价值专家,asp,asp.net
liuxiaoyi666的文章
原创 51 篇
翻译 0 篇
转载 0 篇
评论 91 篇
最近评论
wwd252:支持这种文章,lz能多写点就好了
liuxiaoyi666:我在有一次部门内部的讲课中,我提到的方法是先分析涉众利益,根据利益相关度及权重进行计算,不过通常我所说的计算并非真实的计算,当然如果真的有数据的可以算的,这个的思考模型来自于决策论
holiday1001:分析团队人员的兴趣点很重要, 用什么计算公式去分析呢?
coder_java:老师您好,我想请教如何在上传时验证服务器端文件是否已经存在,若存在弹出js提示是否覆盖,确定时,就覆盖已有的文件,取消就返回浏览状态,若有示例能否发到小弟email:pigdone@126.com, 谢谢!
loveblack123:好文
文章分类
收藏
    相册
    朋友
    lingll的专栏
    孟子E章
    我小弟寻斌
    殷鹏
    特种兵
    莫依
    虎子的blog
    超级笨狼
    陈锐新书
    龙的天空
    自己的其他blog
    博客园的blog
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 vbs日历收藏

    新一篇: 发现了一个script好玩的属性 | 旧一篇: 关于emule的使用心得

    <html>
    <head>
    <script language="vbscript">
    class calendar
    dim calendarmonth,calendaryear,calendarday
    dim today
    dim table1
    Private Sub Class_Initialize
    today=date
    set table1 = document.getElementById("calendartable")
    end sub

    function tableclear()
    rowsnum=1
    j=0
    for i=0 to 34
       table1.rows(rowsnum).cells(j).innerText=""
       j=j+1
       if j=7 then
            j=0
            rowsnum=rowsnum+1
       end if
    next
    end function

    public property get thedayd()
    if len(calendarday)=0 then
    calendarday=day(today)
    end if
    theyeard=calendaryear
    end property

    public property let thedayd(theday)
    calendarday=theday
    end property

    public property get theyeard()
    if len(calendaryear)=0 then
    calendaryear=year(today)
    end if
    theyeard=calendaryear
    end property

    public property get themonthd()
    if len(calendarmonth)=0 then
    calendarmonth=month(today)
    end if
    themonthd=calendarmonth
    end property

    public property let theyeard(theyear)
    calendaryear=theyear
    end property

    public property let themonthd(themonth)
    calendarmonth=themonth
    end property

     function displayDay()
       dim days,theday
       dim d
       dim todayw
       dim rows
       dim cells
       rows=1
       d = calendaryear&"-"&calendarmonth&"-"&"1" 
        todayw = Weekday(d)  
       select case calendarmonth
         case 1
                days=31           
         case 2
               days=runnian(calendaryear)
         case 3
               days=31          
         case 4
               days=30
          case 5
               days=31             
         case 6
               days=30
         case 7
               days=31             
         case 8
               days=31
         case 9
               days=30
         case 10
              days=31
         case 11
              days=30
         case 12
              days=31
       end select
       rowsnum=1
       j=todayw-1
     for i=1 to days
          if i=calendarday then
           table1.rows(rowsnum).cells(j).innerHTML="<font color='red'>"&i&"</font>"
         else
         table1.rows(rowsnum).cells(j).innerText=i
         end if

    j=j+1
    if j=7 then
    j=0
    rowsnum=rowsnum+1
    end if
    next
    end function
    function runnian(theyear)
    If theyear Mod 100 = 0 Then
    If theyear Mod 4 = 0 Then
       runnian=29
    Else
        runnian=28
    End If
    Else
    If theyear Mod 4 = 0 Then
       runnian=29
    Else
     runnian=28
    End If
    End If
    end function
    end class
    </script>
    <script language="vbscript">


    function init()
    set c=new calendar
    c.theyeard=2005
    c.themonthd=5
    c.thedayd=12
    c.displayDay
    set chyear=document.getElementById("chooseyear")
    set chmonth=document.getElementById("choosemonth")
    for i=2003 to 2006
    set oOption = document.createElement("OPTION")
         oOption.text=i
        oOption.value=i
     if(i=c.theyeard) then
         oOption.selected=true
         end if  
      chyear.add oOption
    next
    for i=1 to 12
    set oOption = document.createElement("OPTION")
         oOption.text=i
        oOption.value=i
     if(i=c.themonthd) then
         oOption.selected=true
         end if  
      chmonth.add oOption
    next
    set c=nothing
    end function
    function sel()
    set chyear=document.getElementById("chooseyear")
    set chmonth=document.getElementById("choosemonth")
    set c=new calendar
    c.tableclear
    for i=0 to 3
    if(chyear.options(i).selected=true) then
    yeard=chyear.options(i).value
    c.theyeard=CInt(yeard)
    end if  
    next
    for i=0 to 11
    if(chmonth.options(i).selected=true) then
    monthd=chmonth.options(i).value
    c.themonthd=CInt(monthd)
    end if  
    next
    c.displayDay
    end function
    </script>
    <style>
    .calendarcss{font-family:"Arial";
             font-size:12px;
             color:#000000;
             }
    </style>
    </head>
    <body onload="init()">
    <table id="calendartable" class="calendarcss">
    <tr>
    <td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    <tr>
    <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
    </tr>
    </table>
    <select id="chooseyear" onpropertychange="sel()">
    </select>
    <select id="choosemonth" onpropertychange="sel()">
    </select>
    </body>
    </html>

    发表于 @ 2005年02月23日 22:23:00|评论(loading...)|编辑

    新一篇: 发现了一个script好玩的属性 | 旧一篇: 关于emule的使用心得

    评论

    #超级大笨狼 发表于2006-01-10 13:45:00  IP: 61.152.134.*
    呵呵,咔嚓喀嚓,减少代码
    <HTML>
    <HEAD>

    </HEAD>

    <BODY>
    <div id="calendar"></div>
    <select id="chooseyear" onchange="vbs:sel me.value,choosemonth.value">
    </select>
    <select id="choosemonth" onchange="vbs:sel chooseyear.value,me.value">
    </select>
    <SCRIPT LANGUAGE="vbScript">
    sub addOptions(fromInt,toInt,obj)
    dim newOption
    for i=fromInt to toInt
    set newOption=document.createElement("<option>")
    newOption.text=i
    newOption.value=i
    obj.options.add newOption
    next
    end sub

    addOptions 2005,2050,chooseyear
    addOptions 1,12,choosemonth
    sel 2006,1

    sub sel(YY,MM)
    dim Daymax,HTML,theDay,flag
    HTML="<table style='font-family:Arial;font-size:12px;'><tr><td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td></tr><tr>"
    for i=29 to 32
    if not isdate(YY & "-" & MM & "-" & i) then
    Daymax=i-1
    exit for
    end if
    next
    theDay=1
    flag = true
    for i= 1 to int(Daymax/7) + 2
    HTML=HTML & "<tr>"
    for j=1 to 7
    HTML=HTML & "<td>"
    if theDay <= Daymax and weekd
    #超级大笨狼 发表于2006-01-10 13:52:00  IP: 61.152.134.*
    当天颜色是红的,修改了一下

    <HTML>
    <HEAD>

    </HEAD>

    <BODY>
    <div id="calendar"></div>
    <select id="chooseyear" onchange="vbs:sel me.value,choosemonth.value">
    </select>
    <select id="choosemonth" onchange="vbs:sel chooseyear.value,me.value">
    </select>
    <SCRIPT LANGUAGE="vbScript">

    addOptions year(now),year(now)+10,chooseyear
    addOptions 1,12,choosemonth
    sel 2006,1

    sub addOptions(fromInt,toInt,obj)
    dim newOption
    for i=fromInt to toInt
    set newOption=document.createElement("<option>")
    newOption.text=i
    newOption.value=i
    obj.options.add newOption
    next
    end sub



    sub sel(YY,MM)
    dim Daymax,HTML,theDay,flag,theDate
    HTML="<table style='font-family:Arial;font-size:12px;'><tr><td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td></tr><tr>"
    for i=29 to 32
    if not isdate(YY & "-" & MM & "-" & i) then
    Daymax=i-1
    exit for
    end if
    next
    theDay=1
    flag = true
    for i= 1 to int(Daymax/7) + 2
    HTML=HTML & "<tr>"
    for j=1 to 7
    theDate = cdate(YY & "-"
    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © 刘晓逸