Iformacja w pasku statusu
wersja 1
Umieść ten kod pomiędzy znacznikami
<Head> </Head>
- <!-- W3e JAVA Script Preset. ScrollText
- function ScrollText(seed)
- {
- var msg = " Gif i Jpeg .....";
- var out = " ";
- var c = 1;
- if (seed > 100)
- {
- seed--;
- var cmd="ScrollText(" + seed + ")";
- timerTwo=window.setTimeout(cmd,100);
- }
- else if (seed <= 100 && seed > 0)
- {
- for (c=0 ; c < seed ; c++)
- {
- out+=" ";
- }
- out+=msg;
- seed--;
- var cmd="ScrollText(" + seed + ")";
- window.status=out;
- timerTwo=window.setTimeout(cmd,100);
- }
- else if (seed <= 0)
- {
- if (-seed < msg.length)
- {
- out+=msg.substring(-seed,msg.length);
- seed--;
- var cmd="ScrollText(" + seed + ")";
- window.status=out;
- timerTwo=window.setTimeout(cmd,100);
- }
- else
- {
- window.status=" ";
- timerTwo=window.setTimeout("ScrollText(100)",75);
- }
- }
- }
- //-->
- </script>
Umieść ten kod w <body tutaj>
OnLoad="timerONE=window.setTimeout('ScrollText(100)',100);"
wygląda to tak <body OnLoad="timerONE=window.setTimeout('ScrollText(100)',100);"> |