当前位置:编程学习 > C#/ASP.NET >>

marquee问题!

marquee做的滚动文字?能不能改变文字字体,颜色,大小嗯?
如果可以,要怎么改? --------------------编程问答-------------------- 不可以。
改变字体要用js脚本来实现。 --------------------编程问答-------------------- 用个div或者span包括文字。然后给它css行不?然后放在marquee里面 --------------------编程问答-------------------- 用Flash做好后再放入marquee行不?? --------------------编程问答-------------------- 我想改变字体和颜色在页面滚动时,好看点!!!  谁有想法。。做法。。。告诉一下 谢谢!!! --------------------编程问答-------------------- 我找到方法了。。。用FORM来改变
<marquee align=left direction=left behavior=scroll height=10 width=1300 hspace=1 scrollamount=2 scrolldelay=1 vspace=1 loop=-1><font color=red>滚动字幕内容第一行
</font></marquee> 
--------------------编程问答-------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
</head>
<body>
<div id="ads_1" style="width:473px;">
<marquee direction="right" scrolldelay="200">你好</marquee>
</div>
<script type="text/javascript">
var CurrentIndex = 1;
function show()
{
   CurrentIndex++;
   if(CurrentIndex>2)
    CurrentIndex=1;
   for(var i =1 ;i < 2;i++)
   {
     if(CurrentIndex==i)
       document.getElementById("ads_1").style.color="red";
     else
       document.getElementById("ads_1").style.color="blue";
   }
}
setInterval("show()",1000);
</script>
</body>
</html> --------------------编程问答--------------------
引用 5 楼 hqdlove 的回复:
我找到方法了。。。用FORM来改变
<marquee align=left direction=left behavior=scroll height=10 width=1300 hspace=1 scrollamount=2 scrolldelay=1 vspace=1 loop=-1><font color=red>滚动字幕内容第一行
</font></marquee>

这叫改变吗?貌似只是红色噢。 --------------------编程问答-------------------- 引用 5 楼 hqdlove 的回复:
我找到方法了。。。用FORM来改变
<marquee align=left direction=left behavior=scroll height=10 width=1300 hspace=1 scrollamount=2 scrolldelay=1 vspace=1 loop=-1><font color=red>滚动字幕内容第一行
</font></marquee>


这叫改变吗?貌似只是红色噢。


你要其他颜色。。就把RED改掉呗!!!只是字体好像该不了。。只改变颜色、、、 --------------------编程问答-------------------- marquee做的滚动文字?能不能改变文字字体,颜色,大小嗯?
如果可以,要怎么改?

我还是以为是要随着滚动而改变颜色 字体呢,

 这样要写好多js代码 --------------------编程问答--------------------
引用 8 楼 hqdlove 的回复:
引用 5 楼 hqdlove 的回复:
我找到方法了。。。用FORM来改变
<marquee align=left direction=left behavior=scroll height=10 width=1300 hspace=1 scrollamount=2 scrolldelay=1 vspace=1 loop=-1><font color=red>滚动字幕内容第一行
</font……


那是改变颜色吗?不是始终一种颜色,我的那个是滚动的过程中,变换颜色啊。
其他的字体,类似。
补充:.NET技术 ,  非技术区
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,