CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

取ACCESS数据库的记录在主页面滚动显示。

楼主wwxj()2003-12-01 18:53:20 在 Web 开发 / ASP 提问

取出记录后,在主页面中的一小块滚动显示,取数据库记录的为一个ASP文件,然后在主页面中调用,该ASP文件该怎么写,在主页面的一个位置该怎么调用。能给一段例子最好。加注释。谢谢。 问题点数:0、回复次数:4Top

1 楼superdullwolf(超级大笨狼,每天要自强,MVP)回复于 2003-12-01 18:58:47 得分 0

 
  Contents     Index     Topic   Contents  
     
  Previous   Topic:   MAP  
  Next   Topic:   MENU  
     
   
  MARQUEE  
   
  --------------------------------------------------------------------------------  
   
  Description  
   
  Enables   you   to   create   a   scrolling   text   marquee.    
   
  Syntax  
  <MARQUEE  
  BEHAVIOR=ALTERNATE   |   SCROLL   |   SLIDE  
  BGCOLOR=color  
  CLASS=classname  
  DATAFLD=colname  
  DATAFORMATAS=HTML   |   TEXT  
  DATASRC=#ID  
  DIRECTION=DOWN   |   LEFT   |   RIGHT   |   UP  
  HEIGHT=n  
  HSPACE=n  
  ID=value  
  LANG=language  
  LANGUAGE=JAVASCRIPT   |   JSCRIPT   |   VBSCRIPT   |   VBS    
  LOOP=n  
  SCROLLAMOUNT=n  
  SCROLLDELAY=milliseconds  
  STYLE=css1-properties  
  TITLE=text  
  TRUESPEED  
  VSPACE=n  
  WIDTH=n  
  event   =   script  
  >  
   
   
   
  Parameter   Description    
  BEHAVIOR=ALTERNATE   |   SCROLL   |   SLIDE     How   the   text   scrolls   in   the   marquee.   Alternate     The   marquee   text   alternates   left   and   right.    
  Scroll     The   marquee   text   scrolls   in   the   direction   specified   in   the   DIRECTION=   attribute.   The   text   scrolls   off   the   end   and   starts   over.      
  Slide     The   marquee   text   scrolls   in   the   direction   specified   in   the   DIRECTION=   attribute   and   stops   when   it   reaches   the   end.    
     
  BGCOLOR=color     Background   color   behind   the   element.   For   a   complete   list   of   colors,   see   the   Internet   Explorer   color   table.    
  CLASS=classname     Class   of   the   tag   being   defined.   This   is   used   to   associate   a   subclassed   style   sheet   with   the   tag.    
  DATAFLD=colname     Column   name   from   the   data   source   object   that   supplies   the   bound   data.      
  DATAFORMATAS=HTML   |   TEXT     Indicates   whether   bound   data   is   plain   text   or   HTML.    
  DATASRC=#ID     ID   of   the   data   source   object   that   supplies   the   data   that   is   bound   to   this   element.    
  DIRECTION=DOWN   |   LEFT   |   RIGHT   |   UP     Which   direction   the   text   should   scroll.    
  HEIGHT=n     HEIGHT   of   the   MARQUEE   in   pixels   or   as   a   percentage   of   the   screen   height.    
  HSPACE=n     Along   with   VSPACE,   specifies   margins   for   the   element.    
  ID=value     SGML   identifier   used   as   the   target   for   hypertext   links   or   for   naming   particular   elements   in   associated   style   sheets.   Valid   ID   values   must   begin   with   a   letter.   The   underscore   character,   "_",   may   be   used   in   the   ID   name.   The   ID   should   be   unique   throughout   the   scope   of   the   document.   If   more   than   one   object   with   the   same   identifier   exists   in   a   document,   a   collection   of   those   named   items   is   created   that   can   only   be   referenced   by   ordinal   position.    
  LANG=language     Specifies   which   language   to   use   in   ISO   standard   language   abbreviation   form.    
  LANGUAGE=JAVASCRIPT   |   JSCRIPT   |   VBS   |   VBSCRIPT     Specifies   the   language   the   current   script   is   written   in   and   invokes   the   proper   scripting   engine.   The   default   value   is   JAVASCRIPT.   JAVASCRIPT,   JSCRIPT     The   script   is   written   in   JScript.    
  VBS,   VBSCRIPT     The   script   is   written   in   VBScript.    
     
  LOOP=n     Number   of   times   the   marquee   text   will   loop.    
  SCROLLAMOUNT=n     Number   of   pixels   the   text   scrolls   between   each   subsequent   drawing   of   the   MARQUEE.    
  SCROLLDELAY=milliseconds     Speed   the   MARQUEE   scrolls   in   milliseconds.    
  STYLE=css1-properties     Inline   style   sheet   for   the   tag.    
  TITLE=text     Used   to   provide   advisory   information.   The   contents   of   the   title   attribute   will   be   displayed   in   a   tooltip   during   the   onmouseover   event.    
  TRUESPEED     When   present,   this   attribute   indicates   that   the   exact   scroll   delay   value   specified   is   used   to   move   the   marquee   text.   Without   this   attribute,   all   scroll   delay   values   of   59   or   less   are   rounded   to   60   milliseconds.    
  VSPACE=n     Along   with   HSPACE,   specifies   margins   for   the   element   in   pixels.    
  WIDTH=n     Returns   the   calculated   width   of   the   marquee   in   window   coordinates.   In   HTML,   this   attribute   may   be   initially   set   in   pixels   or   percentages.    
  event     Can   be   one   or   more   of   these   events:   onafterupdate     onblur    
  onbounce     onclick    
  ondblclick     ondragstart    
  onfinish     onfocus    
  onhelp     onkeydown    
  onkeypress     onkeyup    
  onmousedown     onmousemove    
  onmouseout     onmouseover    
  onmouseup     onresize    
  onrowenter     onrowexit    
  onselectstart     onstart    
     
   
  Remarks  
   
  Both   the   start   and   end   tags   are   required.    
   
  Example  
   
  <MARQUEE   DIRECTION=RIGHT   BEHAVIOR=SCROLL   SCROLLAMOUNT=10   SCROLLDELAY=200>  
  This   is   a   scrolling   marquee.  
  </MARQUEE>  
   
  Scripting   Object  
   
  MARQUEE    
   
   
   
  --------------------------------------------------------------------------------  
   
    Top   of   Page    
  &copy;   1997   Microsoft   Corporation.   All   rights   reserved.   Terms   of   Use.    
  Top

