关于marquee图片左右滚动代码的信息
demoonmouseout=function MyMar=setIntervalMarquee,speed继续移动 function r_leftif dir=1dir=1换向左移 function r_rightif dir=1dir=1换向右移 你这个代码是自己写的,还是直接从原文件复制过来的上面明显是用CSS样式,所以要改,也得从CSS里面改。
在html中需要将插入的图片左右来回移动,只需要在图片img标签外套一个marquee标签,在里面写上 behavior=alternate 这句话就可以实现alternate是滚动标签ltmarquee的属性scrolldelay,滚动延时,用于设定两次滚动操作之间的间隔时间,该时间以毫秒为单位behavior,滚动方式alternate 表示在两端之间。
var MyMar=setIntervalMarquee,speed。
ltmarquee bgcolor=#ffffff class=p4 direction=up height=60 scrollamount=1 scrolldelay=50 style=quotCOLOR #000000 class quot width=157 textalign left? border=quot0quot 要滚动的文字ltmarquee 图片滚动代码 从右向左滚动ltmarquee scrollamount=1 scrolldelay=3 valign=middle behavior=quot。
向上滚动首先要把向右滚动代码中的“direction=right”改为“direction=up”,把“width=600”该为“width=170”在marquee和marquee之间输入代码 “DIV align=centerIMG src=#34图片网址1#34 width=300 border=0DIV DIV align=centerIMG src=#34图片网址2#34 width=300 border=0。
有滚动字幕 插入组件字幕 滚动图片直接用代码ltmarquee direction=quotleftquot此处是你的图片代码ltmarquee ltmarquee标签的direction属性有四个值,left,down,up,right left是从右向左移动,其他的你自己试试,loop属性为循环 scrollamount = quot20quot此属性为移动速度,值越大速度越快 具体用法lt。
ltmarquee ltmarquee ltmarquee 移动属性的设置 ,这种移动不仅仅局限于文字,也可以应用于图片,表格等等 鼠标属性 onMouseOut=thisstart 鼠标移出状态滚动 onMouseOver=thisstop 鼠标经过时停止滚动 方向 ltdirection=# #=left, right ,up ,down ltmarquee direction=left从。
滚动图片直接用代码ltmarquee direction=quotleftquot此处是你的图片代码ltmarquee ltmarquee标签的direction属性有四个值,left,down,up,right left是从右向左移动,其他的你自己试试,loop属性为循环 scrollamount = quot20quot此属性为移动速度,值越大速度越快 具体用法ltmarquee direction=quotleftquot scroll。
这两个属性决定滚动矩形区域距周围的空白区域值是正整数,单位是像素 9align属性 这个属性决定滚动文字位于距形内边框的上下左右位置值可以是top,middle,bottom,默认为middle 下面是个滚动示例代码ltmarquee direction=quotleftquotbehavior=quotscrollquotscrollamount=quot10quotscrolldelay=quot0quotloop=quot1quotwidth=quot。