[原创]⼀个公告栏的源码(利⽤marquee作的)
<SCRIPT language=JavaScript>
<!--
//
var version = "other";
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";function marquee1(){ if (version ==
"e4") {  document.write("<marquee behavior=scroll direction=up  height=220 scrollamount=1 scrolldelay=60 onmouseover='this.stop()' onmouseout='this.start()'>") }}function marquee2(){ if (version == "e4") {  document.write("
</marquee>") }}
//-->
</SCRIPT> <SCRIPT language=JavaScript>marquee1();</SCRIPT>
<script language=JavaScript>
var arr =new Array();
arr[0]="经法学院古昕同学获中央电视台CCTV杯英语演讲⼤赛天津赛区⼀等奖";
arr[1]="经法学院祖斌同学代表我校学⽣参加‘相聚⾦秋’第三届海峡两岸⼤学⽣⽂化交流活动";
marquee marquee
document.write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
for (var i=0;i<arr.length;i++)
document.write('<tr><td><img align="absmiddle" src="images/square1.gif" width="15" height="14">'+arr[i]+'</td></tr>'); document.write('</table>');
</script>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。