如何使用单个index.html显示多个html页面 [英] How to display multiple html pages using single index.html

查看:147
本文介绍了如何使用单个index.html显示多个html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个html页面,我想用index.html来显示它们,但我不想使用任何链接按钮或任何东西。我想在一段时间后显示它们。我该怎么做? 试试这个。对于每个单独的HTML页面,您必须放置此代码并将其重定向到下一个html页面。

 < script type =文本/ JavaScript的> 
setTimeout(function(){
window.location.href ='http://www.google.com'
},60000)
< / script>


I have multiple html pages and i want to display them all using a index.html, but i don't want to use any link button or any thing. I want to display them after a time period. How can i do so?

解决方案

Try this . For every individual HTML page you have to put this code and redirect it to the next html page .

<script type="text/javascript">
  setTimeout(function(){
   window.location.href = 'http://www.google.com'
  },60000)
</script>

这篇关于如何使用单个index.html显示多个html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