html frameset中的frame添加背景色

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="YangHui">
  <META NAME="Keywords" CONTENT="YangHui">
  <META NAME="Description" CONTENT="YangHui">
  <SCRIPT LANGUAGE="JavaScript">
  <!--
 function setColor(c){
  var r = Math.floor((Math.random() * 256)).toString(16);
  var g = Math.floor((Math.random() * 256)).toString(16);
  var b = Math.floor((Math.random() * 256)).toString(16);

  var colorString = "#" + r + g + b;
  //c.document.write("<body bgcolor='" + colorString +"'></body>");
  c.document.write("<body bgcolor='#ff00ff' ></body>");
  c.document.close();
  //setTimeout("setColor(" + c.name +")", 1000);//c.setTimeout("parent.setColor(parent."+ c.name +")" , 1000);
 }
  //-->
  </SCRIPT>
 </HEAD>

  <FRAMESET ROWS="33%,34%,33%" COLS="33%,34%,33%" οnlοad="for(var i=0;i<3;i++) setColor(frames[i]);"  border="1" >
 <FRAME SRC="UntitledFrame-13.html" NAME="f1">
 <FRAME SRC="UntitledFrame-14.html" NAME="f2">
 <FRAME SRC="UntitledFrame-15.html" NAME="f3">
 <FRAME SRC="UntitledFrame-34.html" NAME="f4">
 <FRAME SRC="UntitledFrame-35.html" NAME="f5">
 <FRAME SRC="UntitledFrame-36.html" NAME="f6">
 <FRAME SRC="UntitledFrame-37.html" NAME="f7">
 <FRAME SRC="UntitledFrame-38.html" NAME="f8">
 <FRAME SRC="UntitledFrame-39.html" NAME="f9">


  <frame src="UntitledFrame-28"><frame src="UntitledFrame-29"><frame src="UntitledFrame-30"><frame src="UntitledFrame-31"><frame src="UntitledFrame-32"><frame src="UntitledFrame-33"></FRAMESET><noframes></noframes><body>
  </body>
</HTML>

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页