Ir para conteúdo
Fórum Script Brasil
  • 0

Cor no Script


Añd®é™

Pergunta

Gente eu gostaria de novamente pedir uma ajuda a vocês. Tenho o seguinte Ticker

<div class="ticki"><a class="tickl" id="tickerAnchor" 
            href="http://vassourasurgente.50webs.com/ticker_arquivos" 
            target=_top></a></div>
            <script language="JavaScript" type="text/javascript">
<!--
// Ticker startup
function startTicker()
{
    // Define run time values
    theCurrentStory     = -1;
    theCurrentLength    = 0;
    // Locate base objects
    if (document.getElementById) {    
            theAnchorObject     = document.getElementById("tickerAnchor");
            runTheTicker();       
         }
    else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
    }
}
// Ticker main run loop
function runTheTicker()
{
    var myTimeout;  
    // Go for the next story data block
    if(theCurrentLength == 0)
    {
        theCurrentStory++;
        theCurrentStory      = theCurrentStory % theItemCount;
        theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"');        
        theTargetLink        = theSiteLinks[theCurrentStory];
        theAnchorObject.href = theTargetLink;
        thePrefix          = "<span class=\"tickls\">" + theLeadString + "</span>";
    }
    // Stuff the current ticker text into the anchor
    theAnchorObject.innerHTML = thePrefix + 
    theStorySummary.substring(0,theCurrentLength) + whatWidget();
    // Modify the length for the substring and define the timer
    if(theCurrentLength != theStorySummary.length)
    {
        theCurrentLength++;
        myTimeout = theCharacterTimeout;
    }
    else
    {
        theCurrentLength = 0;
        myTimeout = theStoryTimeout;
    }
    // Call up the next cycle of the ticker
    setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
    if(theCurrentLength == theStorySummary.length)
    {
        return theWidgetNone;
    }

    if((theCurrentLength % 2) == 1)
    {
        return theWidgetOne;
    }
    else
    {
        return theWidgetTwo;
    }
}
// -->
</script>

            <script language="JavaScript" type="text/javascript">
    <!--

    var theCharacterTimeout = 50;
    var theStoryTimeout     = 5000;
    var theWidgetOne        = "_";
    var theWidgetTwo        = "-";
    var theWidgetNone       = "";
    var theLeadString       = "Aviso:&nbsp;";

    var theSummaries = new Array();
    var theSiteLinks = new Array();

    var theItemCount = 4;

    
        theSummaries[0] = "O Vassouras Urgente tornou a sair na frente e agora já tem seu espaço de mensagens na internet, para você relatar o que lhe for mais propicio e como quiser.";
        theSiteLinks[0] = "/2/hi/europe/7643612.stm";
    
        theSummaries[1] = "Uma nova maneira de poder soltar a lingua e falar o que realmente pensa a respeito de alguma coisa em especial. ";
        theSiteLinks[1] = "/2/hi/asia-pacific/7645523.stm";
    
        theSummaries[2] = "O local não podia ter outro nome, Lingua Solta.";
        theSiteLinks[2] = "/2/hi/americas/7645524.stm";
    
        theSummaries[3] = "O seu espaço de falar o que pensa, a hora que auiser quando quiser e aonde quiser.";
        theSiteLinks[3] = "/2/hi/south_asia/7645368.stm";
    

    startTicker();
    
    //-->
    </script>
E não estou conseguindo mexer nele não, Ele ate funciona, mais azul com uma linha embaixo apontando para um link que não existe e cai na pagina de erro do host que não tem nada haver. Para funcionar tem que ter esse codigo em uma pasta no host ou no pc, se não não vai funcionar. Ele funciona como esta no rodapé dessa pagina----> www.vassourasurgente.com/politica/
BODY {
    BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: #000; PADDING-TOP: 0px; FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif,"MS sans serif"; BORDER-RIGHT-WIDTH: 0px
}
.tickls {
    FONT-WEIGHT: bold; COLOR: #ca1f25
}
.tickh {
    DISPLAY: none
}
.ticki {
    HEIGHT: 24px
}
A.tickl {
    FONT-SIZE: 0.8em; COLOR: #1f527b; TEXT-DECORATION: none
}
A.tickl:hover {
    COLOR: #0d3059; TEXT-DECORATION: none
}

Obs: Terá que por esse codigo em um documento de folha de estilos em cascata dentro da pasta.

Se alguém souber como resolver favor me dar um auxilio!!!

Forte Abraço a Todos!!!!!

Editado por Añd®é™
Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...