By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

banner

P: n/a
Hello,
I ve tried with following source code to create a banner with changing
statements. But after the first changing it doesn't work. I think it
is a little bit too long winded as well.
var...
function lauf()
{
a = a + 1;
c = c - 1;
message= "++NEUES"
leerzeichen=" ";

for( b= 120; b>= 0; b--)
{
leerzeichen=leerzeichen+" ";
}
message=leerzeichen+message;
zeichenlaenge=message.length;

message_ausgabe = message.substring(a ,zeichenlaenge);
window.status=message_ausgabe;
if (c < 10)
{
message=" ";
a=0;
laufschrift();
}
if(a>=zeichenlaenge)
{
a=0;
}

window.setTimeout('lauf()',400)
}

function laufschrift()
{

message= "+++was++++"
space=" ";
a = a + 1;
c = c + 1;

for( b= 120; b>= 0; b--)
{
space=space+" ";
}
message=space+message;
zeichenlaenge=message.length;

message_ausgabe = message.substring(a ,zeichenlaenge);
window.status = message_ausgabe;
if(c == 50)
{
message="";
a=0;
lauf();
}
if(a>=zeichenlaenge)
{
a=0;
}
window.setTimeout('laufschrift()', 90)
}

Maybe someone has a straight solution.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
BjoernJackschina wrote:
I ve tried with following source code to create a banner with changing
statements.


http://www.kommdesign.de/galerie/inhalte/ticker.htm
HTH

PointedEars
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.