Kod
<style type="text/css">
#baner {
bottom: 0;
position: fixed;
}
</style>
<script type="text/javascript">
on=1;
function g(){
on=0;
document.getElementById('baner').style.display='none';
}
function f(){
if(document.all&&!window.opera && on==1){
document.all['baner'].style.position='absolute';
document.all['baner'].style.top=parseInt(document.body.scrollTop)+ parseInt(document.body.clientHeight)-document.all['baner'].offsetHeight-5;
}
}
onscroll=f;
onload=f;
</script>
</head>
<body>
<div id="baner"><a href="#" onclick="g()" title="ukryj baner">x</a>
<img src="1.gif">
</div>
#baner {
bottom: 0;
position: fixed;
}
</style>
<script type="text/javascript">
on=1;
function g(){
on=0;
document.getElementById('baner').style.display='none';
}
function f(){
if(document.all&&!window.opera && on==1){
document.all['baner'].style.position='absolute';
document.all['baner'].style.top=parseInt(document.body.scrollTop)+ parseInt(document.body.clientHeight)-document.all['baner'].offsetHeight-5;
}
}
onscroll=f;
onload=f;
</script>
</head>
<body>
<div id="baner"><a href="#" onclick="g()" title="ukryj baner">x</a>
<img src="1.gif">
</div>
Dzięki, któremu mogę umieścić baner, tekst itp ale wyświetla się on w lewym dolnym rogu ekranu. Chcę dodać tło takie jak np. na tej stronie gdy strona karze nam zaakceptować cookies. Fajnie wygląda to przezroczyste tło i tekst na nim. Jak coś takiego osiągnąć?