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

Escrito Em Baixo


Gui

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

Olá!!

Abaixo vai um exemplo de texto na barra de status...

<html>

<head>

<title>Texto na barra de status</title>

</head>

<body>

<script language=JavaScript><!--

    var hellotext="aqui vem o texto"

    var thetext=""

    var started=false

    var step=0

    var times=1

    function welcometext()

    {

      times--

      if (times==0)

      {

        if (started==false)

        {

          started = true;

          window.status = hellotext;

          setTimeout("anim()",1);

        }

        thetext = hellotext;

      }

    }

    function showstatustext(txt)

    {

      thetext = txt;

      setTimeout("welcometext()",4000)

      times++

    }

    function anim()

    {

      step++

      if (step==12) {step=1}

      if (step==1) {window.status='>>----------'+thetext+'----------<<'}

      if (step==2) {window.status='->>---------'+thetext+'---------<<-'}

      if (step==3) {window.status='-->>--------'+thetext+'--------<<--'}

      if (step==4) {window.status='--->>-------'+thetext+'-------<<---'}

      if (step==5) {window.status='---->>------'+thetext+'------<<----'}

      if (step==6) {window.status='----->>-----'+thetext+'-----<<-----'}

      if (step==7) {window.status='------>>----'+thetext+'----<<------'}

      if (step==8) {window.status='------->>---'+thetext+'---<<-------'}

      if (step==9) {window.status='-------->>--'+thetext+'--<<--------'}

    if (step==10) {window.status='--------->>-'+thetext+'-<<---------'}

    if (step==11) {window.status='---------->>'+thetext+'<<----------'}

      setTimeout("anim()",100);

    }

welcometext();

// --></SCRIPT>

</html>

</body>

espero ter ajudado... ;)

Link para o comentário
Compartilhar em outros sites

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,1k
    • Posts
      651,8k
×
×
  • Criar Novo...