[原创]一个公告栏的源码(利用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]="经法学院祖斌同学代表我校学生参加‘相聚金秋’第三届海峡两岸大学生文化交流活动";
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>
posted @ 2005-08-15 14:50  PointNet  阅读(1927)  评论(3编辑  收藏  举报