惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - loveabel

汉鼎咨询:创业板上市企业募投项目变更原因深度分析 [导入]球员各个位置的关键属性问题 好好学习JAVA和.Net hibernate的语法怎么搞 一些关于中文乱码问题的一些解决方案和经验 前台对象的事件一览 复制表结构的通用存储过程 webconfig身份验证票 什么是web.config C#中使用DES HMACSHA1 SHA1 RC2 MD5 进行字符串加密的例程 两台SqlServer数据同步解决方案 正则表达式 自认为以下文章比较经典,希望对初学者有用^_^ c#中对文件的操作小结 IT人士群聚喝酒的讲究 谁在呐喊软件蓝领,那是他们准备开培训学校,谁在呐喊自主版权,那是他希望民族主义帮助销售,谁在呐喊“核心技术”,这多半是准备骗政府投资。 系统数据库 sql server中扩展存储过程随笔(几个有用的PROCEDURE小总结) 修改数据库(设置数据库选项)
日历
loveabel · 2005-04-15 · via 博客园 - loveabel


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 


<HTML>
<HEAD>
<TITLE> 日历 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style>
BODY 
{
    FONT-SIZE
: 9pt; MARGIN-LEFT: 0px; MARGIN-TOP: 2px; TEXT-ALIGN: center
}

.boxinput
{BORDER-BOTTOM: #000000 1pt solid; BORDER-LEFT: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; BORDER-TOP: #000000 1pt solid; background-color: #F2F2F2;FONT-SIZE: 9pt;}
</style>
<SCRIPT LANGUAGE="JavaScript">
var date = new Date();
var activeDate = new Date();

var tbl = window.document.createElement("<TABLE style=\"background:white;border:1px solid black;width:100%;height:100%;font:9pt arial;\" cellspacing=0>");
var tblhd = window.document.createElement("THEAD");
var tblbd = window.document.createElement("TBODY"); 

var anchorPriorYear = window.document.createElement("A");
anchorPriorYear.style.fontFamily 
= "webdings"
anchorPriorYear.style.color
="white";
anchorPriorYear.style.cursor 
= "hand";
anchorPriorYear.innerText 
= "7";
anchorPriorYear.title 
= "上一年"
var anchorPriorMonth = window.document.createElement("A"); 
anchorPriorMonth.style.fontFamily 
= "webdings"
anchorPriorMonth.style.color
="white";
anchorPriorMonth.style.cursor 
= "hand"
anchorPriorMonth.innerText 
= "3"
anchorPriorMonth.title 
= "上一月"
var anchorNextMonth = window.document.createElement("A"); 
anchorNextMonth.style.fontFamily 
= "webdings"
anchorNextMonth.style.cursor 
= "hand"
anchorNextMonth.style.color
="white"
anchorNextMonth.innerText 
= "4"
anchorNextMonth.title 
= "下一月"
var anchorNextYear = window.document.createElement("A"); 
anchorNextYear.style.fontFamily 
= "webdings"
anchorNextYear.style.cursor 
= "hand";
anchorNextYear.style.color
= "white";
anchorNextYear.innerText 
= "8";
anchorNextYear.title 
= "下一年"
var anchorClose = window.document.createElement("A"); 
anchorClose.style.fontFamily 
= "webdings"
anchorClose.style.cursor 
= "hand";
anchorClose.style.color
= "white";
anchorClose.innerText 
= "r";
anchorClose.title 
= "关闭"

var ynm = window.document.createElement("FONT");
ynm.style.width 
= "60%"
ynm.style.fontWeight 
= "bold"

var cpt = window.document.createElement("CAPTION"); 
tbl.appendChild(cpt);
tbl.appendChild(tblhd);
tbl.appendChild(tblbd);

var fillInput;
var calshow=false;

window.onload
=function(){
initcal();
}


function initcal(){
    inithead();
    initbody();
    calendar.appendChild(tbl);
    fillCalendar(date);
    tblbd.attachEvent(
"onclick",selectDate);
    tblbd.attachEvent(
"onkeydown",moveDate);   
    anchorPriorYear.attachEvent(
"onclick",goPriorYear);   
    anchorPriorMonth.attachEvent(
"onclick",goPriorMonth);
    anchorNextMonth.attachEvent(
"onclick",goNextMonth);
    anchorNextYear.attachEvent(
"onclick",goNextYear); 
    anchorClose.attachEvent(
"onclick",closeCalendar); 
    calendar.stopBubble 
= true;

}
 

function inithead()
    cpt.style.backgroundColor 
= "#003399";   
    cpt.style.color 
= "white";
    cpt.style.textAlign 
= "center";
    cpt.appendChild(anchorPriorYear);
    cpt.appendChild(anchorPriorMonth);
    cpt.appendChild(ynm);
    cpt.appendChild(anchorNextMonth);
    cpt.appendChild(anchorNextYear);
    cpt.appendChild(anchorClose);
    
var row = tblhd.insertRow();
    row.align 
= "center"
    
var weekStr = new Array("","","","","","","");
    
for (var i=0;i<weekStr.length;i++){
        
var cell = row.insertCell();
        cell.innerText 
= weekStr[i]; 
        cell.style.borderBottom 
= "solid 1px"
        cell.style.cursor 
= "default";
        cell.align 
= "center";  
        
if(i==0||i==6)cell.style.color="red";
        }

}


