文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>点击 刷新iframe 窗口

点击 刷新iframe 窗口

时间:2008-09-03  来源:Digico


script language="JavaScript">
function selectFrom(iFirstValue,iLastValue){
    var iChoces = Math.abs(iLastValue - iFirstValue) + 1;
    return Math.floor(Math.random() * iChoces + iFirstValue);
}
var iNum = selectFrom(1,100);
  function doSearch(){
     var iNum = selectFrom(1,100);
     parent.iframe1.location="http://digico.cublog.cn/stpage/"+iNum+".html";
     //点击后的刷新
  }
/script>
a onclick="doSearch();">刷新/a>
  
iframe name="iframe1" src="http://digico.cublog.cn/stpage/1.html" scrolling='no' frameborder='0' allowtransparency='true' width=118% height=180>/iframe>
script language="javascript">
document.frames[0].location.href="http://digico.cublog.cn/stpage/"+iNum+".html";
//页面正常刷新后,赋于iframe src 的值
  /script>



相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载