1、怎样在网页设计中把所需的文字从左到右滚动
14
<marquee>
width="300px"
height="200px"
behavior="scroll"
direction="left"
scrollamount="50"
loop="10"
限制滚动文字的范围
限制滚动文字的范围
限制滚动文字的行为(alternate:来回、scroll:循环滚动、slide:只滚动一次)
滚动的方向(left、right、down、up)
设置文字滚动的速度
设置滚动的次数
看看 有用吗?
2、网页制作中怎么设置滚动条,代码是什么
你可以根据需要改动相关色彩
<STYLE>
BODY {
SCROLLBAR-FACE-COLOR: rgb(0,186,186);
SCROLLBAR-HIGHLIGHT-COLOR: rgb(0,140,109);
SCROLLBAR-SHADOW-COLOR: rgb(23,71,255);
SCROLLBAR-3DLIGHT-COLOR: rgb(233,0,93);
SCROLLBAR-ARROW-COLOR: rgb(255,23,250);
SCROLLBAR-TRACK-COLOR: rgb(93,144,255);
SCROLLBAR-DARKSHADOW-COLOR: rgb(233,0,109);
SCROLLBAR-BASE-COLOR: rgb(128,128,128)
}
</STYLE>
3、怎么制作网页动态滚动文字...
用marquee即可
比如:
<marquee direction="right" behavior="scroll" scrollamount="10" scrolldelay="200">这是一个滚动字幕</marquee>
在里面加入marquee里面加入herf标签,应该就能实现滚动链接里面添加爱链接,marqueen之间也可以和数据库连接
4、网页制作中滚动字幕怎么整?
可以用javascript实现 也可以用<marquee>滚动字幕内容</marquee> <marquee>标签还有很多属性 <marquee direction="up" id="mar" width="100%" height="220" onMouseOut="mar.start()" onMouseOver="mar.stop()" scrollAmount="1" scrollDelay="50" border="0" class="text"> <marquee> 比如这段代码 就是个上下滚动的字母 而且有鼠标悬停效果 javascript 网上有很多代码 你可以自己去找
5、网页设计中怎么在页面中设置一个滚动条
css属性 overflow-y:auto; DIV里面的内容超过DIV的高度,右边就会自动出现滚动条
1、用一个div,定制成图中的宽度和高度
2、然后再把div的样式设成overflow-y:scroll,当div里的文字超出那个高度的时候,滚动条就出来了。
例如:<div style="width:100px; height:100px; overflow:auto; border:1px solid #000000;"><img src="" style="width:300px; height:300px;"></div>
6、Html网页设计中,如何设置滚动条,使多行文字循环滚动?
滚动条没有这个功能的,你的写一个脚本让文本滚动到底后自动回到顶部或者在文本底部实时复制文本对象
7、网页设计中 怎样让滚动的文字在鼠标移到它时停下
<SCRIPT language=JavaScript>
var marqueewidth=160
var marqueeheight=120
var speed=1
var marqueecontents=
ef="<div class=bbb ><center>公 告</center> 公司网站正在更新之中,如果浏览出现问题,请与管理员联系。谢谢!!"
if(document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
function regenerate(){window.location.reload()
}function regenerate2(){if(document.layers){setTimeout("window.onresize=regenerate",450)
intializemarquee()
}}function intializemarquee(){document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}function scrollit(){if(document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}else{document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}}window.onload=regenerate2
</SCRIPT>
8、网页设计字体滚动代码?
文字滚动是由<marquee></marquee>控制的。marquee的参数如下:
1、方向 <direction=#> #=left, right
如:<marquee direction=left>啦啦啦,我从右向左移!</marquee>
<marquee direction=right>啦啦啦,我从左向右移!</marquee>
2、方式 <bihavior=#> #=scroll, slide, alternate
如:<marquee behavior=scroll>啦啦啦,我一圈一圈绕着走!</marquee>
<marquee behavior=slide>啦啦啦,我只走一次就歇了!</marquee>
<marquee behavior=alternate>啦啦啦,我来回走耶!</marquee>
3、循环 <loop=#> #=次数;若未指定则循环不止(infinite)
如:<marquee loop=3 width=50% behavior=scroll>啦啦啦,我只走 3 趟哟!</marquee>
<marquee loop=3 width=50% behavior=slide>啦啦啦,我只走 3 趟哟!</marquee>
<marquee loop=3 width=50% behavior=alternate>啦啦啦,我只走 3 趟哟!</marquee>
4、速度 <scrollamount=#>
如:<marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>
5、延时 <scrolldelay=#>
如: <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>
6、对齐方式(Align) <align=#> #=top, middle, bottom
如:<font size=6>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
</font>
7、底色 <bgcolor=#>
#=rrggbb 16 进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua
如:<marquee bgcolor=aaaaee>啦啦啦,我会移动耶!</marquee>
8、面积 <height=# width=#>
如:<marquee height=40 width=50% bgcolor=aaeeaa> 啦啦啦,我会移动耶!</marquee>
9、空白(Margins)<hspace=# vspace=#>
<marquee id="scrollarea" direction="up" scrolldelay="10" scrollamount="1" width="150" height="80" onmouseover="this.stop();" onmouseout="this.start();">
------------------------------------------------------------------------------------------------------------------------------
<marquee></marquee>
以下是一个最简单的例子:
代码如下:
<marquee><font size=+3 color=red>Hello, World</font></marquee>
下面这两个事件经常用到:
onMouseOut="this.start()" :用来设置鼠标移出该区域时继续滚动
onMouseOver="this.stop()":用来设置鼠标移入该区域时停止滚动
代码如下:
<marquee >onMouseOut="this.start()" :用来设置鼠标移出该区域时继续滚动 :用来设置鼠标移入该区域时停止滚动</marquee>
这是一个完整的例子:
代码如下:
<marquee align="left" behavior="scroll" bgcolor="#FF0000" direction="up" height="300" width="200" hspace="50" vspace="20" loop="-1" scrollamount="10" scrolldelay="100" >
这是一个完整的例子
</marquee>
该标签支持的属性多达11个:
align
设定<marquee>标签内容的对齐方式
absbottom:绝对底部对齐(与g、p等字母的最下端对齐)
absmiddle:绝对中央对齐
baseline:底线对齐
bottom:底部对齐(默认)
left:左对齐
middle:中间对齐
right:右对齐
texttop:顶线对齐
top:顶部对齐
9、DW网页设计中如何给整个网页设置滚动条?
css属性 overflow-y:auto; DIV里面的内容超过DIV的高度,右边就会自动出现滚动条
1、用一个div,定制成图中的宽度和高度
2、然后再把div的样式设成overflow-y:scroll,当div里的文字超出那个高度的时候,滚动条就出来了。
例如:<div style="width:100px; height:100px; overflow:auto; border:1px solid #000000;"><img src="" style="width:300px; height:300px;"></div>