易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET 页面中 滚动当前系统时间

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Admin_Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type ="text/javascript">
function tick()
 {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
theday = today.getYear()+"年" + [today.getMonth()+1]+"月" +today.getDate() + d[today.getDay()+1];
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours <12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes <10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = theday+xfile+hours+minutes+seconds;
 var textNode=document.createTextNode(timeString);  //create拼写
   currentElement=document.getElementById("time");
  currentElement.replaceChild(textNode,currentElement.firstChild);
   setTimeout("tick()",1000);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body onload="tick()">
    <form id="form1" runat="server">
    <MARQUEE id="time" scrollA


相关文档:

Window 2003+iis 6.0 配置asp.net 步骤

新手,上网GOOGLE了半天,也没发现一个最简单的解决方案,各网站都是在抄来抄去。
刚刚配置了一台新的asp.net的网站,写一下方式,给自己做个总结。
1.安装iis 6.0,就用windows 2003 自带光盘就可以。
2.打开iis, 选择网站->新建-> 网站,然后选择目录啊,起名啊什么的,很正常的步骤。注意把脚本资源那个给选中 ......

ASP.NET 清除 HTML 标记函数

using System.Text.RegularExpressions;   //引入的命名空间
以下为引用的内容:
//清除HTML函数
    public static string NoHTML(string Htmlstring)
    {
        //删除脚本
        Htmlstr ......

ASP.NET跨页面传值技巧总结

关于页面传值的方法,引发了很多讨论。1. 使用QueryString变量。2. 使用Application 对象变量。4. 使用Cookie对象变量。这个才可以说是面象对象开发所使用的方法,其使用Server.Transfer方法把流程从当前页面引导。
  1.  使用QueryString变量
  QueryString是一种非常简单的传值方式,他可以将传送的值显示在浏 ......

asp.net实现伪静态

其实所谓的伪静态页面,就是指的URL重写,在ASP.NET中实现非常简单
首先你要在你的项目里引用两个DLL:
                ActionlessForm.dll
                UR ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号