本帖最后由 bbaa 于 2017-7-1 23:34 编辑
这是html 不过要用js实现- <iframe id="main" name="main" width="800" scrolling="no" frameborder="0"
- onload="this.height=main.document.body.scrollHeight;this.width=main.document.body.scrollWidth;if(this.height < 410){this.height=410;}" style="display:none;">
- </iframe>
- <script>
- var list=new Array();
- list=["https://www.baidu.com/",
- "http://www.163.com",
- "http://www.xx.com",
- "http://www.8090.com"];
- document.getElementById("main").src=Math.floor(Math.random()*list.length)+1;
- document.getElementById("main").style="display : block;";
- </script>
复制代码
|