如何做出游动字幕(从左至多流动的)?

来源:百度知道 编辑:UC知道 时间:2024/06/12 06:01:14
如何才能做出象电视下方常出现的游动字幕(从左至多流动的)?
如何能把它放在屏幕的一侧(上侧或下侧),而不耽误正常的工作?
对不起,打错了,应该是“从右至左流动的”
不知各位用没用过“不知不觉背单词”这款软件,我说得这个意思和那款软件差不多,
就是有一个长条形的框框,然后字幕在那里流动,我这里还可以利用电脑干别的工作,
两不耽误~~

在FRONT PAGE里面有滚动字幕选项,只要选择滚动方式和字体等信息,直接就可以加入了。然后在HTML代码页里面复制代码,放到你想用的网页制作软件的代码页中然后按F12就可以看见效果了。

试试下面这段代码,它能在屏幕的下侧产生你想要的游动字幕.

<script language="JavaScript1.1">

function moving(welcome){

str='<div style="position:absolute;height:17;top:expression(document.body.clientHeight-this.style.pixelHeight+document.body.scrollTop);" align="center">';
str=str+'<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgColor="#AAFF00">';
str=str+' <tr><td align="center" valign="top" width="100%">';
str=str+'<marquee behavior="loop" scrollDelay="100" scrollAmount="3" onmouseout=this.start() onmouseover=this.stop() style="font-size: 9pt; line-height:12pt;color:red">';

str=str+welcome+'&l