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

如何用asp输出日期和星期

 第一种方法:
<%
    d = date()
 response.write d&"&nbsp;&nbsp;&nbsp;&nbsp;"&WeekdayName(Weekday(d))
    %>
输出样式:2004-5-7    星期五
***********************************************************************************
第二种方法:
<%=FormatDateTime(date, vbLongDate)%><%
    d = date()
 response.write "&nbsp;&nbsp;&nbsp;&nbsp;"&WeekdayName(Weekday(d))
    %>
输出样式:2004年5月7日    星期五
************************************************************************************************************
第三种方法:
////////////第一步:把下面语句放在顶部.
<%
'日期函数
sub datetime
dat=int(datediff("d",dateserial(2000,8,27),now) mod 7)
response.write(formatdatetime(now,1))&"&nbsp;"
select case dat
case 0
 response.write "星期天"
case 1
 response.write "星期一"
case 2
 response.write "星期二"
case 3
 response.write "星期三"
case 4
 response.write "星期四"
case 5
 response.write "星期五"
case 6
 response.write "星期六"
end select
end sub
%>
/////////////////////第二步:把下面一句加在要显示的地方即可
<%datetime%>
******************************************************************************************************************88
/////产生随机函数1到10之间
<%
    Randomize()
    response.write Round(RND()*10)
    %>


相关文档:

asp中用jmail,Cdonts组件和Aspemail组件发邮件


JMAIL安装配置
jmail发送邮件的实例代码网上很多.但是有些细节如果不配置好,发送失败的可能性很大.
首先说明一下jmail安装配置步骤:
1. JMail 下载地址
http://hbdx3.skycn.com/down/w3JMail43Personal.exe
2.安装
本人在Windows 2003下面配置,其它系统还没有测试.
安装到目录比如: C:\Program Files\Dimac\w3JMai ......

做ASP小偷程序

 (一)如何截取指定区域的HTML代码?
  (对方网站的HTML代码在哪儿看?晕:IE浏览器>>查看>>源文件。不要告诉我你不知道IE是什么!),例如我只想获取以下HTML代码中"<td>"和"</td>"之间的的文字部分:
<html>
<title>网站爱好者__http://www.wwwfan.cn</title>
< ......

asp和mysql分页代码

 <!--#include file="zheboconn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>asp和mysql分页代码</title>
<style type="text/css">
<!--
.STYLE3 {
 fon ......

居中,表格宽度——ASP格式

一、修改格式:调整表头居左;
 <!--原来格式-->
/*说明:把整个表头和页面内容居中,当页面内容较长时,表头也居中,看起来像表头错位。*/
<div style="position: absolute;top:3px;">
<center>
<!--#include file="inc/glfcd.inc"-->
<br>
    标题
</br& ......

asp无组件等比例缩放图片

<%
'//////////// GPS:Get Picture Size //////////////
'//////////////利用ADODB.stream获取图片尺寸//////////////
Class GPS
Dim aso
Private Sub Class_Initialize
Set aso=CreateObject("Adodb.Stream")
aso.Mode=3
aso.Type=1
aso.Open
End Sub
Private Sub Class_Terminate
set aso=nothing
En ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号