执着成就未来 技术成就梦想
文字横幅以及760*60黄金广告位置招租,欢迎恰谈! 广告业务联系QQ:8019399 声明:在本站所投放广告内容均与本站立场无关!

您现在的位置: 中国安全在线 >> 攻防技术 >> 菜鸟学习 >> 文章正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
从TCP/IP配置建立安全的Linux服务器
详解 用Linux+Iptables构建防火墙实
巧用IP安全策略保护您的重要数据
在局域网中进行IP包捕获的一种方法
PHP+MySQL注入导出文件的新发现(附
从上传webshell到突破TCP/IP筛选到
温柔杀手-跨站Script攻击
利用IP地址欺骗突破防火墙
PHP+MySQL注入导出文件的新发现 - 
IPB2注入漏洞的深入利用
根据IP头格式 写sniff其他技术
作者:佚名 来源:安全在线 更新时间:2006-9-29 【字体:
<%=(int(rnd()*1)+1)%>您当前的位置:中国安全在线cnsafer.com 请进入[技术论坛]发表评论

阅读提示:

var text;
var flag = 0;
var cx=0;
var cy=0;
var val=0;
var running=false;
var stx,sty;
function locate()
{   cx=window.event.x;
    cy=window.event.y;
   
}
document.onmousemove=locate;
function mousemove(){
 var x,y;
    x=cx-stx;
    y=cy-sty;
 if(x<0) {x=0;}
 if(y<0) {y=0;}
    with(calendar.style)
    {
    left=x.toString()+"px";
    top=y.toString()+"px";
    }
}
function mousedown(){
  with(calendar.style)
    {
 stx=cx-parseInt(left.substring(0,left.charAt('p')+1));
    sty=cy-parseInt(top.substring(0,top.charAt('p')+1));
 }
  if(!running){
   val=setInterval("mousemove()",10);
   running=true;
  }
  else{
  clearInterval(val);
  running=false;
  }
 }
 function mouseup(){
 if(running){
    clearInterval(val);
 running=false;
  }
 }
function MakeCal(date,intCount) {
 var z1, z2,blntoday
 var today = new Date();
 if (date == null) {
  var szMonth = today.getMonth();
  var szYear = today.getFullYear();
  var szDate = today.getDate();
 }
 else {
  z1 = date.indexOf("/");
  z2 = date.indexOf("/", 3);
  var szMonth = Number(date.slice(0,z1)) - 1;
  var szYear = Number(date.slice(z2 + 1, z2+ 5));
  if(szMonth < 0){
   szMonth = 11;
   szYear = szYear - 1;
  }
  else if(szMonth > 11){
   szMonth = 0;
   szYear = szYear + 1;
  }
  var szDate = Number(date.slice(z1 + 1,z2));
 }
 var x, intTemp, szId, max, todayx, startx;
 var szStart = new Date(szYear, szMonth, 1);
 var intDay = szStart.getDay();
 var blSet = false;
 var szCal;
 szStart.setMonth(szMonth - 1);
 var PrevMonth = szStart.getMonth();
 var PrevYear = szStart.getFullYear();
 szStart = new Date(szYear, szMonth, 1);
 szStart.setMonth(szMonth + 1);
 var NextMonth = szStart.getMonth();
 var NextYear = szStart.getFullYear();
 szStart = new Date(szYear, szMonth, 1);
 szCal = "" ;
 szCal = szCal + "<table id=tblBor width=100% border=0 bgcolor=#D6C7DA style="border-style:solid;border-width:1px;border-color:black" cellspacing=0 cellpadding=0 align='center'><tr><td>";
 szCal = szCal + "<table id=tblCal width=100% border=0 bgcolor=#E7EAE6 style="cursor:default;" cellspacing=0 cellpadding=3 >";
 if (szStart.getMonth() == (szMonth))
  szCal = szCal + "<tr bgcolor=#BDE6E8 onmouseup="mouseup();" onmousedown="mousedown()"><td colspan=6 align=center id=title style="cursor:default;"><div style="display:none;" id="whoactive">"+MakeString(szStart.getMonth())+"10</div>" +"<font color=#00009F>"+ MakeStringT(szMonth)+"</Font>" + " " +"<Font Color =#00009F>"+ szYear + "年"+"</font>"+"</td><td><input type=button value=&times style="background-color: #DFECEC; width: 18; height: 18" onclick="calendar.style.visibility='hidden'"></td></tr>";
 else
  szCal = szCal + "<tr bgcolor=#BDE6E8 onmouseup="mouseup();" onmousedown="mousedown()"><td colspan=6 align=center id=title style="cursor:default;"><div style="display:none;" id="whoactive">"+MakeString(szStart.getMonth())+"10</div>" +"<font color=#7F7F7F>"+ MakeStringT(szMonth)+"</Font>" + " " +"<Font Color =#7F7F7F>"+ szYear + "年"+"</font>"+"</td><td><input type=button value=&times style="background-color: #DFECEC; width: 18; height: 18" onclick="calendar.style.visibility='hidden'"></td></tr>";
 szCal = szCal + "<tr id=rowTitle style="cursor:default;"><td><font color=#53A46B>日</font></td><td><font color=#0A13C0>一</font></td><td><font color=#0A13C0>二</font></td><td><font color=#0A13C0>三</font></td><td><font color=#0A13C0>四</font></td><td><font color=#0A13C0>五</font></td><td><font color=#53A46B>六</font></td></tr>";
 for (x=1; x<43; x++) {
  if (x % 7 == 1) {
   szCal = szCal + "<tr>"
  }
  szStart = new Date(szYear, szMonth, 1);
  intTemp = (-(intDay - x));
  szStart.setDate(intTemp);
  szId = MakeString(szStart.getMonth()) + x;
  if (!blSet) {
   if (szStart.getMonth() == (szMonth + 1)) {
    blSet = true;
    max = x;
   }
   if (szStart.getFullYear() == (szYear + 1)) {
    blSet = true;
    max = x;
   }
  }
  blntoday = 0;
  if (szStart.getDate() == today.getDate()) {
   if (szStart.getMonth() == today.getMonth()) {
    if (szStart.getYear() == today.getYear()) {
     todayx = x;
     blntoday = 1;
    }
   }
  }
  szCal = szCal + "<td ";
  if(intCount == 0){
   if (szStart.getMonth() == (szMonth)) {
    if (szStart.getDate() == today.getDate()) {
     szCal = szCal + "onclick="setVal('" + (szStart.getMonth() + 1 ) + "/" + szStart.getDate() + "/" + szStart.getFullYear() + "','0');document.getElementById(whoactive.innerHTML).style.backgroundColor='

您对本文章有什么意见或着疑问吗?请到论坛讨论您的关注和建议是我们前行的参考和动力

文章录入:ls1238    责任编辑:ls1238 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系方式 | 友 情链接 | 关于我们 | 网站留言 |
    Copyright ?2003-2008 www.cnsafer.com All Rights Reserved.
    如有意见请与我们联系 Email:admin#mail.cnsafer.com 联系QQ:8589101
    中国安全在线友情提示:建议使用IE6.0或以上版本, 分辩率1024*768进行浏览
    敢想 敢做 挑战自我 努力做最好 打造最优秀的新手成长 第一起跑线
    中网科技有限公司 技术支持 鄂ICP备05006475号