-2
我想在我的網站頭部出現第一個用戶進入網站的標題。 HTML結構如下:如何只加載一次jquery
<div class="mobilebanner">
<div class="mobilebanner-container">
<div class="left-box">
<div class="image">
<img src="<?php bloginfo('template_url'); ?> /images/sample.jpg" alt="">
</div>
<div class="text">
<h4>The New Yorker Today</h4>
<p>Conde Nast Digital</p>
<div class="review-stars">
<p>starts willlbe here</p>
</div>
<p>GET - On the App Store</p>
</div>
</div>
<div class="right-box">
<div class="view">
<a href="www.gmail.com">View</a>
</div>
</div>
</div>
</div>
當我點擊圖像上,旗幟必須消失,如果用戶在24小時後訪問該網站只再次顯示。
希望有人能幫助我實現從my pen here
在此先感謝。
您需要的localStorage /餅乾,沒有jQuery的 – mehulmpt
@Mehul磨憨。真的不知道要這樣做。你能幫我嗎? –
這是你的JS嗎? – user7417866