爱易网
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 浏览次数:20245 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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)
上一篇:狡猾的按钮特效
下一篇:小巧玲珑的网页中的常用的小日历
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
百度“全网寻人”面前的互联网信息枢纽价值
神州电脑中止IPO面前:再被质疑财务造假
揭秘:阿里巴巴“无人认领”的三成股权都归谁
苹果6月20日发布iPhone5S 触摸屏概念股生动
运营商补贴减少 国内通信业拐点逼近
FDD牌照12月将发放 联通电信双4G反击中移动
全球最具“颠覆性”特质的公司排行榜TOP25
余额宝收益率跌破5% 银行系宝宝收益率赶超
微软小冰复活再战移动端:改与米聊、易信和触宝合作
推荐阅读
更多>
华为美国推出电商网站 发售Mate 2LTE版
FDD牌照12月将发放 联通电信双4G反击中移动
中兴引进黑莓三个核心团队
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
柳传志马云陷舆论漩涡:请不要辜负这个时代
华为变阵:任正非调整三大业务布局
微软最后的救命稻草Win 8份额继续上升
第二梯队也PK:当1号店“遇上”京东手机节
NoomWeight减肥
携程收买酷讯成定局:转型互联网+投资
首批四款“官方”打车软件发布:均为安卓版本
腾讯为何在与阿里百度的收购比赛中当看客?
亚马逊第三方平台真的卖盗版书?
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
中国电信内外受困 去电信化思绪待改
网络旅行游记被曝插入"软广告" 个别人士月入数万
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
途牛开盘价9美元 与发行价持平
微软提示XP只剩365天寿命:用户被绑架?
三大运营商合建铁塔公司真相:未涉及电信业重组