hallo,
will mittels javascript ein fenster öffnen,
leider klappts in php nicht.
vielleicht kann mir ja wer helfen:
so sieht die version in html aus:
	
-
funktion fürs öffnen:
	
und dann noch die anweisung:
	
							
						
					will mittels javascript ein fenster öffnen,
leider klappts in php nicht.
vielleicht kann mir ja wer helfen:
so sieht die version in html aus:
PHP Code:
	
	
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#" onClick="MM_openBrWindow('loki.jpg','','width=300,height=300')"><img src="loki.jpg" width="100" height="80" border="0"></a>
<p> </p>
</body>
</html> 
-
funktion fürs öffnen:
PHP Code:
	
	
    function displayHeader( $title = "" )
        {
            global $ADVT_NAME, $PAGE_BG_COLOR, $PAGE_BG_IMAGE;
            echo "\n<html>\n";
            echo "<head>\n";
            echo "<title>$title</title>\n";
            echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n";
             echo "    <script language=\"JavaScript\">\n";
         echo "    function MM_openBrWindow(theURL,winName,features) { //v2.0\n";
         echo "     window.open(theURL,winName,features);\n";
         echo "     </script>\n";
        #}
    ?> 
PHP Code:
	
	
<a href=\"#\" onClick=\"MM_openBrWindow('$bildname[0]','','width=300,height=300'\")><img src=\"$IMAGE_DIR/thumb/$bildname[0]\"      border=\"0\" alt=\"Vergrössern\" vspace=\"5\" hspace=\"10\"></a><br>"; 
 
          

 
  
							
						
Comment