Good afternoon!
Well I'm trying to byclick to make the banner disappear when I click on it, but I'm not getting it! My code:
<div id="mime">
<iframe style="border:none; overflow:hidden; width:605px; height:250px; float:left;" frameborder="0" scrolling="No" src="http://migre.me/pWQGp"></iframe></div><script>vardiv=document.getElementById('mime');div.style.display='none';//Mostraadivapós1minutosetTimeout(function(){div.style.display='block';},60000);</script>
I'vetried:
<divid="mime">
<iframe style="border:none; overflow:hidden; width:605px; height:250px; float:left;" frameborder="0" scrolling="No" src="http://migre.me/pWQGp"onClick="OcultarDiv();" style="cursor: pointer;"></iframe>
</div>
<script>
var div = document.getElementById('mime');
div.style.display = 'none';
// Mostra a div após 1 minuto
setTimeout(function () {
div.style.display = 'block';
}, 1);
function OcultarDiv(){ // função ocultar
div.style.display = "none";
}
</script>
I've tried several other codes, but I have no results! Please help me ! (I'm a beginner in javascript, I know almost nothing, but I'm learning!)