function initbody(){
    
for (var i=0;i<6;i++){
        
var row = tblbd.insertRow();
        
for (var j=0;j<7;j++){
            
var cell = row.insertCell();
            cell.innerHTML 
= "&nbsp;";
            cell.style.cursor 
= "default";
            cell.align 
= "center"
            }

    }

}


function fillCalendar(adate){
    ynm.innerText 
= adate.getFullYear() + "" + (adate.getMonth() + 1+ ""
    
var tempdate = new Date(); 
    tempdate.setFullYear(adate.getFullYear(),adate.getMonth(),
1);
    
var first = true;
    
for (var i=0;i<tblbd.rows.length;i++)
        
for (var j=0;j<tblbd.rows(i).cells.length;j++){
            
var cell = tblbd.rows(i).cells(j);
            cell.innerHTML 
= "&nbsp;"
            cell.bgcolor 
= "";
            cell.title 
= "";
            
if(j==0||j==6) cell.style.color="red";
            
else cell.style.color="black";
            cell.style.backgroundColor 
= ""
            
if (tempdate.getDay() == j)
            
if (!first) continue
            cell.innerText 
= tempdate.getDate();
            
var today=new Date(); 
            
if (tempdate.getDate() == activeDate.getDate()){
            cell.setAttribute(
"active",true);
            hightLightDate(cell); 
            }

            tempdate.setFullYear(tempdate.getFullYear(),tempdate.getMonth(),tempdate.getDate()
+1);
            first 
= tempdate.getDate() > 1;
            }

        }

    }

}


function hightLightDate(object){
    
var tds = tblbd.all.tags("TD");
    
for (var i=0;i<tds.length;i++){
    
if (tds(i) != object){
        tds(i).style.backgroundColor 
= tds(i).bgcolor; 
        tds(i).style.color 
= tds(i).style.color
        }

        
else{  
            tds(i).style.backgroundColor 
= "red"
            tds(i).style.color 
= "white"
            }

        }

}


function selectDate(){
    
var i = parseInt(window.event.srcElement.innerText);
    
if ((!isNaN(i)) && (i<3000)){
    activeDate.setFullYear(date.getFullYear(),date.getMonth(),i);     
    fillCalendar(activeDate);
    }

    fillInput.value
=activeDate.getFullYear()+'-'+(activeDate.getMonth()+1)+"-"+i;
}


function moveDate(){
    
var k = window.event.keyCode;
    
switch(k){
        
case 37:       activeDate.setFullYear(activeDate.getFullYear(),activeDate.getMonth(),activeDate.getDate()-1); 
        
break;
        
case 38:       activeDate.setFullYear(activeDate.getFullYear(),activeDate.getMonth(),activeDate.getDate()-7); 
        
break;
        
case 39:       activeDate.setFullYear(activeDate.getFullYear(),activeDate.getMonth(),activeDate.getDate()+1);
        
break;
        
case 40:       activeDate.setFullYear(activeDate.getFullYear(),activeDate.getMonth(),activeDate.getDate()+7);
        
break;
        }
  
        date.setFullYear(activeDate.getFullYear(),activeDate.getMonth(),activeDate.getDate());
        fillCalendar(date);
        fillInput.value
=activeDate.getFullYear()+'-'+(activeDate.getMonth()+1)+"-"+activeDate.getDate();
}


function goNextMonth(){
    date.setMonth(date.getMonth()
+1,1);
    setActiveDate();
    fillCalendar(date);
}


function goNextYear(){   
    date.setFullYear(date.getFullYear()
+1,date.getMonth(),1);
    setActiveDate();
    fillCalendar(date);
    }


function goPriorYear(){   
    date.setFullYear(date.getFullYear()
-1,date.getMonth(),1);   
    setActiveDate();
    fillCalendar(date);
}


function goPriorMonth(){
    date.setMonth(date.getMonth()
-1,1);
    setActiveDate();
    fillCalendar(date); 
}


function setActiveDate(){
    
var i = activeDate.getDate();   
    activeDate.setFullYear(date.getFullYear(),date.getMonth(),i);
    
while ((date.getMonth() != activeDate.getMonth()) || (date.getFullYear() != activeDate.getFullYear())){
    activeDate.setFullYear(date.getFullYear(),date.getMonth(),i
--);   
    }

    fillCalendar(date); 
}


function showCalendar(e){
calendar.style.top
=e.offsetTop+e.offsetHeight;
calendar.style.left
=e.offsetLeft;
calshow
=true;
fillInput
=e;
calendar.style.display
="block";
}



function hiddenCal()
{
if(!calshow)calendar.style.display="none";
}


function closeCalendar()
{
calshow
=false;
calendar.style.display
="none";
}

</SCRIPT>
</HEAD>

<BODY onclick="hiddenCal()">
开始日期:
<INPUT TYPE="TEXT" ONCLICK="showCalendar(this);this.blur();"  class="boxinput" onmouseout="calshow=false"/>
结束日期:
<INPUT TYPE="TEXT" ONCLICK="showCalendar(this);this.blur();" class="boxinput" onmouseout="calshow=false"/>
<div id="calendar" style="position:absolute;height:140px;width:160px;display:none;border:1px inset #003399;"  onmouseover="calshow=true" onmouseout="calshow=false"/>
</BODY>
</HTML>