文字左右连续滚动代码(js文字左右循环滚动)
admin 发布:2022-12-19 18:02 235
今天给各位分享文字左右连续滚动代码的知识,其中也会对js文字左右循环滚动进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
从右向左不间断的文字滚动代码
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
title连续向左滚动/title
style type="text/css"
!--
body {
font-size: 9pt;
color: #000000;
}
a {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: underline;
}
--
/style
/head
body
div id="marquees" a href="#"链接一/a a href="#"链接二/a a href="#"链接三/a a href="#"链接四/a /div
div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"/div
script language="JavaScript"
marqueesWidth=200;
with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preLeft=0; currentLeft=0; stopscroll=false;
function init(){
templayer.innerHTML="";
while(templayer.offsetWidthmarqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval("scrollLeft()",100);
}init();
function scrollLeft(){
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=1;
if(preLeft==marquees.scrollLeft){
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
}
}
/script
/body
/html
麻烦大家了,我想问下。文字向左和向右滚动代码是什么呢。。谢谢大家如题 谢谢了
会移动的文字(Marquee) -------------------------------------------------------------------------------- 基本语法 marquee ... /marquee marquee啦啦啦,我会移动耶!/marquee 啦啦啦,我会移动耶! 文字移动属性的设置 方向direction=# #=left, right marquee direction=left啦啦啦,我从右向左移!/marquee P marquee direction=right啦啦啦,我从左向右移!/marquee 啦啦啦,我从右向左移! 啦啦啦,我从左向右移! 方式bihavior=# #=scroll, slide, alternate marquee behavior=scroll啦啦啦,我一圈一圈绕着走!/marquee P marquee behavior=slide啦啦啦,我只走一次就歇了!/marquee P marquee behavior=alternate啦啦啦,我来回走耶!/marquee 啦啦啦,我一圈一圈绕着走! 啦啦啦,我只走一次就歇了! 啦啦啦,我来回走耶! 循环loop=# #=次数;若未指定则循环不止(infinite) marquee loop=3 width=50% behavior=scroll啦啦啦,我只走 3 趟哟!/marquee P marquee loop=3 width=50% behavior=slide啦啦啦,我只走 3 趟哟!/marquee P marquee loop=3 width=50% behavior=alternate啦啦啦,我只走 3 趟哟!/marquee 啦啦啦,我只走 3 趟哟! 啦啦啦,我只走 3 趟哟! 啦啦啦,我只走 3 趟哟! 速度scrollamount=# marquee scrollamount=20啦啦啦,我走得好快哟!/marquee 啦啦啦,我走得好快哟! 延时scrolldelay=# marquee scrolldelay=500 scrollamount=100啦啦啦,我走一步,停一停!/marquee 啦啦啦,我走一步,停一停! 外观(Layout)设置 对齐方式(Align) align=# #=top, middle, bottom font size=6 marquee align=# width=400啦啦啦,我会移动耶!/marquee /font 对齐上沿、中间、下沿。 啦啦啦,我会移动耶!对齐上沿。 啦啦啦,我会移动耶!对齐中间。 啦啦啦,我会移动耶!对齐下沿。 底色bgcolor=# #=rrggbb 16 进制数码,或者是下列预定义色彩: Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, Purple, Silver, Yellow, Aqua marquee bgcolor=aaaaee啦啦啦,我会移动耶!/marquee 啦啦啦,我会移动耶! 面积height=# width=# marquee height=40 width=50% bgcolor=aaeeaa 啦啦啦,我会移动耶! /marquee 啦啦啦,我会移动耶! 空白(Margins)hspace=# vspace=# ********************************************br 嗨, marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle啦啦啦,我会移动耶!/marquee 大家好!br 把这些复制到网页里看一下就知道了
网页文字左右滚动代码?
marquee
width=400
behavior=alternate
direction=left
scrollamount=20
border=1滚动文字/marquee
参数 用法介绍
width=400
跑马范围:宽为400
behavior=scroll,
slide,
alternate
跑马方式:循环绕行,只跑一次就停住,来回往复运动
direction=left,right
跑马方向:从左向右,从右向左
scrollamount=20
跑马速度:数越大越快
急着需要文字左右滚动js代码
div style="width: 200px;height:18px;overflow:hidden;" id="marq"111111111111111111111111111111111111111111111111122222222222222222222222222222222223333333333333333333333333333333333333333333344444444444444444444444444444444444555555555555555555555555555555555666666666666666666666666666666666/div
script
var marq = document.getElementById("marq"),
vari = 1;
marq.innerHTML += marq.innerHTML;
setTimeout(function () {
marq.scrollLeft += vari;
if (marq.scrollLeft 1) {
vari = 1;
} else if (marq.scrollLeft 1500) {
vari = -1;
}
setTimeout(arguments.callee, 18);
}, 18);
/script
关于文字左右连续滚动代码和js文字左右循环滚动的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;
相关推荐
- 05-09网页代码,网页代码快捷键
- 05-06单页网站的代码(完整的网页代码)[20240506更新]
- 05-06个人主页图片代码(个人主页图片代码怎么弄)[20240506更新]
- 05-06提取微信名片代码(微信名片信息提取)[20240506更新]
- 05-06php后台权限管理代码(php管理员权限)[20240506更新]
- 05-06付费观看代码php(付费观看代码)[20240506更新]
- 05-06在线html执行代码(html怎么运行)[20240506更新]
- 05-06源代码管理资源管理器(资源管理器运行代码)[20240506更新]
- 05-06代码源软件库(程序代码库)[20240506更新]
- 05-06点击弹出密码代码(点击弹出密码代码错误)[20240506更新]
取消回复欢迎 你 发表评论:
- 标签列表
- 最近发表
- 友情链接