2 楼zrqlyc(狼子心)回复于 2003-12-01 19:03:28 得分 0

下面的是上下滚动的,去掉“direction=up   ”就是左右  
  <marquee       scrollamount=1       direction=up   onmouseover=this.stop();   onmouseout=this.start();>  
  <%set   rs=server.createobject("adodb.recordset")  
  sql="select   top   8   *   from   Announce   Order   By   time   Desc"  
  rs.open   sql,connNJ,1,3  
  if   rs.eof   and   rs.bof   then %>  
  没有公告    
  <%   else  
  do   while   (not   rs.eof)  
    response.write   rs("center")  
  rs.movenext    
  loop    
  end   if     %>  
  </marquee>Top

3 楼fridayfly(林子)回复于 2003-12-01 19:15:07 得分 0

在frontpage中使用<marquee>...</marquee>效果不好  
  </marquee>老是会跳掉,中间不能有象<br>,<p>等这些  
  东西,有是么办法可以解决吗?Top

4 楼ygghost(刘华强)回复于 2003-12-01 19:35:33 得分 0

<MARQUEE   direction=up   height=180   onmouseout=this.start()    
  onmouseover=this.stop()   scrollAmount=2   scrollDelay=0     width=130>    
  <DIV   align=left>    
  '这里读出数据库里的记录  
  </DIV>  
  </MARQUEE></FONT>  
  -------------------------------  
  ------------------------------  
  其中   direction-----滚动方向   up   down   left   right  
            onmouseout=this.start()   -----鼠标离开滚动  
            onmouseover=this.stop()   -----鼠标上去停止  
            scrollAmount=2--------滚动速度   越大越快  
  height   width   不用说了吧?Top

相关问题

  • 数据库写不进,库里面有的记录读不出
  • 数据库里面的重复记录问题。在线等...
  • 在CComboBox里面怎么样显示数据库的记录
  • 数据库里面记录如何 生成脚本
  • 主页制作---数据库
  • 主页制作------数据库
  • 数据库记录集
  • 数据库记录问题
  • 数据库记录删除
  • 数据库方面

关键词

  • 数据库
  • jscript
  • vbscript
  • marquee
  • scrolling
  • 主页
  • 记录
  • 滚动
  • direction
  • specifies

得分解答快速导航

  • 帖主:wwxj

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo