wyswietlic warstwe przez minute i schowac? no jak to zrobić? :(
0
0
Raczej document.getElementById('id').style.visibility. Nie polecam używać document.all.
0
Adam.Pilorz napisał(a)
Raczej document.getElementById('id').style.visibility. Nie polecam używać document.all.
Ja natomiast polecam
document.getElementById('id').style.display='block' || 'none'; (chociaz nie wiem czemu)
0
<script>
function showLayer() {
window.gblLayer = document.getElementById('my_layer');
gblLayer.style.display = 'block';
setTimeout('gblLayer.style.display = "none"', 1000 * 60);
}
</script>
<style>
#my_layer {
position: absolute;
width: 200px;
height: 100px;
left: 20%;
top: 10%;
padding: 5px;
display: none;
background-color: pink;
color: blue;
font: normal bold 12px tahoma, sans-serif;
}
</style>
<div id="my_layer">Moja warstwa :)</div>
<a href="javascript:void(0)" onclick="showLayer()">Pokaz warstwe</a>