var NewsTime = 2000;
var TextTime = 50;
var newsi = 0;
var txti = 0;
var txttimer;
var newstimer;
var newstitle = new Array();
var newshref = new Array();
newstitle[0]="截止今日,深秋小屋为灾区筹集捐款累积总金额为¥17453!";
newshref[0]="http://www.ladyscn.com/bbs/read.php?tid-54532.html";
newstitle[1]="本站第一笔捐款10080元捐助的全程跟踪报道";
newshref[1]="http://www.ladyscn.com/bbs/read.php?tid-54606-toread-1.html";
newstitle[2]="通告:今日14:28分,小屋全体成员为四川死难者默哀三分钟!";
newshref[2]="/bbs/notice.php#146";
newstitle[3]="通告:本站临时开启[小屋抗震救灾专栏]为灾区人民祈福!";
newshref[3]="http://www.ladyscn.com/bbs/thread.php?fid-76.html";
newstitle[4]="有关深秋小屋捐款活动通知";
newshref[4]="http://www.ladyscn.com/bbs/read.php?tid-54532.html";
newstitle[5]="[通告]本站购物街新开通农业银行汇款服务!";
newshref[5]="http://www.ladyscn.com/shop/";
newstitle[6]="[通告]现在起注册小屋需要后台审核通过!";
newshref[6]="/bbs/notice.php#140";
newstitle[7]="★深秋小屋建站8周年庆,送礼行动开始啦!★";
newshref[7]="/bbs/notice.php#139";
newstitle[8]="[通告]申请加入小屋Q群新人须知";
newshref[8]="/bbs/notice.php#136";
newstitle[9]="小屋BBS版块做调整,请各位留意!";
newshref[9]="/bbs/notice.php#135";
//显示公告
function shownews()
{
var endstr = "_"
hwnewstr = newstitle[newsi];
newslink = newshref[newsi];
if(txti==(hwnewstr.length-1)){endstr="";}
if(txti>=hwnewstr.length)
{
clearInterval(txttimer);
clearInterval(newstimer);
newsi++;
if(newsi>=newstitle.length)
{
newsi = 0;
}
newstimer = setInterval("shownews()",NewsTime);
txti = 0;
return;
}
clearInterval(txttimer);
document.getElementById("printWord").href=newslink;
document.getElementById("printWord").innerHTML = hwnewstr.substring(0,txti+1)+endstr;
txti++;
txttimer = setInterval("shownews()",TextTime);
}
shownews();