[РАБОТНИЧЕК ]

Анимационная кнопка
18.06.2009, 15:02
Анимационная кнопка, в которой выводится ваши сообщения.
-----------------------------------------------------------------
Пример использования скрипта:
   

Free JavaScripts provided
by The JavaScript Source


-----------------------------------------------------------------

<!-- TWO STEPS TO INSTALL BUTTON TEXT V1.0:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://rabotnichek.my1.ru -->
<!-- Original:  Joshua Davison (ozyboy69@hotmail.com) -->
<!-- Web Site:  http://geocities.yahoo.com -->
<!-- Begin
/*
OzyButton! v 1.0
*/
var outMsg = "";
var i = 0;
var lineNo = 1;
var timerDM=null;
var msg = " ";
function araVob() {
}
var ScreenLine = new araVob();

ScreenLine[1]  = "JavaScriptSource is the place!"
ScreenLine[2]  = "All the free JavaScripts you can handle"
ScreenLine[3]  = "You Can also visit"
ScreenLine[4]  = "http://rabotnichek.my1.ru"
ScreenLine[5]  = "Please keep submitting"
ScreenLine[6]  = "Let us know what you think"
ScreenLine[7]  = "Thanks Alot"
ScreenLine[8]  = " Happy Coding!!"


var msgNum = 1;
var msgCnt = 8;
var typeSpeed = 200;
var pageLen = 4;
var delay=typeSpeed;
var r = 0;
var cr="\r\n"
if ("3" <=navigator.appVersion.charAt(0)) {
 var cr="\n"
}
for (x = 1; x<=(msgCnt); x++) {
  ScreenLine[x] = ScreenLine[x] + cr;
}
msg = ScreenLine[1];
function DisplayMsg() {
  if (msg.length <= i || msg.charAt(i) == "\f") {
    r=i;
    i=0;
    ChangeMsg();
  }
  outMsg = outMsg + msg.charAt(i);
  i++;
  if (msg.charAt(i) == "\f" || (lineNo == pageLen && i==msg.length)) {
    delay = 4000; }
  else {
  if (msg.charAt(i) == cr && msg != " "+cr) {
    delay = 2000; }
  else {
    delay = typeSpeed; }
  }
  self.document.forms[0].elements[0].value=outMsg;
  timerDM = setTimeout("DisplayMsg()",delay);
}
function ChangeMsg() {
 msgNum++;
 if (msgCnt < msgNum) {
   msgNum = 1;
 }
 lineNo++;
 if (pageLen < lineNo || msg.charAt(r) == "\f") {
  outMsg=ScreenLine[msgNum].charAt(i);
  i++;
  lineNo = 1;
 }
  msg = ScreenLine[msgNum];
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<FORM NAME= "msgform" ACTION="">
<input type="button" value="Click Here To See" onClick="DisplayMsg()">
    </FORM>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://rabotnichek.my1.ru">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  2.38 KB -->


Категория: Навигация | Добавил: Администратор
Просмотров: 583 | Загрузок: 0 | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]