Pivot Kingdom
Welcome to the forums, please look around and read the rules.

member permissions:
access to chat box
pivot portal access
post in the forum
Pivot Kingdom
Welcome to the forums, please look around and read the rules.

member permissions:
access to chat box
pivot portal access
post in the forum
Pivot Kingdom
Would you like to react to this message? Create an account in a few clicks or log in to continue.


We'll defend, till the end!
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  Pivot Portal  
Notice
scrolling text with JavaScript and forms Announcment

 

 Slide Text Code

Go down 
AuthorMessage
Nate
Admin
Admin
Nate


Posts : 159
Join date : 2010-01-11

Slide Text Code Empty
PostSubject: Slide Text Code   Slide Text Code I_icon_minitimeSun Feb 07, 2010 10:50 pm

Slide Text Code, brought to you by Nate:

Code:
<center>
 <head>
  <title>Nate's Sliding Text</title>
  <script>

message = "Change this to anything you want. ";
initial_delay = 0;
scroll_delay = 75;
max_indent = 50;

function scroll ()
{
    message =  message . substring (1, message . length)
              + message . substring (0, 1);
    document . scrollbox_form . scrollbox . value = message;
    window . setTimeout ("scroll ()", scroll_delay);
}

function start_scroll ()
{
    for (var i = 1; i <= max_indent; i ++)
        message = " " + message;
    scrollbox = document . scrollbox_form . scrollbox;
    window . setTimeout ("scroll ()", initial_delay);
}

  </script>
 </head>
 <body onLoad="start_scroll ();">
  Coded by Nate
  <form name=scrollbox_form>
  <input type=text name=scrollbox size=25>
  </form>
</center>
 </body>
Back to top Go down
 
Slide Text Code
Back to top 
Page 1 of 1
 Similar topics
-
» Apply to help code Pivot Kingdom

Permissions in this forum:You cannot reply to topics in this forum
Pivot Kingdom :: Other :: Coding-
Jump to: