Tip, вот сам код <?
<?
echo'<div class="err">';
?>
<link rel="Stylesheet" type="text/css" href="pozna/css.css">
<script src="/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="/pozna/jquery.carouFredSel-6.0.4-packed.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$('#carousel span').append('<img src="pozna/img/gui/carousel_glare.png" class="glare" />');
$('#thumbs a').append('<img src="pozna/img/gui/carousel_glare_small.png" class="glare" />');
$('#carousel').carouFredSel({
responsive: true,
circular: false,
auto: false,
items: {
visible: 1,
width: 200,
height: '56%'
},
scroll: {
fx: 'directscroll'
}
});
$('#thumbs').carouFredSel({
responsive: true,
circular: false,
infinite: false,
auto: false,
prev: '#prev',
next: '#next',
items: {
visible: {
min: 2,
max: 6
},
width: 150,
height: '66%'
}
});
});
</script>
<?
echo'<div id="carousel-wrapper">
<div id="thumbs-wrapper">';
echo'<div style="display: block; text-align: start; float: none; position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: auto; width: 500px; height: 71px; margin: 0px; overflow: hidden;" class="caroufredsel_wrapper">';
echo'<div style="text-align: left; float: none; position: absolute; top: 0px; right: auto; bottom: auto; left: 0px; margin: 0px; width: 5000px; height: 71px; z-index: auto;" id="thumbs">';
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` "
,0);
$q = mysql_query("SELECT * FROM `gallery_foto` ORDER BY `time` DESC LIMIT 24"
;
while ($foto = mysql_fetch_assoc($q))
{
$gallery = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto[id_gallery]' limit 1"
);
$ank = get_user($foto['id_user']);
echo "
<a style='width: 101px; height: 66.66px;' href='/foto/$ank[id]/$gallery[id]/$foto[id]/' title='". text($foto['name'])."'>
<img src='/foto/foto640/$foto[id].$foto[ras]' alt='*' width='75' height='75' id='glare'/></img>
<img src='/pozna/img/gui/carousel_glare_small.png' class='glare'></img>
</a> ";
}
echo"</div>";
echo"</div>";
echo"</div>";
echo'<a class="disabled" style="display: block;" id="prev" href="#"></a>';
echo'<a class="" style="display: block;" id="next" href="#"></a>';
echo"</div>";
echo'<div id="donate-spacer"></div>';
echo'<div id="donate"></div>';
echo"</div>";
?>
?>