I have one DIV within another, but my main DIV does not work the link if I put inside it a DIV with a link to close.
CSS:
#guaraparivirtualsuperpopup {
position:relative;
width:1215px;
height:500px;
background-color:#000000;
/* background-image:url(http://www.guaraparivirtual.com.br/Lay_Out/dr-bruno.jpg);
background-repeat:no-repeat;
background-position:50% 50%;
*/
margin: 0 auto;
border: 1px solid #EA8419;
}
#guaraparivirtualsuperpopupbtn {
width:100px;
height:36px;
background-image:url(http://www.guaraparivirtual.com.br/img-novo/fechar.png);
background-repeat:no-repeat;
float:right;
position: relative;
}
JavaScript
<script type="text/javascript">
function superpopgv(guaraparivirtualsuperpopup) {
if(document.getElementById(guaraparivirtualsuperpopup).style.display=="none") {
document.getElementById(guaraparivirtualsuperpopup).style.display = "inline";
}
else {
document.getElementById(guaraparivirtualsuperpopup).style.display = "none";
}
}
</script>
DIV's
<a href="<?php echo $linkbannerrt; ?>" target="_blank" title="Super Pop-Up" / >
<div id="guaraparivirtualsuperpopup" style="background-image:url(superpopup/<?php echo $rt; ?>);">
<a href="#" onclick="javascript: superpopgv('guaraparivirtualsuperpopup');" />
<div id="guaraparivirtualsuperpopupbtn"></div>
</a>
</div>
</a>
Your self placed this link
<a href="#" onclick="javascript: superpopgv('guaraparivirtualsuperpopup');" />
The link below does not work
<a href="<?php echo $linkbannerrt; ?>" target="_blank" title="Super Pop-Up" / >
How do you solve it?