爱易网
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 浏览次数:20268 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <title>非常实用的选择输入日期的特效aiyiweb.com</title> <head> <script language="javascript"> <!-- //==================================================== 参数设定部分 ======================================================= var bMoveable=true; //设置日历是否可以拖动 var _VersionInfo="Version:2.0" //版本信息 //==================================================== WEB 页面显示部分 ===================================================== var strFrame; //存放日历层的HTML代码 document.writeln('<iframe bgcolor="#000000" id=webjxDateLayer Author=wayx frameborder=0 style="position: absolute; width: 186; height: 247; z-index: 9998; display: none"></iframe>'); strFrame='<style>'; strFrame+='INPUT.button{BORDER-RIGHT: #B3C9E1 1px solid;BORDER-TOP: #B3C9E1 1px solid;BORDER-LEFT: #B3C9E1 1px solid;'; strFrame+='BORDER-BOTTOM: #ff9900 1px solid;BACKGROUND-COLOR: #EDF2F8;font-family:宋体;}'; strFrame+='TD{FONT-SIZE: 9pt;font-family:宋体;}'; strFrame+='</style>'; strFrame+='<scr' + 'ipt>'; strFrame+='var datelayerx,datelayery; /*存放日历控件的鼠标位置*/'; strFrame+='var bDrag; /*标记是否开始拖动*/'; strFrame+='function document.onmousemove() /*在鼠标移动事件中,如果开始拖动日历,则移动日历*/'; strFrame+='{if(bDrag && window.event.button==1)'; strFrame+=' {var DateLayer=parent.document.all.webjxDateLayer.style;'; strFrame+=' DateLayer.posLeft += window.event.clientX-datelayerx;/*由于每次移动以后鼠标位置都恢复为初始的位置,因此写法与div中不同*/'; strFrame+=' DateLayer.posTop += window.event.clientY-datelayery;}}'; strFrame+='function DragStart() /*开始日历拖动*/'; strFrame+='{var DateLayer=parent.document.all.webjxDateLayer.style;'; strFrame+=' datelayerx=window.event.clientX;'; strFrame+=' datelayery=window.event.clientY;'; strFrame+=' bDrag=true;}'; strFrame+='function DragEnd(){ /*结束日历拖动*/'; strFrame+=' bDrag=false;}'; strFrame+='</scr' + 'ipt>'; strFrame+='<div style="z-index:9999;position: absolute; left:0; top:0;" onselectstart="return false"><span id=tmpSelectYearLayer Author=wayx style="z-index: 9999;position: absolute;top: 3; left: 19;display: none"></span>'; strFrame+='<span id=tmpSelectMonthLayer Author=wayx style="z-index: 9999;position: absolute;top: 3; left: 78;display: none"></span>'; strFrame+='<table style="FILTER:dropshadow(color=#EDEDF8,offx=3.3,offy=3.3,positive=1);" cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>'; // 控件边框颜色 strFrame+='<table border=1 cellspacing=0 cellpadding=0 width=182 height=160 bgColor="#FFFFFF" borderColorLight=#7197CA borderColorDark="#ffffff" Author="wayx">'; strFrame+=' <tr Author="wayx"><td width=182 height=23 Author="wayx" bgcolor=#FFFFFF><table border=0 cellspacing=1 cellpadding=0 width=180 Author="wayx" height=23>'; strFrame+=' <tr align=center Author="wayx"><td width=16 align=center bgcolor=#B6CAE4 style="font-size:12px;cursor: hand;color: #ffffff" '; strFrame+=' onclick="parent.webjxPrevM()" title="向前翻 1 月" Author=webjx><b Author=webjx><</b>'; strFrame+=' </td><td width=60 align=center style="font-size:12px;cursor:default" Author=webjx '; strFrame+='onmouseover="style.backgroundColor=\'#D7E1F0\'" onmouseout="style.backgroundColor=\'white\'" '; strFrame+='onclick="parent.tmpSelectYearInnerHTML(this.innerText.substring(0,4))" title="点击这里选择年份"><span Author=webjx id=webjxYearHead></span></td>'; strFrame+='<td width=48 align=center style="font-size:12px;cursor:default" Author=webjx onmouseover="style.backgroundColor=\'#D7E1F0\'" '; strFrame+=' onmouseout="style.backgroundColor=\'white\'" onclick="parent.tmpSelectMonthInnerHTML(this.innerText.length==3?this.innerText.substring(0,1):this.innerText.substring(0,2)
上一篇:狡猾的按钮特效
下一篇:小巧玲珑的网页中的常用的小日历
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
阿里巴巴上市后雅虎将面临更大的业绩压力
华为野心布局未来:投资研发5G对赌1毫秒连接
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
传三星为赢得新兴市场:推廉价版Note3
三星石墨烯制备技术获突破
9月1日起免征新能源汽车购置税
170号码扎堆上市:手机话费私人定制时代到来?
网易云音乐能否为丁磊拿到移动互联网门票?
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
推荐阅读
更多>
从百度世界大会看大数据
首家国有独资P2P平台上线 或预示政策日渐明朗
Line风靡亚洲,在北美却进展缓慢
HTC手机为何一败再败?效果出在供应链
揭秘:阿里巴巴“无人认领”的三成股权都归谁
从旗下三大业务BG发展看华为的过去现在和未来
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
墨迹天气:产品创新以攻为守方能对抗巨头
神奇约炮应用被禁 改名后重返苹果应用商店
阿里巴巴上市后雅虎将面临更大的业绩压力
喜大普奔:2016年国内乘客有望在飞机上使用手机
阿里巴巴IPO难掩的四个现实问题:天猫销售额成谜、淘宝拖后腿、营收迅猛其他不行和投资者未必买账
京东微信入口战略能否助力618大促创流量巅峰
Android版WhatsApp曝漏洞:聊天记录可被窃取
代工厂生活危机:“富士康们”何去何从?
NoomWeight减肥
为啥苹果定要出廉价iPhone?都是安卓逼的
微信今天大面积崩溃 腾讯:因光缆施工被挖断
P2P平台科迅网疑“跑路” 涉及金额超2700万