I have a problem with my site. So, I have a div with adsense like this :
<div class="not-display" id="addsense-pub">
........................................
</div>
In the .js after 2 games I execute the following javascript :
if(obj.number_games_adresse % 2 === 0){
document.getElementById('addsense-pub').setAttribute('class','display-block');
document.getElementById("game").style.visibility = "hidden";
}
The div "game" is the div which contains the game.
Now if I show the adsense-pub and the user refreshes the page, the pub disappears. However I want to show this div if user refreshes the page. Is there an existing solution for this case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…