導航:首頁 > 萬維百科 > 網站設計中文字滾動的速度

網站設計中文字滾動的速度

發布時間:2020-09-07 14:21:31

1、HTML文字滾動速度代碼?越簡單越好!謝謝!

<marquee>
向左移動
</marquee>

<marquee direction="right">
向右移動
</marquee>

<marquee direction="right" behavior="alternate">
來回移動
</marquee>

<marquee direction="right" loop="3">
移動3次
</marquee>

<marquee direction="right" scrollamount="1">
看我走多塊(scrollamount=「值」)值越大,速度越快
</marquee>

<marquee direction="right" scrolldelay="1000">
看我走多塊scrolldelay=「值」)1000毫秒=1秒 這是1秒移動一次
</marquee>

2、css樣式表控制文字滾動速度的是什麼屬性啊?

我知道文字滾動的標記是marquee,
Direction參數可設置:up
down
left
right
(控制滾動方向);
Scrolldelay參數是設置=
100
(100就是速度,值越大滾動越快……);
onMouseOut=this.start()表示滑鼠移出狀態滾動;
onMouseOver=this.stop()
表示滑鼠經過時停止滾動。

3、怎樣在網頁設計中把所需的文字從左到右滾動

14

<marquee>

width="300px"

height="200px"

behavior="scroll"

direction="left"

scrollamount="50"

loop="10"

限制滾動文字的范圍

限制滾動文字的范圍

限制滾動文字的行為(alternate:來回、scroll:循環滾動、slide:只滾動一次)

滾動的方向(left、right、down、up)

設置文字滾動的速度

設置滾動的次數
看看 有用嗎?

4、網頁設計字體滾動代碼?

文字滾動是由<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:頂部對齊

5、100分求一段可以調節網頁滾動速度的代碼

你之前的代碼 不管循環多少數據
marqueeContent[0] 這里都是0 那跟你原來的代碼對比一下 肯定是出錯的

原來的代碼是 0 1 2 3 4 5 一次往下排的

所以用到i來循環就好了!

6、.net頁面中,如何讓讓文字滾動起來,並卻可以設置滾動速度

<marquee direction=left onmouseover=this.stop() onmouseout=this.start() height=10 width=10 scrollamout=0 scrolldelay=20>*****</mqrquee>

direction方向
scrollamout速度
scrolldelay文字延遲
height高度 width寬度

7、在html中怎麼改變文字的滾動速度!

<html>
<head><title>文字滾動</title></head>
<body>
<marquee direction="left" behavior="scroll" scrollamount="10" bgcolor="" width="1000" height="" scrolldelay="">
你好,中國!!!
</marquee>
</body>
</html>

利用scrollamount來改變滾動速度,你可以改變幾個數字試試。scrolldelay=正整數:設置字幕或文本滾動的延遲時間,其他的幾個屬性都知道吧。

8、網站要設置一個滾動的字幕,字幕滾動的快慢怎麼設置呢/?

Dialogue: 0,0:00:00.00,0:05:00.00,*Default,NTP,0000,0000,0000,Banner;15;0;50, {\an8}{\fs30}本字幕由XX字幕組傾情製作,更多精彩游戲視頻請關注XX字幕組 字幕組交流群:XXXXXXXX 片源:XX,翻譯:XX,校潤:XX, 後期:XX

Banner;2;0;50 第一個數字代錶速度;數字越小速度越快
第二個數字0代表字幕從右往左走,1代表從左往右走
第三個數字代表字幕滾動到屏幕邊緣的透明度,實踐證明50為好

9、在網站設計中:文字垂直向上滾動怎麼弄,求代碼、CSS,求詳解???

這段代碼你看下是不是你要的效果。如果不是可以繼續追問
<div style="width:200px; height:300px">
<marquee direction="up" truespeed="truespeed" height="300px" behavior="scroll">
<p></p>
<p></p>
<p></p></marquee></div>

與網站設計中文字滾動的速度相關的知識