Файл: inc/slider.php
Строк: 74
<div id="s5_top_container">
<div id="s5_top_1" align="center" style="width:100%">
<div class="module_round_box">
<div>
<div>
<div>
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
effect:'random', //Specify sets like: 'fold,fade,sliceDown'
slices:15,
animSpeed:500, //Slide transition speed
pauseTime:6000,
startSlide:0, //Set starting Slide (0 index)
directionNav:true, //Next & Prev
directionNavHide:true, //Only show on hover
controlNav:false, //1,2,3...
controlNavThumbs:false, //Use thumbnails for Control Nav
controlNavThumbsFromRel:false, //Use image rel for thumbs
controlNavThumbsSearch: '.jpg', //Replace this with...
controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
keyboardNav:true, //Use left & right arrows
pauseOnHover:true, //Stop animation while hovering
manualAdvance:false, //Force manual transitions
captionOpacity:0.8, //Universal caption opacity
beforeChange: function(){},
afterChange: function(){},
slideshowEnd: function(){}, //Triggers after all slides have been shown
lastSlide: function(){}, //Triggers when last slide is shown
afterLoad: function(){} //Triggers when slider has loaded
});
});
</script>
<div id="slider" class="nivoSlider">
<?
$tabla = mysql_query("SELECT * FROM ".$db_pref."slider ORDER BY sort ASC");
while ($registro = mysql_fetch_array($tabla)) {
?>
<img src="<?=$registro['img'];?>" alt="" <?if($registro['text']!==""){?>title="#htmlcaption<?=$registro['id'];?>"<?}?>/>
<?}?>
</div>
<?
$tabla = mysql_query("SELECT * FROM ".$db_pref."slider ORDER BY sort ASC");
while ($registro = mysql_fetch_array($tabla)) {
?>
<?if($registro['text']!==""){?> <div id="htmlcaption<?=$registro['id'];?>" class="nivo-html-caption"><?=$registro['text'];?></div><?}?>
<?}?>
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</div>
</div>
</div>
</div>
</div>
<div style="clear:both"></div>
</div>