我希望观看者在访问我的网站之前看到免责声明页面,我只希望该页面显示用户第一次访问我的网站。 示例:当您访问https://www.toontownrewritten.com/时,它会出现一个页面,即#34;免责声明" 如果你点击确定并再次访问该网站,它就不再存在了。请帮忙! 这是我的index.html
的代码<!DOCTYPE html>
<head>
<link rel="stylesheet" href="stylesheet.css">
<title>Toontown Classic</title>
<meta name='description' content='Official website of Toontown Classic.'/>
<meta name='keywords' content='toontown, toontown online, toontown infinite, toontown classic, classic, ttr, tti, '/>
<link rel="icon" type="image/ico" href="favicon.ico">
</head>
<body>
<div id="content-wrapper">
<div id="background">
<img src="blue.jpg" class="stretch" alt="" />
</div>
<div align = "center">
<img src = "TT_Logo.png">
</div>
<div align = "center">
<p><div style="width:900px;height:60px;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;background-color:white; opacity:0.52;"></div></p>
</div>
<div align = "center">
<p><div style="width:900px;height:900px;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;background-color:white; opacity:0.52;"></div></p>
</div>
<div class="nav-container">
<div class="nav">
<a href="/"><div id="menu-item-1" class="menu-item">Home</div></a>
<a href="/play.html"><div id="menu-item-2" class="menu-item">Play</div></a>
<a href="/login.html"><div id="menu-item-3" class="menu-item">Login</div></a>
<a href="/news.html"><div id="menu-item-4" class="menu-item">News</div></a>
<a href="/help.html"><div id="menu-item-5" class="menu-item">Help</div></a>
</div>
</div>
<div id="DateAndBy">
<div align = "center">
<p><strong>"News"</strong></p>
<p><h6>Posted by Sir Biscuit on November/16/2014</h6></p>
</div>
</div>
<div id="NewsPosts">
<p>Ever wanted to see the earlier posts of Toontown Classic? Well now you can!
Head over to the News portion of the site, you will be able to see <em>every</em> single
update ever!</p>
</div>
</body>
答案 0 :(得分:0)
您使用什么语言/技术来构建您的网站?如果它只是纯HTML,那么它可能不太现实。
而且像Ethernal说的那样,使用cookie。仅在通过接受免责声明创建cookie时重定向用户。或者您可以修改索引页面后面的代码以检查cookie的存在和到期,如果不存在则转换为免责声明内容。