返回列表 发帖

[转帖]最简单的个人主页制作

向上滚动公告板HTML代码

<DIV align=center> </DIV></TD></TR></TBODY></TABLE></TD></TR></TABLE>

<TABLE height=5 cellSpacing=0 cellPadding=0 width="100%" border=0>

<TBODY>

<TR>

<TD></TD></TR></TBODY></TABLE>

<TABLE height=97 cellSpacing=1 cellPadding=0 width="92%" align=center bgColor=#000000 border=0>

<TBODY>

<TR bgColor=#ffffff>

<TD height=96><FONT color=#ccccff>&nbsp;

<SCRIPT language=JavaScript1.2>

var marqueewidth=160

var marqueeheight=95

var speed=1

var marqueecontents='<font color="#000000"> &nbsp;.........................<br>&nbsp;&nbsp; 欢迎光临高家堰镇卫生院网站!<br>&nbsp.........................<br>&nbsp 热烈庆祝我院门诊住院部综合楼动工新建!<br>&nbsp.........................<br>&nbsp; 我们庄严宣誓:面对召唤,责无旁贷;面对危险,决不退缩;面对困难,勇往直前。我们愿以血肉之躯,筑起一道“救死扶伤”的钢铁长城,夺取这场抗击“非典”战斗的全面胜利!&nbsp;<br>&nbsp.........................<br>&nbsp</font>'

if (document.all)

document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

function regenerate(){

window.location.reload()

}

function regenerate2(){

if (document.layers){

setTimeout("window.onresize=regenerate",450)

intializemarquee()

}

}

function intializemarquee(){

document.cmarquee01.document.cmarquee02.document.write(marqueecontents)

document.cmarquee01.document.cmarquee02.document.close()

thelength=document.cmarquee01.document.cmarquee02.document.height

scrollit()

}

function scrollit(){

if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){

document.cmarquee01.document.cmarquee02.top-=speed

setTimeout("scrollit()",100)

}

else{

document.cmarquee01.document.cmarquee02.top=marqueeheight

scrollit()

}

}

window.onload=regenerate2

</SCRIPT>

</FONT><FONT color=#ccccff>&nbsp; </FONT><FONT color=#ccccff>&nbsp; </FONT><FONT color=#ccccff>&nbsp; </FONT><FONT color=#ccccff>&nbsp; </FONT></TD></TR></TBODY></TABLE></TR></TBODY></TABLE></TR></TBODY></TABLE></TR></TBODY></TABLE>

TOP

返回列表