Krótki tutorial jak dodać latającą reklamę na swoje forum.
Wchodzimy do APC :wyglad: Wygląd [skin] Szablony globalTemplate.
Odnajdujemy:
<div id='header'>
Dodajemy pod:
<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="url reklamy" 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>
Zapisujemy i gotowe!
Przewijając stronę scrollem reklama zjeżdża w dół.
Tutorial wykonał Arthas dla forum invisionize.pl, kopiowanie treści bez zgody autora zabronione.