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

asp图片滚动

<%
Const New_img=10     
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & New_img & " * from 0791idc_Product order by ID"
rs_Product.open sqltext,conn,1,1
if not rs_Product.EOF then%>
<div align='center' id='demo' style='overflow:hidden;height:200px;width:700px;'><!--滚动区的高度和宽度-->
<table align='center' cellpadding='0' cellspace='0' border='0'>
<tr>
 <td id='demo1' valign='top'>
  <table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
  <tr valign='top'>
 <%
 while not rs_Product.EOF
 fileExt=lcase(getFileExtName(rs_Product("DefaultPicUrl")))  
 %>
   <td align='center'>
    <TABLE width=100% border=0 align=center cellPadding=0 cellSpacing=0>
    <TR>
     <TD align="center"><div style="width:240px;">
      <a href='ProductShow.asp?ID=<%=rs_Product("ID")%>' target=_blank title='<%=rs_Product("title")%>'>
  <%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
        <img src="<%if rs_Product("DefaultPicUrl")="" then%>Img/nopic.gif<%else%><%=rs_Product("DefaultPicUrl")%><%end if%>" alt="<%=rs_Product("title")%>" width="220" height="174" border="0">
  <%else
   if fileext="swf" then%>
       <object  classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='220' height='174'>
        <param name=movie value='<%=rs_Product("DefaultPicUrl")%>'>
 &n


相关文档:

asp/asp.net连接sql anywhere数据库


<%
set conn= server.createobject("ADODB.connection")
conn.open "driver={sybase driver 10};"
"srvr=SYBASE;"
"UID=sa;"
"pwd=sybase;"
sql="select no from tab_st ......

C#生成com组件,供asp调用

C#生成com组件,供asp调用
一、vs2005—新建项目—C#类库
类库源码如下(包含接口,类,事件接口):
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
   ......

一个ASP替换函数img里面多余的代码

一个ASP替换函数img里面多余的代码
 
<%
Response.Write(Server.HTMLEncode(FixImg("<img onclick=""if(this.width>screen.width-461) window.open('qq/20082181405371.jpg');"" alt="""" border=""0"" src=""qq/20082181405371.jpg"" />")))
%>
<%
'功能:将IMG代码格式化为<img src= ......

asp分行读取txt文件,有分隔符,存储到access

txt文件是下面这样的,
一行一条数据,用逗号分隔
下面写出asp文件
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="inc/conn.asp" -->
<%
filespec=server.mappath("txt.txt")
Const ForRead ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号