爱易网
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 浏览次数:20566 次
以下是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的特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
乐视28日发布手机进展 LeUI系统Mobile版或曝光
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
孙正义入股阿里往事还原:阿里巴巴并非软银首选
FB上广告费用昂贵而且效果不及Twitter
独立工具APP:为亿级用户的商业化而愁
挂号网高管团体离任 或因投资人失掉决计
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
苹果售后生态链乱象:供需失衡价钱不一
中方抗议美方限购IT设备 紧张关系加剧
推荐阅读
更多>
锐迪科将以9.25美元/ADS价钱出售835万份ADS
天音通信170套餐试商用放号:流量两年不清零
工商总局开查电商“七日退货”
工商下月将整治手机市场
广东移动董事长徐龙受调查 圈内对其褒贬不一
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
如家撤离同程内情:祸起反水OTA“联盟”?
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
苹果CEO抱歉解读:是战略而非“屈服”
微软史上最大规模裁员,一半诺基亚员工
中电信国际漫游费下调85% 世界杯上网28元/天
百度透露无人驾驶战略 研发三维交通地图
陈天桥之鉴:产品创新被扼杀那些事
惠普董事长莱恩辞职 为巨额财务减记埋单
科技巨匠体验谷歌眼镜:戴上了就不想摘上去
全球五大电信设备商业绩:华为净利居首
联想国庆完成收购IBM x86服务器
代工厂生活危机:“富士康们”何去何从?
马斯克的特斯拉能否保持好势头
苹果音乐效劳新战略:与唱片商停止流媒体协作