[原创]asp.net下的日历控件源代码
2007-12-15 09:31:35 来源:WEB开发网前台aspx文件
<%@ Register TagPrefix="componentart" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Page language="c#" Codebehind="demoCalendar.aspx.cs" AutoEventWireup="false" Inherits="orderMRP.demo.Calendar.demoCalendar" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>日历控件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
var dropShow=false
var currentID
function dropdown(el){
if(dropShow){
dropFadeOut()
}else{
currentID=el
el.style.visibility="visible"
dropFadeIn()
}
}
function dropFadeIn(){
if(currentID.filters.alpha.opacity<100){
currentID.filters.alpha.opacity+=20
fadeTimer=setTimeout("dropFadeIn()",50)
}else{
dropShow=true
clearTimeout(fadeTimer)
}
document.all.ddl_Text.innerText="";
}
function dropFadeOut(){
if(currentID.filters.alpha.opacity>0){
clearTimeout(fadeTimer)
currentID.filters.alpha.opacity-=20
fadeTimer=setTimeout("dropFadeOut()",50)
}else{
dropShow=false
currentID.style.visibility="hidden"
}
}
function dropdownHide(){
if(dropShow){
dropFadeOut()
dropShow=false
}
}
/*
function hiLight(el)
{
if(dropShow)
{
for(i=0;i<el.parentElement.childNodes.length;i++)
{
el.parentElement.childNodes(i).className="link_record0"
}
el.className="link_record1"
}
}
//function CheckMe(el){
//document.all.ddl_Text.innerText=el.innerText
//}
*/
document.onclick=dropdownHide
</script>
<LINK href="DDLControl.css" type="text/css" rel="stylesheet">
</HEAD>
<body bgColor="#e6e7ed" >
<form id="Form1" runat="server">
<table id="Table20">
<tr>
<td>
<div class="link_box" onselectstart="return false" style="WIDTH: 100px">
<div class="link_head">
<table id="Table30" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td>
<div class="link_text"><nobr><asp:textbox id="ddl_Text" runat="server" Width="97px" Font-Size="9pt" BorderStyle="Groove">---请选择---</asp:textbox><!--onkeyup="dropdown(value11)" -->
<!--
<label id="ddl_Text">---请选择---</label>
<input id="ddl_Text" type="text" value="---请选择---" name="ddl_Text">
- ››asp.net页面弄成伪静态页面
- ››Asp.net 中将汉字转换成拼音的方法
- ››ASP.NET及JS中的cookie基本用法
- ››ASP.NET获取MS SQL Server安装实例
- ››asp.net实现调用百度pai 在线翻译英文转中文
- ››ASP.NET页面选项进行提示判断
- ››Asp.net定时执行程序
- ››ASP.NET中利用DataList实现图片无缝滚动
- ››ASP.NET验证控件RequiredFieldValidator
- ››ASP.NET中使用System.Net.Mail发邮件
- ››ASP.NET中获取用户控件中控件的ID
- ››ASP.NET中FileBytes写成文件并存档
赞助商链接