Criando e ocultando um DIV depois de x segundos.
Olá, eu criei uma página de publicidade, porém não fluiu como eu queria, então coloquei essa página em uma DIV, alguém poderia me informar se irá funcionar caso eu faça um sistema para ocultar essa DIV depois de 10 segundos?
<!--- Publicidade ------>
<div id="publicidadediv">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Publicidade</title>
<script src="/templates/GalaxyServers/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/GalaxyServers/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/GalaxyServers/client/js/spacehotel2018.js"></script>
<script src="/templates/GalaxyServers/client/js/flash_detect_min.js"></script>
<script src="/templates/GalaxyServers/client/js/client.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" type="image/png" href="<?= $config["favicon"];?>">
</head>
<body>
<body style="background-color:black;">
<center><img src="https://i.imgur.com/kHdzpqq.png" style="width:396px;height:91px;"></center>
<center><?php
$imagens = array();
$imagens[] = '<a href="https://hobbyhotel.club/hotel?room=255" target="_blank"><img src="https://i.imgur.com/O0gSito.png" style="width:330px;height:250px;"></a>';
$imagens[] = '<a href="https://hobbyhotel.club/hotel?room=255" target="_blank"><img src="https://i.imgur.com/O0gSito.png" style="width:330px;height:250px;"></a>';
$chave = array_rand($imagens);
$imagem = $imagens[$chave];
echo $imagem;
?></center>
<center><img src="https://i.imgur.com/9FH4A5O.png" style="width:396px;height:91px;"></center>
</body>
</div>
<!--- Publicidade ------>
Gostaria de sabem também como faço para ocultar tudo isso após X segundos...Discussão (4)
Carregando comentários...