JavaScript判断页面是第一次访问,还是刷新访问!
<script>
var firstLogin = {$firstLogin};
var visits = {$visits};
if(firstLogin == 1 && visits == 1){
if(!window.name){
window.name = 'flashIndex';
$('html,body').css({'width': '100%','height':'100%','overflow':'hidden'});
}else{
$('.window').css('display','none');
}
}else{
$('.window').css('display','none');
}
</script>