瑞文打不过蛮子:怎样在网页中做公告拦啊

来源:百度文库 编辑:高考问答 时间:2024/04/29 08:23:11

加上一段代码就可以了,举个例子:
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr>
<td>
<table width="158" border="0">
<tbody>
<tr>
<td class="jnfont6" width="120"><font size="2" color="#915C30">网吧最新消息
>></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table height="5" cellSpacing="0" cellPadding="0" width="92%" border="0">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
<table height="114" cellSpacing="1" cellPadding="0" width="184" align="center" bgColor="#000000" border="0">
<tbody>
<tr bgColor="#ffffff">
<td height="113" width="178"><font size="2" color="#0000FF"><script language="JavaScript1.2">

var marqueewidth=120
var marqueeheight=95
var speed=1
var marqueecontents='<font color="#000000"><font color="#FF0000">网吧最新活动</font><br>  网络游戏《街头篮球大联盟》<br>  最新推出新活动<br>  《劲舞团1.7版》<br>  网吧二楼新推出液晶电脑机器,舒适沙发,2<br>  欢迎大家参与到随后开展的会员办理活动</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></td>
</tr>
</tbody>
</table>
</TD>
<TD width=5><IMG height=5 src=""
width=5></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

建立个表格,格式可以根据自己的设计所定