Есть у кого слайдер?

Stryukov
На сайте с 07.12.2011
Offline
35
621

Нужен подобный слайдер партнеров, снизу сайта посмотрите, идут картинки сами по себе наводишь и останавливаются на нужной: http://lux-event.ru/

«Для наших клиентов сделанный нами сайт или фирменный стиль – не статья расхода, а статья дохода.» (Лебедев Артемий Андреевич).
palladin_jedi
На сайте с 13.07.2010
Offline
71
#1

Возьмите ихний, если так уж хочется...

<script type="text/javascript">

jQuery.fn.liScroll = function(settings) {
settings = jQuery.extend({
travelocity: 0.07
}, settings);
return this.each(function(){
var $strip = jQuery(this);
$strip.addClass("newsticker")
var stripWidth = 0;
var $mask = $strip.wrap("<div class='mask'></div>");
var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>");
var containerWidth = $strip.parent().parent().width(); //a.k.a. 'mask' width
$strip.find("li").each(function(i){
stripWidth += jQuery(this, i).outerWidth(true); // thanks to Michael Haszprunar
});
$strip.width(stripWidth);
var totalTravel = stripWidth+containerWidth;
var defTiming = totalTravel/settings.travelocity; // thanks to Scott Waye
function scrollnews(spazio, tempo){
$strip.animate({left: '-='+ spazio}, tempo, "linear", function(){$strip.css("left", containerWidth); scrollnews(totalTravel, defTiming);});
}
scrollnews(totalTravel, defTiming);
$strip.hover(function(){
jQuery(this).stop();
},
function(){
var offset = jQuery(this).offset();
var residualSpace = offset.left + stripWidth;
var residualTime = residualSpace/settings.travelocity;
scrollnews(residualSpace, residualTime);
});
});
};

$(document).ready(function(){
$("ul#ticker01").liScroll();
});
</script>
Сайт о web-разработке и прочем (http://seazo.net)||Продвижение статьями под Google (http://short.seazo.net/ght4zf) Бесплатные консультации рефералам Sape (http://www.sape.ru/r.SWfwWOblBo.php) PHP и JS скрипты на заказ, создание сайтов с нуля и на CMS.
Stryukov
На сайте с 07.12.2011
Offline
35
#2

ну а в index.html что выводить?

---------- Добавлено 23.01.2012 в 18:46 ----------

Ладно, palladin_jedi спасибо, пойду сам все сделаю.

Flash.UA
На сайте с 11.09.2007
Offline
46
#3

Тебе должны были все разжевать, а может сразу за тебя сделать?

"ul#ticker01"

создай ul c айдишником ticker01 (ну или на свое переименуй), и оберни картинки внутри в li

Stryukov
На сайте с 07.12.2011
Offline
35
#4

Ок.)Спасибо

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий