当前位置:首页 > 代码 > 正文

文字滚屏代码(滚屏文字个性语言)

admin 发布:2022-12-19 15:19 166


今天给各位分享文字滚屏代码的知识,其中也会对滚屏文字个性语言进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

如何实现文字全屏滚动

你可以建一个.TXT文本

把下边的代码全部复制到里边

把后缀名改成.htm就可以了

参数你可以需要修改的时候 用记事本打开它进行修改 说明都已经写上了

直接用IE打开就实现全屏(你机器上要是提示限制运行的话 直接点允许就行了 因为有的机器上屏蔽JS)

退出的时候直接按Alt+F4直接退出

代码:

html

headscript language="javascript"

if (this.name!='FullWnd')

{

window.open(location.href,'FullWnd','fullscreen,scrollbars=no');

this.parent.opener=null;

this.parent.close();

}

/script

style type="text/css"

!--

body {

background-color: #000000;/*背景颜色“#000000”表示黑色,你可以参考其他的取色方案直接改数字就可以*/

}

.STYLE1 {

font-size: 500px;/*字体的大小,改成你想要的多的字体都行*/

color: #FF0000;/*这是字体的颜色 和背景颜色一样*/

font-family: "新宋体";/*直接把引号里的字体类型改成你想要的就行了*/

}

--

/style/head body scroll="no"

marquee scrollamount="4" direction="left"!--这里有2个可以改的地方:scrollamount="4" 这里的数字表示向左的速度,数值越大越快;direction="left"这里的left表示滚动的方向是向左,你可以改成right等--

span class="STYLE1"输入文字测试/span!--这里的"输入文字测试"--

/marquee

/body

/html

求网页中流动字幕、滚动字幕的代码?

简单一点的 1.字幕至边框停住 marquee behavior="slide" direction="left" scrollamount="9" scrolldelay="75"移动字幕自右至左停住的效果/marquee marquee behavior="slide" direction="right" scrollamount="9" scrolldelay="75"移动字幕自左至右停住的效果/marquee 2.字幕至边框移出循环 marquee scrollamount="9" scrolldelay="75"移动字幕自右至左出屏循环的效果/marquee marquee direction="right" scrollamount="9" scrolldelay="75"移动字幕自左至右出屏循环的效果/marquee 3.字幕至边框往复循环 marquee scrollamount="9" scrolldelay="75" behavior="alternate"移动字幕自右至左往复的效果/marquee marquee direction="right" scrollamount="9" scrolldelay="75" behavior="alternate"移动字幕自左至右往复的效果/marquee 【名词解释】 marquee|声明使用移动文字的效果 scrollamount="9"|移动文字的速度 scrolldelay="75"|移动文字的帧间隔时间 scrollamount/scrolldelay的经验值约为1/9-1/7左右 direction="right"|移动文字的方向(缺省不写本属性为向左) behavior="slide"|字幕至边框停住的效果 behavior="alternate"|字幕至边框往复循环

求文字上下滚动代码

marquee onMouseOver=this.stop()

onMouseOut=this.start() scrollamount=1

scrolldelay=7 direction=up width=270

height=77 滚动的文字

/marquee

求网页中文字上下滚动代码

marquee

不过仅对IE支持

建议通过js实现 这样对所有的浏览器支持都很好!

搜索网页特效类的软件 很多的~~

marquee 一例

MARQUEE onmouseover=this.stop() style="WIDTH: 100%; HEIGHT: 195px" onmouseout=this.start() scrollAmount=2 direction=upa href="sys_clew1.jsp"1/abra href="sys_clew2.jsp"2/abra href="sys_clew3.jsp"3/abr/MARQUEE

JS一例

script language=JavaScript1.2

//设置下面的参数(宽度,高度和背景色)可以得到不同的显示效果;

var scrollerwidth=500

var scrollerheight=20

var scrollerbgcolor='#f1f1f1'

//下面的参数,不想使用背景图的话设为空;

var scrollerbackground=''

//下面的参数设置显示内容,可以使用HTML语法改变字体,大小和颜色及连接等;

var messages=new Array()

messages[0]="::::::::::::::::::::: 示例滚动新闻 :::::::::::::::::::::"

messages[1]="a href='javascript:void(0)'盼望已久的《 文歌随笔》开通了……/a"

messages[2]="a href='javascript:void(0)'热烈庆祝《 文歌随笔》日访问人数超过1000人 /a"

messages[3]="a href='javascript:void(0)'欢迎光临《 文歌随笔》,我是黑蝙蝠/a"

///////下面的代码不要改变//////

if (messages.length1)

i=2

else

i=0

function move1(whichlayer){

tlayer=eval(whichlayer)

if (tlayer.top0tlayer.top=5){

tlayer.top=0

setTimeout("move1(tlayer)",2000)

setTimeout("move2(document.main.document.second)",2000)

return

}

if (tlayer.top=tlayer.document.height*-1){

tlayer.top-=5

setTimeout("move1(tlayer)",100)

}

else{

tlayer.top=scrollerheight

tlayer.document.write(messages[i])

tlayer.document.close()

if (i==messages.length-1)

i=0

else

i++

}

}

