Pływający text w ramce (fajne miejsce na np.text piosenki)
<script language="javascript">
var mw=140
var mh=100
var sp=1
var text= '<b>Pierwszy news</b><br>Informacja<br><br><b>Drugi news</b><br>Informacja<br><a href="http://www.molesta-ewenement.blog.pl/">molesta-ewenement.blog.pl</a>'
if (document.all)document.write('<marquee direction="up" scrollAmount='+sp+' style="width:'+mw+';height:'+mh+'">'+text+'</marquee>')
function loop()
{
window.location.reload()
}
function loop2()
{
if (document.layers) { setTimeout("window.onresize=loop",350)
init()
}
}
function init()
{
document.marq.document.marqEx.document.write(text)
document.marq.document.marqEx.document.close()
thelength=document.marq.document.marqEx.document.height
runmarq()
}
function runmarq()
{
if (document.marq.document.marqEx.top>=thelength*(-1)) {
document.marq.document.marqEx.top-=sp
setTimeout("runmarq()",100)
}
else
{
document.marq.document.marqEx.top=mh
runmarq()
}
}
window.onload=loop2
< /script>