0
Well, I’m going to put ADS on one of my pages, and it’s going to be at the top of the centered page. And I wanted the person entering the page to show the ads, and would have a close (X) function, and after 5 minutes to open again, and so on, every 5 minutes to open the ADS.
I have that code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Efeitos com jQuery</title>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#ocultar").click(function(event){
event.preventDefault();
$("#capaefectos").hide("slow");
});
$("#mostrar").click(function(event){
event.preventDefault();
$("#capaefectos").show(1000);
});
});
</script>
<style>
body {
background: black;
}
</style>
</head>
<body>
<center>
<div id="capaefectos" style="background-color: #cc7700; color:fff; padding:10px;width: 800px;height: 100px;border-radius: 10px;">
<p>Camada de Efeitos</p>
<p> </p>
<p>Aqui você pode colocar o qualquer coisa!</p>
</div>
<p>
<a href="#" id="ocultar">Ocultar a camada</a> |
<a href="#" id="mostrar">Mostrar a camada</a>
</p>
</center>
</body>
</html>
But I didn’t want it to appear that hide layer and show layer, I wanted it to appear an "X" on the right of the ads and that it opens every 5 minutes.
Already have some code? HTML or Javascript?
– Sergio
I still don’t have.
– Piu
Paulo, to be without HTML or JS this question is very wide because you can do it in many different ways. It does the HTML part and puts here the code and which div has the ads. So it is more objective the question and we can help with the JS part.
– Sergio