function move2(whichlayer){

tlayer2=eval(whichlayer)

if (tlayer2.top0tlayer2.top=5){

tlayer2.top=0

setTimeout("move2(tlayer2)",2000)

setTimeout("move1(document.main.document.first)",2000)

return

}

if (tlayer2.top=tlayer2.document.height*-1){

tlayer2.top-=5

setTimeout("move2(tlayer2)",100)

}

else{

tlayer2.top=scrollerheight

tlayer2.document.write(messages[i])

tlayer2.document.close()

if (i==messages.length-1)

i=0

else

i++

}

}

function move3(whichdiv){

tdiv=eval(whichdiv)

if (tdiv.style.pixelTop0tdiv.style.pixelTop=5){

tdiv.style.pixelTop=0

setTimeout("move3(tdiv)",2000)

setTimeout("move4(second2)",2000)

return

}

if (tdiv.style.pixelTop=tdiv.offsetHeight*-1){

tdiv.style.pixelTop-=5

setTimeout("move3(tdiv)",100)

}

else{

tdiv.style.pixelTop=scrollerheight

tdiv.innerHTML=messages[i]

if (i==messages.length-1)

i=0

else

i++

}

}

function move4(whichdiv){

tdiv2=eval(whichdiv)

if (tdiv2.style.pixelTop0tdiv2.style.pixelTop=5){

tdiv2.style.pixelTop=0

setTimeout("move4(tdiv2)",2000)

setTimeout("move3(first2)",2000)

return

}

if (tdiv2.style.pixelTop=tdiv2.offsetHeight*-1){

tdiv2.style.pixelTop-=5

setTimeout("move4(second2)",100)

}

else{

tdiv2.style.pixelTop=scrollerheight

tdiv2.innerHTML=messages[i]

if (i==messages.length-1)

i=0

else

i++

}

}

function startscroll(){

if (document.all){

move3(first2)

second2.style.top=scrollerheight

second2.style.visibility='visible'

}

else if (document.layers){

document.main.visibility='show'

move1(document.main.document.first)

document.main.document.second.top=scrollerheight+5

document.main.document.second.visibility='show'

}

}

window.onload=startscroll

/script

ilayer id=main width="{scrollerwidth};" height="{scrollerheight};" bgcolor="{scrollerbgcolor};" visibility="hide" top="0"

layer id=first width="300" top="1" left="0"

script language=JavaScript1.2

if (document.layers)

document.write(messages[0])

/script

/layer

layer id=second width="300" visibility="hide" top="0" left="0"

script language=JavaScript1.2

if (document.layers)

document.write(messages[1])

/script

/layer

/ilayer

script language=JavaScript1.2

if (document.all){

document.writeln('span id="main2" style="position:relative; width:'+scrollerwidth+'; height:'+scrollerheight+'; overflow:hiden; background-color:'+scrollerbgcolor+'; background-image:url('+scrollerbackground+')"')

document.writeln('div style="position:absolute; width:'+scrollerwidth+'; height:'+scrollerheight+'; clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0); left:0; top:0"')

document.writeln('div id="first2" style="position:absolute; width:'+scrollerwidth+'; left:0; top:1;"')

document.write(messages[0])

document.writeln('/div')

document.writeln('div id="second2" style="position:absolute; width:'+scrollerwidth+'; left:0; top:0; visibility:hidden"')

document.write(messages[1])

document.writeln('/div')

document.writeln('/div')

document.writeln('/span')

}

/script

html滚动文字代码!

文字滚动一般用的是marquee/marquee这个标签哈、标签里面的放的就是你的文字内容、这个标签有下面几个参数、我给你说一下、你可以选几个你用的着的、

direction 表示滚动的方向,值可以是left,right,up,down,默认为left

behavior 表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(来回滚动)

loop 表示循环的次数,值是正整数,默认为无限循环

scrollamount 表示运动速度,值是正整数,默认为6

scrolldelay 表示停顿时间,值是正整数,默认为0,单位是毫秒

valign 表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle

align 表示元素的水平对齐方式,值可以是left,center,right,默认为left

bgcolor 表示运动区域的背景色,值是16进制的RGB颜色,默认为白色

height、width 表示运动区域的高度和宽度,值是正整数(单位是像素)或百分数,默认width=100% height为标签内元素的高度

hspace、vspace 表示元素到区域边界的水平距离和垂直距离,值是正整数,单位是像素。 onmouseover=this.stop() onmouseout=this.start() 表示当鼠标移上区域的时候滚动停止,当鼠标移开的时候又继续滚动。

跪求文字轮播html代码,谢谢

用marquee/标签实现,html代码示例如下

html

head

title文字滚动示例/title

/head

body

    div

        水平滚动:

marquee direction="left" align="bottom" height="25" width="100%" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" scrolldelay="1"水平滚动字幕内容/marquee

/div

div

垂直滚动:

marquee direction="up" height="200" onmouseout="this.start()" onmouseover="this.stop()" scrollAmount="1" scrollDelay="1"垂直滚动字内容/marquee

    /div

/body

/html

文字滚屏代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于滚屏文字个性语言、文字滚屏代码的信息别忘了在本站进行查找喔。

版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;

本文地址:http://www.ahzz.com.cn/post/10106.html


取消回复欢迎 发表评论:

分享到

温馨提示

下载成功了么?或者链接失效了?

联系我们反馈

立即下载