Hoi ik ben al een tijdje bezig met dit probleem

ik heb hier onder 2 pagina's die heel simpel foto's laat laden uit een map.


nu ben ik aan het stoeien om in deze link
<echo " <a href='indexview.php?$dir=$file' target='_blank'><img src=' $dir/".$file."' width='100' height='75' STYLE='border: solid 1px black;'></a>" ;


een popup te maken
maar hoe doe je dat
ik krijg alleen maar fout meldingen.

Het script werkt nu wel alleen wat ik nu nog wil is
dat ie in een popup opent maar dan zonder de werk knoppen van windows


hier onder het script
alvast bedankt om dit te lezen
graag een reactie (ook kan het niet ofzo ?)

index.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

</head>

<body>

</body>
</html>
<SCRIPT>
      <!--

      if (window.Event) // Only Netscape will have the CAPITAL E.
      document.captureEvents(Event.MOUSEUP); // catch the mouse up event

      function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
      {
       event.cancelBubble = true
       event.returnValue = false;

       return false;
      }

      function norightclick(e) // This function is used by all others
      {
      if (window.Event) // again, IE or NAV?
      {
      if (e.which == 2 || e.which == 3)
      return false;
      }
      else
      if (event.button == 2 || event.button == 3)
      {
      event.cancelBubble = true
      event.returnValue = false;
      return false;
      }

      }

      document.oncontextmenu = nocontextmenu;  // for IE5+
      document.onmousedown = norightclick;  // for all others
      //-->
      </SCRIPT>
	  <script language="JavaScript">

<!--
function keypressed ()  { alert ("Toetsenbord is uitgeschakeld");}

document.onkeydown=keypressed;
-->

</script>




<?php
$dir = 'eindfeest'; // de directory die hij uit moet lezen
$extarray = array ("jpg","gif","png"); // de extensie die hij weer moet geven

if ($handle = opendir($dir)) 
{
    while (false !== ($file = readdir($handle))) 
    { 
        $bestand = $dir ."/". $file ;
        $ext = pathinfo($bestand);
        

        foreach ($extarray as $waarde)
        {
        
                
                if(strtolower($ext['extension']) == $waarde)
                {
                    <echo " <a href='indexview.php?$dir=$file' target='_blank'><img src=' $dir/".$file."' width='100' height='75' STYLE='border: solid 1px black;'></a>" ;
                }
        }
    }
    closedir($handle); 
}
?> 


indexview.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
</head>


</body>
</html>

<SCRIPT>
      <!--

      if (window.Event) // Only Netscape will have the CAPITAL E.
      document.captureEvents(Event.MOUSEUP); // catch the mouse up event

      function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
      {
       event.cancelBubble = true
       event.returnValue = false;

       return false;
      }

      function norightclick(e) // This function is used by all others
      {
      if (window.Event) // again, IE or NAV?
      {
      if (e.which == 2 || e.which == 3)
      return false;
      }
      else
      if (event.button == 2 || event.button == 3)
      {
      event.cancelBubble = true
      event.returnValue = false;
      return false;
      }

      }

      document.oncontextmenu = nocontextmenu;  // for IE5+
      document.onmousedown = norightclick;  // for all others
      //-->
      </SCRIPT>
	  <script language="JavaScript">

<!--
function keypressed ()  { alert ("Toetsenbord is uitgeschakeld");}

document.onkeydown=keypressed;
-->

</script>

<?php

// hier je dir aanpassen.
$dir = './eindfeest/';


if (!$_GET['eindfeest']) 
{
	die('Er is geen foto naam opgegeven om te laden.');
}

$foto = strip_tags($_GET['eindfeest']);

if (!file_exists($dir.$foto))
{
	die('Foto kon niet gevonden worden');
} 

echo"
<center>
  <img src='".$dir.$foto."' alt='www.1.nl'>
</center>
";


?> 

<?php
echo " <a href='indexview.php?".$dir."=".$file."' target='_blank'><img src=' ".$dir."/".$file."' width='100' height='75' STYLE='border: solid 1px black;'></a>" ;

echo ' <a href="indexview.php?'.$dir.'='.$file.' target="_blank"><img src="'.$dir.'/'.$file.'" width="100" height="75" STYLE="border: solid 1px black;"></a>' ;

In eerste instante had je de variabelen in uw html echo staan.
En als je uw php gedeelte tussen enkele quotes zet moet je uw html dubbele quotes niet escapen en dat leest werkt gemakkelijker
Dat vroeg ik niet sorry

kan je me wel helpen met het probleem

dankje

iemand anders mag ook :-)
<?php
echo 'window.open("indexview.php?'.$dir.'='.$file.'","Hallo","status=1")';
?>

Wel een onclick eromheen, en als je slim bent ook de hoogte/breedte.
onclick er om heen.


sorry ik ben nog beginnend kan je me er mee helpen om hem voldige neer te zetten ???

Reageren