[Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Typewriter Status Scroller
AdministratorДата: Четверг, 11.11.2010, 17:51 | Сообщение # 1
Генералиссимус
Группа: Администраторы

Сообщений: 82
Награды: 2
Репутация: 0
Offline
После <body>

Code
<SCRIPT>
   <!-- Hide from old browsers

   // All you have to do is put another text in the variable message.
   // Don't forget to break all lines with a ^
   // When you do not place a ^ at the end of all the message, the
   // message will not repeat

   message     = "This is another example of a simple typewriter example^" +
                 "You can enter an unlimited number of lines here^" +
                 "Please, take a look at the code for a more detailed description^" +
                 "Created by Michiel Steendam^" +
                 "This typewriter will repeat now ...^" +
                 "^"
   scrollSpeed = 25
   lineDelay   = 1500

   // Do not change the text below //

   txt         = ""

   function scrollText(pos) {
     if (message.charAt(pos) != '^') {
       txt    = txt + message.charAt(pos)
       status = txt
       pauze  = scrollSpeed
     }
     else {
       pauze = lineDelay
       txt   = ""
       if (pos == message.length-1) pos = -1
     }
     pos++
     setTimeout("scrollText('"+pos+"')",pauze)
   }

   // Unhide -->
scrollText(0)
   </SCRIPT>
 
wingedДата: Понедельник, 15.11.2010, 19:00 | Сообщение # 2
Сержант
Группа: Пользователи

Сообщений: 22
Награды: 1
Репутация: 0
Offline
Надо будет попробовать.

Сообщение отредактировал winged - Понедельник, 15.11.2010, 19:01
 
  • Страница 1 из 1
  • 1
Поиск: