<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="fade.js" language="Javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="javaScript">
<!--
function newwin(wname,hoehe,breite)
{
window.open(wname,"preWin","status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,width="+brei te+",height="+hoehe+");
}
//-->
</script>
<body>
<?php
$path[] = "bilder/sil03/"; // Pfad zu den Bildern #1
$path[] = "bilder/";
$files=array();
foreach($path as $v){
$dp = opendir($v);
while(($file=readdir($dp))!==false){
if(is_file($v.$file) AND preg_match("/.*(jpeg|jpg|gif|png)$/i",$v.$file)){
$files[]=$v.$file;
}
}
fclose($dp);
}
$key=array_rand($files);
printf('<a href ="javascript:newwin(%s,600,900)" target=_blank><img src="%s" width="100" height="75" alt="zufallsbild" /></a>',$files[$key], $files[$key]);
?>
</body>
</html>
was müsste ich denn ändern damit das sich ein fenster öffnet wenn ich das bild anklicke
<html>
<head>
<script src="fade.js" language="Javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="javaScript">
<!--
function newwin(wname,hoehe,breite)
{
window.open(wname,"preWin","status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,width="+brei te+",height="+hoehe+");
}
//-->
</script>
<body>
<?php
$path[] = "bilder/sil03/"; // Pfad zu den Bildern #1
$path[] = "bilder/";
$files=array();
foreach($path as $v){
$dp = opendir($v);
while(($file=readdir($dp))!==false){
if(is_file($v.$file) AND preg_match("/.*(jpeg|jpg|gif|png)$/i",$v.$file)){
$files[]=$v.$file;
}
}
fclose($dp);
}
$key=array_rand($files);
printf('<a href ="javascript:newwin(%s,600,900)" target=_blank><img src="%s" width="100" height="75" alt="zufallsbild" /></a>',$files[$key], $files[$key]);
?>
</body>
</html>
was müsste ich denn ändern damit das sich ein fenster öffnet wenn ich das bild anklicke
Kommentar