Autor Beitrag
csigg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 13.07.05 08:27 
kann mir jemand sagen wie eine laufschrift auf einer Website funktioniert, Script-sprache fast egal.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 13.07.05 09:28 
habs mit javaScript gelöst.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 14.07.05 13:40 
Wäre nett, wenn du mal sagen würdest, wie du es gelöst hast, damit andere auch was von dem Thread haben... :shock: :shock:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Do 14.07.05 13:49 
Schau doch in Google nach, da findet man sowas massenweise!

Suche bei Google JAVASCRIPT+LAUFSCHRIFT :wink:

MfG, ScorpionKing!

_________________
Aus dem Urlaub zurück!
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Do 14.07.05 14:54 
Also ich habs bei mir jetzt mit <marquee> gemacht, weil ichj mit dem javaScript in meinem PHP probleme hatte. Da war über meinem PHP Gästebuch immer eine PHP Fehlermeldung mit Error on line.....
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Do 14.07.05 14:58 
user profile iconcsigg hat folgendes geschrieben:
Also ich habs bei mir jetzt mit <marquee> gemacht, weil ichj mit dem javaScript in meinem PHP probleme hatte. Da war über meinem PHP Gästebuch immer eine PHP Fehlermeldung mit Error on line.....


Dann poste doch mal den Source!

_________________
Aus dem Urlaub zurück!
Alni
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 205

Win 2000, XP, SuSe, Debian
D5 Prof, D7 Prof, Kylix
BeitragVerfasst: Do 14.07.05 23:47 
hmm <marquee> verstehen zwar praktisch alle aktuellen Browser, ist aber nicht Bestandteil einer HTML/XHTML-Spezifikation. Gibt es dazu nicht noch eine standardkonforme Lösung?

_________________
MfG Alex
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Fr 15.07.05 00:06 
Da wie ich soeben testete selbst Firefox marquee versteht, dürfte der Befehl von ca. 95% Aller User gesehen werden.

Ich habe einen JS-Ticker im Internet gfeunden, ist aber keine Laufschrift, trotzdem ganz schön:

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
<body  onload="newsticker();">
<Span Id="mtxt" > </Span> 
<! -- script for news ticker -- !>
<script language="JavaScript">

<!-- Begin
// news ticker function
var newslist=new Array();
var cnt=0;      // current news item
var curr = "";
var i=-1;      // current letter being typed

newslist[0]=new Array("Check out the share check javascript","t_sharecheck.html")
newslist[1]=new Array("Use this javascript to create your own fruit machine","t_fruity.html")
newslist[2]=new Array("Create a To Do list with this script","t_todolist.html")
newslist[3]=new Array("Use this script to register users on your site","t_register.html")
newslist[4]=new Array("This script tells your users the last time they visited your site","t_greetings.html")

function newsticker()
{
  // next character of current item
  if (i < newslist[cnt][0].length - 1)
  {
    i++;
    temp1 = newslist[cnt][0];  
    temp1 = temp1.split('');  
      curr = curr+temp1[i];
    temp2 = newslist[cnt][1];  
      mtxt.innerHTML = "<small><a href='"+temp2+"'><font color='#ff0000'>"+curr+"_</small></font></a>";
      setTimeout('newsticker()',10)
    return;
  }

  // new item
  i = -1; curr = "";
  if (cnt<newslist.length-1)
    cnt++;
  else
    cnt=0;
  setTimeout('newsticker()',3000)

}

    //  End -->

</script>


Zum Thema JavaScript / PHP: ich empfehle dir eine Administartions-Page mit PHP zu erstellen, welche dan automatisch die JS-Seite mit den "Ticker-News" generiert. Dann brauchst du kein FTP um deine Webssite aktuell zu halten.
Mit PHP selbst ist natürlich kein Ticker möglich.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 15.07.05 00:39 
user profile iconTilman hat folgendes geschrieben:
Ich habe einen JS-Ticker im Internet gfeunden,
Dann wird der Autor sich sicherlich freuen, wenn Du die Quelle angibst ;-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Fr 15.07.05 00:58 
user profile iconChristian S. hat folgendes geschrieben:
user profile iconTilman hat folgendes geschrieben:
Ich habe einen JS-Ticker im Internet gfeunden,
Dann wird der Autor sich sicherlich freuen, wenn Du die Quelle angibst ;-)

Jepp, und sorry, in leicht abgeänderter Form habe ich den von
klick.link-m.de/webd...ript_news-ticker.htm
entnommen.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.07.05 07:47 
Das war genau der den ich auch drin hatte.
hab dann einach über den tag </head> in meiner Header-Datei (PHP) das javascript eingefügt, das onload im body-tag und dann noch in der entsprechenden Tabellen-zeile das span.....
und dann kam bei meinem Gästebuch das Problem mit dem Fehler wie oben.
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Fr 15.07.05 08:06 
user profile iconcsigg hat folgendes geschrieben:
Das war genau der den ich auch drin hatte.
hab dann einach über den tag </head> in meiner Header-Datei (PHP) das javascript eingefügt, das onload im body-tag und dann noch in der entsprechenden Tabellen-zeile das span.....
und dann kam bei meinem Gästebuch das Problem mit dem Fehler wie oben.


Poste doch bitte mal deinen PHP-Code. Am JavaScript kanns nicht gelegen haben, damit hat PHP nix zu schaffen. Ich vermute du hast einen fehler mit den Anführungsstrichen oder so gemacht.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.07.05 08:52 
An dem könnte es liegen, komm aber leider erst heut mittag dazu