1. div中的文字滚动效果的代码怎么写,不要jsp的,就直接用属性或者更
<HTML>
<HEAD>
<META ; charset=gb2312">
<title>;文字滚动</title>
</HEAD>
<BODY>
<MARQUEE id=a onm ouseover=a.stop() style="FONT-SIZE: 9pt; COLOR: white"
onmouseout=a.start() scrollAmount=2 direction=up width=150 bgColor=#6699ff
height=150>
<DIV
align=center>;这里输入你想要的内用</DIV></MARQUEE>
</BODY>
</HTML>
这个你直接放到heml网页中即可查看效果
2. css+div 图片滚动代码
css部分:-------------------------------- #r_2 {width:768px; height:130px; padding-left:3px; padding-right:5px; background-color:#FFFFFF; overflow:hidden; padding-top:3px;display:inline; }#scroll_div{OVERFLOW: hidden;height:133px;WIDTH: 658px;white-space: nowrap;} 滚动区域:------------------------------
3. 网页中的滚动图片的代码怎么写
图片滚动代码 (从右向左滚动) <marquee scrollamount=1 scrolldelay=3 valign=middle behavior="scroll"> </marquee> 图片滚动代码 (从下往上滚动) <marquee onm ouseOver="this.stop()" onm ouseOut="this.start()" align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll"> </marquee> 改版: <marquee onm ouseOUT=this.scrollDelay=1 onm ouseOVER=this.scrollDelay=600 scrollamount=1 SCROLLDELAY=1 border=0 direction=up scrolldelay=70 width=180 height=130 align=middle> </marquee> 说明: 1.direction属性:决定文本的滚动方向,分为向左left和向右right,up和down默认状态向左。
<marquee direction=left>从右向左滚动</marquee> <marquee direction=right>从左向右滚动</marquee> 2.behavior属性:指定文本的滚动方式,分为三种: Scroll:从一端消失后,在另一端出现并继续滚动。 <marquee behavior=scroll>一圈一圈地滚动</marquee> Slide:从一端滚动,接触到另一端后停止 <marquee behavior=slide>只滚动一次就停止</marquee> Alternate:从一端滚动到另一端后,反向滚动。
<marquee behavior=alternate>来回滚动</marquee> direction=up(left、right、down) 这个属性可以更改,这样就可以实现上下左右了 3.scrolldelay属性设置移动每步的延时单位为毫秒 4.scrollamount 属性 设置滚动速度 单位为秒,取值 1-60。
4. 上下滚动代码怎么写啊
第一个:
<meta ; charset=gb2312" />
|