<table border=0 width=730 cellspacing=2 cellpadding=2><tr><td><img src=images/space.gif width=30 height=1></td><td><img src=images/space.gif width=580 height=1></td></tr><tr><td><b><font color=red>Letzte Meldungen:</font></b></td><td><span id=mtxt> </span></td></tr><?php
$tres = mysql_query("SELECT * FROM nl_tags WHERE var='tags'"); $tgg = mysql_fetch_array($tres); $tags = explode(" ",$tgg[wert]); $tc=0;
echo "<tr><td><b><font color=red>Aktuelle Top-Tags:</font></b></td><td>";
echo "<a href=\"index.php?d=suchen&s=".$tags[0]."\">".$tags[0]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[1]."\">".$tags[1]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[2]."\">".$tags[2]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[3]."\">".$tags[3]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[4]."\">".$tags[4]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[5]."\">".$tags[5]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[6]."\">".$tags[6]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[7]."\">".$tags[7]."</a>, ";
echo "<a href=\"index.php?d=suchen&s=".$tags[8]."\">".$tags[8]."</a>";
?></td></tr></table><br><br>
<script language=javascript><!--
var newslist=new Array();
var cnt=0;
var curr = "";
var i=-1;
<?php
if(!$rando) $rando = rand(); $ntc=0;
$ures = mysql_query("SELECT DISTINCT titel, link, quelle FROM nl_news WHERE titel LIKE '%".$suche."%' OR titel LIKE '%".$suche."%' GROUP BY titel ORDER BY datum DESC, RAND($rando) LIMIT 0,15");
while($uct = mysql_fetch_array($ures)) {
$ttit = preg_replace("/(\w{{70}})/", "\\1 ", $uct[titel]);
$ttit = htmlspecialchars($ttit);
echo "newslist[".$ntc."]=new Array('".str_replace("'","",str_replace(""","\"",str_replace("&","&",$ttit)))."','".$uct[link]."','".$uct[quelle]."')
";
$ntc++;
}
?>
function newsticker() {
if (i < newslist[cnt][0].length - 1) {
i++;
temp1 = newslist[cnt][0];
temp1 = temp1.split('');
curr = curr+temp1[i];
temp2 = newslist[cnt][1];
temp3 = newslist[cnt][2];
mtxt.innerHTML = "<b><a href='"+temp2+"' target=_blank>"+curr+"</a></b> <span class=small>("+temp3+")</span>";
setTimeout('newsticker()',20)
return;
}
i = -1; curr = "";
if (cnt<newslist.length-1)
cnt++;
else
cnt=0;
setTimeout('newsticker()',3000)
}
// --></script>