Danke für Deine Schnelle Antwort - es geht um javascript
Also, das auslesen der Headlines mach ich mit php so:
<?php
require("hwtickers.confic.php");
phpkittable();
//Laufband Anfang:
echo "<tr><td colspan="2">
<div align="center"><font face="Arial" size="10" color="#000000">
<marquee bgcolor="#ffffff" width="100%" height="18" align="middle" scrollamount="5">
";
// Ausgabe der Datensätze :::::::::::::::::::::::::::::::::::::::::::::::::::::
$getnews=mysql_query("SELECT * FROM $tab_content WHERE content_option = $nid AND content_status = 1 ORDER by content_time DESC limit 0, $nlimit",$db_link);
while ($ticker= mysql_fetch_array($getnews)) {
$date=date("d.m.Y", $ticker[content_time]);
echo "<font size="10" face="Arial" color="#000000">
$date
</font><font size="10" face="Arial" color="#000000">
<a class=nav target="_blank" href="$tickersurl/include.php?<?php
require("hwtickers.confic.php");
phpkittable();
//Laufband Anfang:
echo "<tr><td colspan="2">
<div align="center"><font face="Arial" size="10" color="#000000">
<marquee bgcolor="#ffffff" width="100%" height="18" align="middle" scrollamount="5">
";
// Ausgabe der Datensätze :::::::::::::::::::::::::::::::::::::::::::::::::::::
$getnews=mysql_query("SELECT * FROM $tab_content WHERE content_option = $nid AND content_status = 1 ORDER by content_time DESC limit 0, $nlimit",$db_link);
while ($ticker= mysql_fetch_array($getnews)) {
$date=date("d.m.Y", $ticker[content_time]);
echo "<font size="10" face="Arial" color="#000000">
$date
</font><font size="10" face="Arial" color="#000000">
<a class=nav target="_blank" href="$tickersurl/include.php?path=content/content.php&contentid=".$ticker[content_id]."">
$ticker[content_title]</a>
</font>
* ";
}
echo "</font></div></td></tr>";
?>
das ergibt dann 5 headlines hintereinander. Die möchte ich jetzt als netten scrooler ausgeben lassem mit Javascript. Also nicht nur eine, sondern mehrere. Geht das auch so? kannst Du mir ein beispiel auf grund meines Codes zeigen?
Danke: Andy
|