Viewing File: /people/testlab/www/testlab.com.pl/script/sbanery.php
<?
$db = new DBConnect();
if ($_GET['limit']=='') $_GET['limit']=0;
$sql = "select * from `aktualnosci` where skrypt_id=670 order by data asc;";
$db->query($sql);
while ($row=$db->fetchrow()) $images=$images."{title:'".$row['nazwa']."', autor:'admin', date:'', link:''},";
$images=substr($images,0,-1);
?>
<script type="text/javascript">
window.addEvent('domready',function(){
//SAMPLE 6 (on "mouseenter" walk)
var info6 = $('box62').getNext().setOpacity(0.5);
var sampleObjectItems =[
<?echo $images;?>
];
var hs6 = new noobSlide({
mode: 'vertical',
box: $('box62'),
items: sampleObjectItems,
size: 264,
autoPlay: true,
handles: $ES('div','handles6_2'),
handle_event: 'click',
buttons: {
previous: $('prev62'),
play: $('play62'),
stop: $('stop62'),
playback: $('playback62'),
next: $('next62')
},
button_event: 'click',
fxOptions: {
duration: 1500,
transition: Fx.Transitions.Back.easeOut,
wait: false
},
onWalk: function(currentItem,currentHandle){
info6.empty();
new Element('p').setHTML(''+currentItem.autor+' '+currentItem.date).inject(info6);
new Element('p').setHTML('').inject(info6);
this.handles.setOpacity(0.5);
currentHandle.setOpacity(1);
}
});
//hs6.next();
});
</script>
<!-- SAMPLE 6 -->
<div style='width:618px;border:0px solid red;margin-top:128px;margin-left:35px;position:absolute'>
<div class="buttons">
<div id="prev62" > </div>
<div id="next62" > </div>
<span id="playback62" ><Playback</span>
<span id="stop62" > Stop |</span>
<span id="play62" > Play |</span>
</div>
<div class="mask62">
<div id="box62">
<?
$sql = "select * from `aktualnosci` where skrypt_id=670 order by data asc;";
$result = $db->query($sql);
while ($row=$db->fetchrow())
{
echo ' <span>';
if ($row['link']!='') echo '<a href="'.$row['link'].'" target='.$row['opcje'].'>';
echo '<img src="upload/'.$row['plik'].'.jpg" alt="'.$row['opis'].'">';
if ($row['link']!='') echo '</a>';
echo '</span>';
}
?>
</div>
<div class=info></div>
</div>
<?
$sql = "select * from `aktualnosci` where skrypt_id=670 order by data asc;";
$result = $db->query($sql);
//paginacja ($liczba,$_GET['limit'],10);
echo "<div class='thumbs' id='handles6_2' >";
while ($row=$db->fetchrow())
{
$x++;
echo ' <div>'.$x.'</div>';
}
?>
</div>
</div>
Back to Directory
File Manager