Witam wracam do tego tematu:
<div id="pop_up" style="position: absolute; left: 0; border: solid 1px #000000;background-color: #000; color: #fff; text-align: right; font: 11px, sans-serif; cursor: pointer;">
<span title="Kliknij aby zamknąć" onclick="document.getElementById('pop_up').style.display='none'">[Zamknij]<br />
<img src="/img/jakis.jpg" alt="text"/>
</span>
</div>
<script type="text/javascript">
(function(element,el_left,D){
D=document
el_left=((D.body.clientWidth||D.documentElement.clientWidth)-500)/2 /* "500" - szerokosc img */
el_top=210 /* "210" - margin-top */
with(D.getElementById('pop_up').style){
top=el_top+'px'
left=el_left+'px'
}
el_left_start=el_top_start=0
})()
function el_move(ydiff){
with(document){
ydiff=el_top_start-(body.scrollTop||documentElement.scrollTop)
if(ydiff)el_top_start-=~~(ydiff/10)
getElementById('pop_up').style.top=el_top_start+el_top+'px'
}
}
elmove=setInterval("el_move()",10)
</script>
O to ten kodzik
i teraz chce zrobic aby ta reklama wyskakiwała tylko gościom na forum
lub
losowo co której odświerzenie
Czy może ktoś przerobić ten kodzik?