搜索
首页 电脑/网络 互联网

怎么添加网页的文字自动滚动效果

全部回答

2008-11-20

0 0

不知道你要的是什么方向滚动的效果? 竖向滚动: 文字 横向滚动: 文字

2008-11-20

246 0

    你好! 将你搜集到的滚动新闻代码添加到博客介绍中就可以了。 1、登录博客后,选择“参数设置”标签。 2、在新界面中,输入滚动新闻代码即可。 3、滚动新闻代码: 新浪的 : 1、登录博客后,选择“模板设置”标签。
   2、选择模板标签下的”模板DIV“或者下面的当前选择的模板中的”首页“进入模板样式设计。   3、加入滚动条代码即可。 4、滚动条代码如下(可加在样式表最后): /*====最新评论滚动条====*/ #remark。
  operation ul{   height:300px;   overflow: auto; scrollbar-face-color : threedhighlight;   width: 195px;   text-align: left;   margin: 0px 0px 0px 5px;   padding: 0;   } /*====在线留言滚动条====*/ 。
    guestBook ul{   height:310px;   overflow: auto; scrollbar-face-color : threedhighlight;   width: 195px;   text-align: left;   margin:0px 0px 0px 5px;  padding: 0;   } /*====最新文章滚动条====*/ #newWeblog。
    operation ul{   height:140px;   overflow: auto; scrollbar-face-color : threedhighlight;   width: 195px;   text-align: left;   margin: 0px 0px 0px 5px;   padding: 0; } 提示:宽度width、高度height可自行调整,滚动条颜色设置如下: SCROLLBAR-FACE-COLOR: #FFFFFF; //滚动条凸出部分的颜色 SCROLLBAR-HIGHLIGHT-COLOR: #FF0000;//滚动条空白部分的颜色 SCROLLBAR-SHADOW-COLOR: #FFFF00;//立体滚动条阴影的颜色 SCROLLBAR-3DLIGHT-COLOR: #FF00FF;//滚动条亮边的颜色 SCROLLBAR-ARROW-COLOR: #0000FF;//上下按钮上三角箭头的颜色 SCROLLBAR-TRACK-COLOR: #00FF00//滚动条的背景颜色 SCROLLBAR-DARKSHADOW-COLOR: #000000;//滚动条强阴影的颜色 SCROLLBAR-BASE-COLOR: #FEFEFE;//滚动条的基本颜色 博客标题不断变化代码 代码为: var message="your blog tittle!" //specifys the title var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1。
    5seconds。 i="0" //declares the variable and sets it to start at 0 var temptitle="" //declares the variable and sets it to have no value yet。
     var speed="150" //the delay in milliseconds between letters function titler(){ if (! l&&! tElementById) return document。
  title=temptitle+ arAt(i) //sets the initial title temptitle=temptitle+ arAt(i) //increases the title by one letter i++ //increments the counter if(i==message。
    length) //determines the end of the message { i="0" //resets the counter at the end of the message temptitle="" //resets the title to a blank value } setTimeout("titler()",speed) //Restarts。
     Remove line for no-repeat。 } window。onload=titler 新浪博客空间美化代码 。

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
互联网
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
反病毒
软件
互联网
互联网
QQ
上网帮助
网站推荐
举报
举报原因(必选):
取消确定举报