爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
很漂亮的日历特效
很漂亮的日历特效
日期:2014-05-18 浏览次数:20628 次
以下是HTML网页特效代码,点击运行按钮可查看效果:
以下是程序代码
<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Content-Language" content="gb2312" /> <meta content="all" name="robots" /> <meta name="author" content="RainoXu" /> <meta name="Keywords" content=""> <meta name="description" content="" /> <meta content="Xhtml+CSS,ASP,网页设计" name="keywords" /> <style type="text/css"> *{ margin:0; padding:0; font:10px tahoma; } #calender{ text-align:center; width:147px; font-size:10px; /*color: #27B0C1;*/ margin:12px 0 12px 6px; border-top:1px solid #EEEEEE; border-left:1px solid #EEEEEE; } #calender .arrow_over{ color: #FF1493; } #calender .arrow_out{ color: #FF8C00; } #calender td{ border-bottom:1px solid #EEEEEE; border-right:1px solid #EEEEEE; width:21px; height:20px; line-height:16px; color:#666666; } #calender #cal_title{ width:147px; background:#EFEFEF; } #calender #week td{ background: #F8F8F8; } #calender .current{ background: #AAE7E8; display: block; margin:2px; } #calender .notcurrent{ display: block; margin:2px; background:#EDEDED; } </style> <script type="text/javascript"> <!-- document.writeln("<div id='calenderdiv' style>日历加载中...</div>"); var press_tag; function changecal(action,year,month) { var strcal; switch(action) { case "nextmonth": if(month==11) { month = 1; year = year*1 + 1; }else{ month = month*1 + 2; } strcal = "<span onmouseover=\"this.className='arrow_over'\" onmouseout=\"this.className='arrow_out'\" class='arrow_out' onclick='calender(" + year + "," + month +")' title='下一个月' style='cursor:hand;'>> </span>"; break; case "premonth": if(month==0) { month = 12; year = year*1 - 1; } strcal = "<span onmouseover=\"this.className='arrow_over'\" onmouseout=\"this.className='arrow_out'\" class='arrow_out' onclick='calender(" + year + "," + month +")' title='上一个月' style='cursor:hand;'> <</span>"; break; case "nextyear": year = year*1 + 1; month = month*1 + 1; strcal = "<span onmouseover=\"this.className='arrow_over'\" onmouseout=\"this.className='arrow_out'\" class='arrow_out' onclick='calender(" + year + "," + month +")' title='下一年' style='cursor:hand;'>>></span>"; break; case "preyear": year = year*1 - 1; month = month*1 + 1; strcal = "<span onmouseover=\"this.className='arrow_over'\" onmouseout=\"this.className='arrow_out'\" class='arrow_out' onclick='calender(" + year + "," + month +")' title='上一年' style='cursor:hand;'><<</span>"; break; default:; } strcal = " " + strcal + " "; return(strcal); } function calender(cyear,cmonth) { var d,d_date,d_day,d_month; //定义每月天数数组 var monthdates = ["31","28","31","30","31","30","31","31","30","31","30","31"] d = new Date(); d_year
上一篇:狡猾的按钮特效
下一篇:根据不同的节日变换图片或LOGO的特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
薛蛮子取保后首次发微博表示:辜负你们了
HDS发布《2013中国CIO洞察白皮书》
神州泰岳雪上加霜:副总违规买卖遭罚
二代 iPad Air将配备2GB内存?为同屏多任务做准备
中国移动承诺再降4G资费 网络漫游至50个国家
中国手游总裁及8名高管集体下岗,被指涉不当交易
三大运营商合建铁塔公司真相:未涉及电信业重组
中国电信内外受困 去电信化思绪待改
黑莓高管:黑莓能作为家“小众公司”活下来
推荐阅读
更多>
柳传志马云陷舆论漩涡:请不要辜负这个时代
小米年度发布会遭围剿!多款新品难阻品牌危机
苹果20年以来首次发债 融资170亿美元
第二梯队也PK:当1号店“遇上”京东手机节
都是300元内 乐视盒子与小米盒子对比体验
美剧讲硅谷创业者:远不及现实荒诞?
搜狐前副总编何毅加盟乐视 任车联网公司CEO
同为70前后人,马云为什么总是像外星人那么瘦
移动联通回应税率改革:短期内收入利润将大减
微软小冰复活再战移动端:改与米聊、易信和触宝合作
估值增长9.8% 阿里IPO前市值达2450亿美元
逆转猜想:如果阿里成为雅虎大股东会怎样?
2013年至今中国互联网行业十大并购案汇总
八位知名设计师评iOS7:新鲜但复杂
国美在线叫板京东:李俊涛底气在哪?
锐迪科将以9.25美元/ADS价钱出售835万份ADS
联通丹东公司一高管造假套出手机变卖被判刑7年
微软谷歌高层访韩面前:忌惮三星的崛起
传360周鸿祎曾试图阻止百度收购91无线
工信部或本月17日向联通电信颁发FDD牌照