answersLogoWhite

0


Best Answer

Wrote this a few years ago, just paste it in the head or import it from a js file.

pretty self explanatory

<script language="JavaScript">

//Author: fjhdehoog

//Scriptname: Slide in status

var MyStatus='This is an example of how to use javascript to make a scrolling status text';

var start_status=1000; //start in 1 sec

var TBD=100; //Time Btween Digits 1000 = 1 Sec

var LoopIt=1; // 0= dont loop -- 1= loop

var DFSF=10000; //Display full status for 10 Sec /*------------------------------------------*/

setTimeout('ScrollStatus()',start_status); //comment this line out if u want to use body onload or window.onload

CurNum=MyStatus.length;

function ScrollStatus(){

window.status=MyStatus.substring(CurNum);

if (CurNum!=0) {

CurNum--;

setTimeout('ScrollStatus()',TBD); }

else

{

if (LoopIt) {CurNum=MyStatus.length;

setTimeout('ScrollStatus()',DFSF);} else { /*do Nothing*/ } } }

</script>

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

<HTML>

<HEAD>

<TITLE>Scrolling text in a text box </TITLE>

<SCRIPT LANGUAGE="JavaScript">

var scroll=true;

var scrollingText="Favourite Subjects: Web Design,"+"Java. Favourite OS:"+"Windows,Unix,Linux";

function scrollit()

{

if(scroll)

{

document.scrolling.textbox.value=scrollingText;

scrollingText=scrollingText.substring(1)+scrollingText.substring(0,1);

}

setTimeout('scrollit()',100);

}

</SCRIPT>

</HEAD>

<BODY onLoad="scrollit()">

<FORM NAME="scrolling" onSubmit="return false">

<INPUT TYPE="text" NAME="textbox" SIZE="40" VALUE="">

</FORM>

</BODY>

</HTML>

copy an past the above document in the notepad and save it as

scroll.html

run it on any browser

.............

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program for scrolling a text in status bar using JScript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a note on control status registers and program status word?

yar pls koi to answer likkhooo...


What is the program status word and explain it?

This register contains the condition code bits, witch are set by comparison instructions, the CPU priority, the mode (user or kernel), and various other control bits. User programs may normally read the entire Program Status Word but typically may write only some of its fields. The Program Status Word plays an important role in system calls and I/O.


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


How do you write flag status in program?

for example:int flag= 0; /* 0/1 = unset/set */...printf ("flag=%d which means %s\n", flag, flag? "set": "unset");


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


How do you write Square program using vb?

write a vb program to find the magic square


Write a program to multiply 33 matrix.?

write a program to multily 3*3 matrix.


How do you write the father's status in a curriculum vitae when he was die?

You just write 'deceased'.


Write a program to illustrate the usage of pointers with arrarys and functions?

* * * * * * * * * * write the c++ program and show me brifily?


Write a program to create a maze?

this is to write or create


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


Where do we write main function in a c program?

Into the source program.