Viewing File: /people/testlab/www/testlab.com.pl/script/banery_przewijane.php
<?
$db = new DBConnect();
if ($_GET['limit']=='') $_GET['limit']=0;
$sql = "select * from `aktualnosci` where skrypt_id=397 order by data asc;";
$db->query($sql);
while ($row=$db->fetchrow()) $images=$images."{title:'Morbi elementum', autor:'Lorem', date:'5 Jun 2007', link:'http://www.link1.com'},";
$images=substr($images,0,-1);
?>
<script type="text/javascript">
window.addEvent('domready',function(){
//SAMPLE 6 (on "mouseenter" walk)
var info6 = $('box6').getNext().setOpacity(0.5);
var sampleObjectItems =[
<?echo $images;?>
];
var hs6 = new noobSlide({
mode: 'vertical',
box: $('box6'),
items: sampleObjectItems,
size: 53,
autoPlay: true,
handles: $ES('div','handles6_1'),
handle_event: 'mouseenter',
buttons: {
previous: $('prev6'),
play: $('play6'),
stop: $('stop6'),
playback: $('playback6'),
next: $('next6')
},
button_event: 'click',
fxOptions: {
duration: 1500,
transition: Fx.Transitions.Back.easeOut,
wait: false
},
onWalk: function(currentItem,currentHandle){
info6.empty();
new Element('h4').setHTML('<a href="'+currentItem.link+'">link</a>'+currentItem.title).inject(info6);
new Element('p').setHTML('<b>Autor</b>: '+currentItem.autor+' <b>Date</b>: '+currentItem.date).inject(info6);
this.handles.setOpacity(0.5);
currentHandle.setOpacity(1);
}
});
//hs6.next();
});
</script>
<!-- SAMPLE 6 -->
<div style='width:390px;border:0px solid red;margin-top:20px;'>
<p class="buttons" style='border:0px solid green;text-align:center'>
<div id="prev6" style='cursor:pointer;background:url(pliki/strz_gora.png) top;height:15px;width:67px;margin:auto;margin-top:2px;'> </div>
<span id="playback6" style='display:none'><Playback</span>
<span id="stop6" style='display:none'> Stop |</span>
<span id="play6" style='display:none'> Play |</span>
</p>
<div class="mask6" style='height:159px;width:390px;display:block'>
<div id="box6">
<?
$sql = "select * from `aktualnosci` where skrypt_id=397 order by data asc;";
$result = $db->query($sql);
while ($row=$db->fetchrow()) echo ' <span style="border:0px solid red;height:53px;"><table cellspacing=0 cellpadding=0 border=0><tr><td><a href="'.$row['link'].'" target=_blank><img src="upload/'.$row['plik'].'.jpg" alt="Photo" style="padding:2px;border:1px solid #aaa;"></a></td><td style="padding-left:10px;"><a href="'.$row['link'].'" target=_blank>'.$row['nazwa'].'</a><br>'.$row['tresc'].'</td></tr></table></span>';
?>
</div>
<div class="info" style='border:1px solid red'></div>
</div>
<div style='margin-top:163px;'>
<div id="next6" style='cursor:pointer;background:url(pliki/strz_dol.png) top;height:16px;width:67px;margin:auto;'> </div>
</div>
<?
$sql = "select * from `aktualnosci` where skrypt_id=397 order by data asc;";
$result = $db->query($sql);
//paginacja ($liczba,$_GET['limit'],10);
echo "<br><div class='thumbs' id='handles6_1' style='display:none'>";
while ($row=$db->fetchrow()) echo ' <div><img src="upload/'.$row['plik'].'.jpg" alt="Photo Thumb"></div>';
?>
</div>
</div>
Back to Directory
File Manager