Hi Leutz... folgender fall.
Habe eine php-datei diashow.php
diese gebe ich aus in die datei diashow.htm
Bei der Quellcode abfrage aus dem Browser bekomme ich folgendes:
Wenn ich dann meinen Diashow starten link betätige, passiert garnix.
Weiß einer rat?
MFG deschmiddi
Habe eine php-datei diashow.php
PHP-Code:
$root_dir = "ext_inc/picgallery";
$folder = $_GET["file"];
$folder;
$dia_list = array();
$dh = opendir($root_dir. $folder);
while($file = readdir($dh)) {
if (($file != ".") and
($file != "..") and
($file != "CVS") and
($file != "prev")and
($file != "thumb")and
($file != "ext_inc")) {
$extension = strtolower(substr($file, strrpos($file, ".") + 1, 4));
if (($extension == "jpeg") or ($extension == "jpg") or
($extension == "png")) {
array_push($dia_list, $file);
}
}
closedir($dh);
$anz = count($dia_list);
$templ["anz"] = $anz;
$templ["dia"] = $dia_list;
echo "<html>";
echo "<head>";
echo "<script type=\"text/javascript\">";
echo "var dia = new array();";
$i = 0;
foreach($dia_list as $dia) {
echo "dia[".$i."] = \"ext_inc/picgallery".$folder.$dia."\";";
$i++;
}
//
// Output HTML
//
$index = $dsp->FetchModTpl("picgallery","diashow");
$func->templ_output($index);
PHP-Code:
var z = 0;
function wechsle() {
document.image.src = dia[z];
z += 1;
if (z == $templ[anz]) z = 0;
settimeout("wechsle()", 9000);
}
</script>
<link rel="STYLESHEET" href="design/{default_design}/style.css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" onLoad="wechsle()">
<table height="550" width="600" cellspacing="0" cellpadding="2"
background="design/{default_design}/images/diashow_bg.gif">
<tr>
<td>
<table with="640" align="center" cellspacing="0" cellpadding="0">
<tr>
<td height="60" valign="top"> </td>
</tr>
<tr>
<td valign="top"><img src="design/r_c_05/images/pool_logo.jpg"></td>
</tr>
<tr>
<td>
<a href="javascript:wechsle()">Diashow starten</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
PHP-Code:
<html>
<head>
<script type="text/javascript">
var dia = new array();
dia[0] = "ext_inc/picgallery/malle_palma/malle_palma (8).jpg";
dia[1] = "ext_inc/picgallery/malle_palma/malle_palma (9).jpg";
dia[2] = "ext_inc/picgallery/malle_palma/malle_palma (10).jpg";
.
.
.
var z = 0;
function wechsle() {
document.image.src = dia[z];
z += 1;
if (z == 167) z = 0;
settimeout("wechsle()", 9000);
}
</script>
<link rel="STYLESHEET" href="design/r_c_05/style.css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" onLoad="wechsle()">
<table height="550" width="600" cellspacing="0" cellpadding="2"
background="design/r_c_05/images/diashow_bg.gif">
<tr>
<td>
<table with="640" align="center" cellspacing="0" cellpadding="0">
<tr>
<td height="60" valign="top"> </td>
</tr>
<tr>
<td valign="top"><img src="design/r_c_05/images/pool_logo.jpg"></td>
</tr>
<tr>
<td><a href="javascript:wechsle()">Diashow starten</a> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Weiß einer rat?
MFG deschmiddi
Kommentar