I think he wants a .js wot makes text scroll.
I'm mostly guessing, though.
Code:
<!doctype html public "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<title>Status Bar</title>
<script type="text/javascript" language="JavaScript">
window.status = "Something's supposed to happen here.";
var scrolltext = "";
var del1 = "";
var del2 = "";
var timerID;
var raknare = 0;
var scrollstatus = false;
function scrolla()
{
if (scrollstatus)
{
scrolltext = document.Formular.nyText.value;
del1 = scrolltext.substring(raknare, scrolltext.length) + " ";
del2 = scrolltext.substring(0, raknare);
window.status = del1 + del2;
(raknare < 0) ? raknare = scrolltext.length : raknare--;
timerID = setTimeout("scrolla()", 100);
}
}
function startaScroll()
{
scrollstatus = true;
scrolla();
}
function stoppaScroll()
{
clearTimeout(timerID);
scrollstatus = false;
}
</script>
</head>
<body bgcolor="white">
<form action="#" name="Formular">
<input type="button" onclick="startaScroll();" value="Faster faster!">
<input type="text" name="nyText" size="100" value="Write some text you'd like to move, here. ">
<input type="button" onclick="stoppaScroll();" value="Stop">
</form>
</body>
</html>
Here's some old thing I wrote to scroll text in the status bar.
Probably won't run in FF with default settings as FF tends to block that kind of thing, run it in ie to test it or stick the text in an input field, it should be easy enough.
And no, I won't translate the variable names and that to english.
here's how to do it in the other direction:
Code:
function scrolla()
{
if (scrollstatus)
{
scrolltext = document.Formular.nyText.value;
del1 = scrolltext.substring(raknare, scrolltext.length) + " ";
del2 = scrolltext.substring(0, raknare);
window.status = del1 + del2;
(raknare > scrolltext.length) ? raknare = 0 : raknare++;
timerID = setTimeout("scrolla()", 100);
}
}
In case the logic seems dodgy to you.
EDit: or just use those crap marquee-tags, though they are a bit shit and not supported by the w3c-standard.
Bookmarks