MyBB Community Forums

Full Version: Sidebox modifications - marquee
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all.
its possible to pute some text with marquee on the down box of sidebox?
If yes How?
Hi have this code marquee
<html>
<body>
<SCRIPT language=JavaScript1.2>

var marqueewidth=220  // largura
var marqueeheight=200  // altura
var speed=2 // velocidade

var marqueecontents='<P ALIGN="left">'
marqueecontents=marqueecontents+'<font face=verdana size=1 color=#000080>'

marqueecontents=marqueecontents+'NOTICIAS DE ATUALIZAÇÃO DO SITE:<br><br><br>'

marqueecontents=marqueecontents+'<font face=verdana size=1 color=#000000>'

marqueecontents=marqueecontents+'» 99/99/9999 => www.codigofonte.com.br, o seu site de codigo fonte. Não perca tempo, cadastre-se já.<br><br><br>'

marqueecontents=marqueecontents+'» 99/99/9999 => O melhor site de codigo fonte está aqui. <a href="http://www.codigofonte.com.br">codigofonte</a><br><br><br>'

marqueecontents=marqueecontents+'» 99/99/9999 => Tudo o que você procura está aqui.<br><br><br>'

marqueecontents=marqueecontents+'</font>'

if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

function regenerate()
{
    window.location.reload()
}

function regenerate2()
{
    if (document.layers)
    {
        setTimeout("window.onresize=regenerate",450)
        intializemarquee()
    }
}

function intializemarquee()
{
    document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
    document.cmarquee01.document.cmarquee02.document.close()
    thelength=document.cmarquee01.document.cmarquee02.document.height
    scrollit()
}

function scrollit()
{
    if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
        document.cmarquee01.document.cmarquee02.top-=speed
    setTimeout("scrollit()",100)
}
    else
    {
    document.cmarquee01.document.cmarquee02.top=marqueeheight
    scrollit()
    }
}
window.onload=regenerate2

      </SCRIPT>
</body>
</html> 
anyone, Is possible?
In what sidebox? In portal? Do you have a sidebox plugin? Javascript can be entered directly into the templates.
(2008-10-03, 01:00 AM)labrocca Wrote: [ -> ]In what sidebox? In portal? Do you have a sidebox plugin? Javascript can be entered directly into the templates.
Yes, I have the plugin instaled,
www.pt-forum.com/forum
But I can't put the rool text in marquee to work