<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% '用于制作在页面(首页或其他页面)中显示新闻标题的长度,在下面要显示的标题中调用函数即可. conn_open() function cutstr(tempstr,tempwid) if len(tempstr)>tempwid then cutstr=left(tempstr,tempwid)&"..." else cutstr=tempstr end if end function %>
邮箱:
密码:
地 址:上海市武夷路519弄61号
   2号楼3楼
邮 编:200050
电 话:021-51088165、62130155
传 真:021-62409503
E-mail:bl@baolian.com.cn
网 址:www.baolian.com.cn
  上海宝联电脑印刷有限公司是一家从事广告设计、电脑排版、激光照排的公司。本公司初创于1992年末,正式成立于1993年5月8日。1998年改制成上海宝联电脑印刷有限公司。注册资金200万元。
从创立至今,经过公司全体员工的不懈努力,不断进取,忘我工作,以及广大客户的大力支持,固定资产从当初……
<% set rs=server.createobject("adodb.recordset") exec="select top 6 * from news_info where Nc_id=5 order by ni_id desc" rs.open exec,conn,1,1 do while not rs.eof %> <% rs.movenext loop rs.close set rs=nothing %>
" target="_blank" class="a1"> <%=cutstr(rs("Ni_title_s"),25)%> <% '条件语句,用于判断,如果时间等于当天,就显示news.gif这个图片.如果用"if datediff("d",formatdatetime(rs("ni_addtime_d")),now)<=cint(daynum) then"替换"if rs("Ni_addtime_d")=date() then",将daynum改为1.2.3等,就可使图片显示不只一天. if datediff("d",formatdatetime(rs("ni_addtime_d")),now)<=cint(10) then response.write("") end if %> [<%=rs("Ni_addtime_d")%>]
  网站公告:
我们公司的网站现以全面开通了,在这里您可以详细了解我们公司的概况、产品等,希望您对我们提供宝贵意见!