新浪博客添加滚动公告栏
时间:2007年03月06日
内容来源: 互诺科技
浏览量:0
第一种:(把里面的中文改成你要写的内容即可,多加几个document.write就可以多些内容,相应的减少document.write就可以少写内容)
第二种:
程序代码
<table border="1" bordercolor="#000000" bgcolor="#6699ff" cellpadding="5" cellspacing="0">
<tr>
<td>
<SCRIPT language=javascript>
document.write ("<marquee scrollamount='1' scrolldelay='30' direction= 'UP' width='200' id='helpor_net' height='150' onmouseover='helpor_net.stop()' onmouseout='helpor_net.start()' Author:redriver; For more,visit:www.helpor.net>")
document.write ("<h2><p align='center'><font color='#ffffff' face='黑体'>公告</font></h2>")
document.write ("<p align='right'><a href='http://www.admin5.com/article/20070306/#' target='_blank'><font color='#ffffff'>与非门</font></a> ")
document.write ("<p><font color='#ffffff' >")
document.write ("<br>欢迎光临子夜吟歌个人博客")
document.write ("<br>有什么事可以给我的QQ留言")
document.write ("<br>我最近还开通了自己的播客节目")
document.write ("<br>在新浪网上 ")
document.write ("<br>你可以点击下面的连接进入")
document.write ("<br>谢谢大家提出宝贵意见!")
document.write ("</font>")
document.write ("</marquee> ")
</SCRIPT>
</td>
</tr>
</table>
<tr>
<td>
<SCRIPT language=javascript>
document.write ("<marquee scrollamount='1' scrolldelay='30' direction= 'UP' width='200' id='helpor_net' height='150' onmouseover='helpor_net.stop()' onmouseout='helpor_net.start()' Author:redriver; For more,visit:www.helpor.net>")
document.write ("<h2><p align='center'><font color='#ffffff' face='黑体'>公告</font></h2>")
document.write ("<p align='right'><a href='http://www.admin5.com/article/20070306/#' target='_blank'><font color='#ffffff'>与非门</font></a> ")
document.write ("<p><font color='#ffffff' >")
document.write ("<br>欢迎光临子夜吟歌个人博客")
document.write ("<br>有什么事可以给我的QQ留言")
document.write ("<br>我最近还开通了自己的播客节目")
document.write ("<br>在新浪网上 ")
document.write ("<br>你可以点击下面的连接进入")
document.write ("<br>谢谢大家提出宝贵意见!")
document.write ("</font>")
document.write ("</marquee> ")
</SCRIPT>
</td>
</tr>
</table>
第二种:
程序代码
<script language="javascript">
var msg = "你要显示的文字,如:欢迎来到子夜吟歌张晋东工作室,请多提意见。谢谢! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Helpor_net() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Helpor_net();", interval );
}
else
window.setTimeout("Helpor_net();", interval );
}
Helpor_net();
</script>
var msg = "你要显示的文字,如:欢迎来到子夜吟歌张晋东工作室,请多提意见。谢谢! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Helpor_net() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Helpor_net();", interval );
}
else
window.setTimeout("Helpor_net();", interval );
}
Helpor_net();
</script>