爱易网
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 浏览次数:20581 次
以下是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的特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
黑狐病毒疯传播 电脑管家首推 专杀工具
虚拟运营市场躁动:山西煤老板兴味浓重
论:三大运营商运用商店逆袭并非不能够
一大波智能路由器正在袭来:小米、360、极路由大PK
美剧讲硅谷创业者:远不及现实荒诞?
分析称iPhone 6明年初发布 屏幕变为4.8吋
华为坚持不上市究竟为何?不差钱也不想冒风险
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
HTC与苹果三星距离扩展 C2B形式成新武器
推荐阅读
更多>
一个非脑残米粉的思考:小米“成功之道”如何炼成
腾讯为何在与阿里百度的收购比赛中当看客?
马云:银行若放开存款利率 余额宝死了也光荣
“扫黄打非”下9158否认遭整顿
FB上广告费用昂贵而且效果不及Twitter
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
易迅大众点评缩水执行“七天后悔权”被约谈
从旗下三大业务BG发展看华为的过去现在和未来
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
微软觊觎移动互联市场:手机未出渠道先行
唯品会荣登“最贵中概股”的欢喜与哀愁
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
三星手机在国内陷入困境:华为中兴小米紧追
传三星为赢得新兴市场:推廉价版Note3
联想架构调整后:Think品牌或推智能手机
二代 iPad Air将配备2GB内存?为同屏多任务做准备
微软大幅调整Bing在华策略:从高大上到接地气
说说这一个月的赌球输了多少
神奇约炮应用被禁 改名后重返苹果应用商店