<script type="text/javascript" language="javascript">
var i='0';
var index = 0;
function marqueeA(suchbegriff)
{
laenge = 0;
marquee1.value = "";
index = 0;
marquee(suchbegriff);
}
function marquee(suchbegriff)
{
laenge = suchbegriff.length;
laenge = laenge;
buchstaben = marquee1.value;
if (buchstaben.length < laenge)
{
var showString = '0';
showString = suchbegriff;
var stringLength= showString.length;
marquee1.rows = laenge / 25+1;
marquee1.value= marquee1.value + showString.charAt(index);
index++;
}
var timeID= setTimeout("marquee(suchbegriff)",100);
if (index >= stringLength)
{
clearTimeout(timeID);
index=-1;
}
}
</script>
<?php
$pfad = $_SERVER['DOCUMENT_ROOT'];
$pfad = $pfad . "/path/file.php";
include ($pfad);
$datenbanktabelle = 'sprueche';
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$datenzugriff =mysqli_connect($server, $user, $pass, $datenbank, 3306);
$suchergebnis = array();
$alles = mysqli_query($datenzugriff, "SELECT zaehler FROM $datenbanktabelle");
$eintragsanzahl = mysqli_num_rows($alles);
$randvar = rand(0, $eintragsanzahl-1);
$suchergebnis = mysqli_query($datenzugriff, "SELECT * FROM $datenbanktabelle WHERE zaehler like '$randvar'");
$suchbegriff = mysqli_fetch_array($suchergebnis);
mysqli_close($datenzugriff);
$suchbegriff[1] = utf8_encode($suchbegriff[1]);
print ("<script language='JavaScript' type='text/JavaScript'> var suchbegriff = '" . $suchbegriff[1] . "'; marqueeA(suchbegriff); </script>");
?>
{source}<?php
include JPATH_SITE.'/path/file.php';
?>{/source}