Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1062104
  • 博文数量: 254
  • 博客积分: 10185
  • 博客等级: 上将
  • 技术积分: 2722
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-25 15:04
文章存档

2011年(8)

2009年(1)

2008年(31)

2007年(214)

分类: 系统运维

2007-09-11 02:22:54

<p style="margin:5px,5px,5px,5px; ">
<SCRIPT language=JavaScript1.2>
<!-- Begin
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
   }
}
var ctext = "Labour Day clearance sale! Up to 10% off.";
var speed = 2000;
var x = 0;
var color = new initArray(
 "#BD8E00",
 "#ff0000",
 "#0000ff"
);
if(navigator.appName == "Netscape") {
 document.write('

'+ctext+'

');
}
if (navigator.appVersion.indexOf("MSIE") != -1){
 document.write('
'+ctext+'
'
);
}
function chcolor(){
 if(navigator.appName == "Netscape") {
  document.c.document.write('
+color[x]);
  document.c.document.write('">'+ctext+'
'
);
  document.c.document.close();
 }
 else if (navigator.appVersion.indexOf("MSIE") != -1){
  document.all.c.style.color = color[x];
 }
 (x < color.length-1) ? x++ : x = 0;
}
setInterval("chcolor()",1000);
// End -->

</SCRIPT>
</p>

阅读(1123) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~