algabatz
asked on
Rotating static text in a <FORM> marquee
I want to be able to rotate a static text in a marquee WITHOUT scrolling. I want one message (from an array) to be shown, say two seconds, then a one second pause and then the second message etc. I've done something like an ordinary banner-rotator but i can't seem to get the text string not to scroll.
I have posted this question before but it seems to have mysteriously disappeared (along with 100 of my points) so here goes again.
Algabatz
ADDITION: What i actually would like to do is a News Ticker in the manner of CNN:s at cnn.com. Either with javaScript (preferred) or in Java. This is how far i have gotten, but i don't want it to scroll, but want one static message at the time (preferrably in choosable colours).
<SCRIPT LANGUAGE = "JavaScript">
<!-- //CLOAKED
ScrollSpeed = 200; // milliseconds between scrolls
ScrollChars = 1; // chars scrolled per time period
function ScrollMarquee() {
// set up the timer for the next scroll increment
window.setTimeout('ScrollM arquee()', ScrollSpeed);
// scroll test by moving beginning chars to the end
var msg = document.scroll.text.value ;
document.scroll.text.value = msg.substring(ScrollChars) +
msg.substring(0,ScrollChar s);
}
// -->
</SCRIPT>
<BODY>
<form name="scroll" >
<INPUT name="text" size="60"
value=". . . . . . . .THE KING IS DEAD. . . . . . . . . . . LONG LIVE THE QUEEN. . . . . . . . . .AND THE MINISTER OF THE INFERIOR. . . . . ."
</form>
</BODY>
Algabatz
I have posted this question before but it seems to have mysteriously disappeared (along with 100 of my points) so here goes again.
Algabatz
ADDITION: What i actually would like to do is a News Ticker in the manner of CNN:s at cnn.com. Either with javaScript (preferred) or in Java. This is how far i have gotten, but i don't want it to scroll, but want one static message at the time (preferrably in choosable colours).
<SCRIPT LANGUAGE = "JavaScript">
<!-- //CLOAKED
ScrollSpeed = 200; // milliseconds between scrolls
ScrollChars = 1; // chars scrolled per time period
function ScrollMarquee() {
// set up the timer for the next scroll increment
window.setTimeout('ScrollM
// scroll test by moving beginning chars to the end
var msg = document.scroll.text.value
document.scroll.text.value
msg.substring(0,ScrollChar
}
// -->
</SCRIPT>
<BODY>
<form name="scroll" >
<INPUT name="text" size="60"
value=". . . . . . . .THE KING IS DEAD. . . . . . . . . . . LONG LIVE THE QUEEN. . . . . . . . . .AND THE MINISTER OF THE INFERIOR. . . . . ."
</form>
</BODY>
Algabatz
Are you talking about an IE <marquee> tag or just a status bar marquee? I am not sure about how to control an IE <marquee>.
ASKER
Edited text of question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
There's still one problem, i need the European letters å ä and ö also in capitals. ä doesn't seem to work inside the script, any ideas?