我有一个很好的工作滑块,但告诉我如何运行循环自动滚动jQuery UI Slider
有什么想法吗?
我有div块,在这个div中从MySql输出数据(照片和价格)这个滑块不是很棒吗?但我需要自动滚动块中的数据
<pre>
<div class="thumbs">
<div class="scroll-pane ui-widget ui-widget-header ui-corner-all">
<div class="thumb-scroll-move-left"><div class="arrow"></div></div>
<div class="scroll-content">
<?php if ( !empty($lastObjects) ) { ?>
<?php foreach ($lastObjects as $lastObject) { ?>
<a href="/<?php echo $lastObject->getID(); ?>" style="color: transparent;"><?php
switch ( $lastObject->getCurrency() ) {
case 'USD': $currency='$';break;
case 'EUR': $currency='€';break;
case 'KZT': $currency='&U+20B8;';break;
case 'CHZ': $currency='CZK';break;
default: $currency='$';
}
echo str_replace(array(
'%sale-type%',
'%price%',
'%rooms%',
'%type%',
'%currency%',
'%floor%',
'%rent-period%',
),
array(
$lastObject->getSaleType(),
$lastObject->getPrice(),
$lastObject->getRooms(),
$lastObject->getType(),
$currency,
$lastObject->getFloorSpace(),
$lastObject->getRentPeriod() ? __('rent-period-' . $lastObject->getRentPeriod()) : '',
),
__( $lastObject->getSaleType().'-'.$lastObject->getTypeName() )
);
?></a>
<?php } ?>
<?php } ?>
</div>
<div class="thumb-scroll-move-right"><div class="arrow"></div></div>
<div class="scroll-bar-wrap ui-widget-content ui-corner-bottom"><div class="scroll-bar"></div></div>
</div>
</div>
</pre>