Jump to content
  • 0

фотогалерея


macbeth9
 Share

Question

Здравствуйте я установил на сайт фотогалерею jQuery LightBox все нормально кроме одного, фотографии идут списком вниз а мне нужно сделать по строчкам и в каждой строчке должно быть по три фото.Помогите плиз не знаю что делать.Сайт http://tori-jazz.ru/shenki.php

вот код

<?php 
include ("blocks/db.php");/*База данных*/
$result = mysql_query ("SELECT title,meta_d,meta_k,text FROM settings WHERE page='shenki'",$db);
$myrow = mysql_fetch_array($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title><?php echo $myrow['title']; ?></title>
<script type="text/javascript" src="js/jquery-1.2.6.js"></script>
<script type="text/javascript" src="js/jquery.lightbox.js"></script>
<link rel="stylesheet" type="text/css" href="lightbox.css" />
<link href="style.css" rel="stylesheet" type="text/css">
<meta name="description" content="<?php echo $myrow['meta_d']; ?>">
<meta name="keywords" content="<?php echo $myrow['meta_k']; ?>">
</head>
<body class="body">
<table width="960" border="0" align="center" class="main_border" cellpadding="0" cellspacing="0">
<!--Шапка сайта-->
<?php include("blocks/header.php"); ?>
<tr class="background">
<td><table width="960" border="0" cellspacing="0" cellpadding="0">
<tr>
<!--Левый блок-->
<?php include("blocks/left.php"); ?>
<td align="center" valign="middle=" class="font"><ul>
<li> <a href="Images/shenki/12.jpg" rel="lightbox-tour" title="1-я"> <img src="Images/shenki/m/12.jpg" /> </a></li>
<li> <a href="Images/shenki/33.jpg" rel="lightbox-tour" title="2-я"> <img src="Images/shenki/m/33.jpg" /> </a></li>
<li> <a href="Images/shenki/039.jpg" rel="lightbox-tour" title="3-я"> <img src="Images/shenki/m/039.jpg" /> </a></li>
<li> <a href="Images/shenki/58.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/58.jpg" /> </a></li>
<li> <a href="Images/shenki/086.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/086.jpg" /> </a></li>
<li> <a href="Images/shenki/99.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/99.jpg" /> </a></li>
<li> <a href="Images/shenki/100.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/100.jpg" /> </a></li>
<li> <a href="Images/shenki/104.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/104.jpg" /> </a></li>
<li> <a href="Images/shenki/108.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/108.jpg" /> </a></li>
<li> <a href="Images/shenki/114.jpg" rel="lightbox-tour" title="4-я"> <img src="Images/shenki/m/114.jpg" /> </a></li>
</ul>
<script type="text/javascript">
$(document).ready(function(){
$("#gallery a").lightbox();
$.Lightbox.construct({
"speed": 500,
"show_linkback": false,
"keys": {
close: "q",
prev: "z",
next: "x"
},
"opacity": 0.3,
text: {
image: "Картинка",
of: "из",
close: "Закрыть",
closeInfo: "Завершить просмотр можно, кликнув мышью вне картинки.",
help: {
close: "Закрыть",
},

},
files: {
images: {
prev: "Images/prev.gif",
next: "Images/next.gif",
blank: "Images/blank.gif",
loading: "Images/loading.gif"
}
}
});
});
</script></td>
</tr>
</table></td>
</tr>
<!--Нижний блок-->
<?php include("blocks/footer.php"); ?>
</table>
</body>
</html>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy