在顶层frameset中添加onload事件处理函数,在这个函数中指定
  <frameset  onload="javascript:init();" >
  </frameset>
function init(){
//在这里指定各个frame的src属性
}