You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
924 B
32 lines
924 B
$(function(){
|
|
jQuery("#banner").slide({
|
|
effect: "fade",
|
|
easing: "swing",
|
|
interTime: "4000",
|
|
delayTime: "500",
|
|
trigger: 'click',
|
|
autoPlay: true,
|
|
pnLoop: true,
|
|
titCell: ".hd li",
|
|
mainCell: ".bd ul",
|
|
titOnClassName: "current",
|
|
prevCell:" .prevBtn",
|
|
nextCell:" .nextBtn",
|
|
startFun: function (i, c) {
|
|
var li = $('#banner .bd ul li').eq(i);
|
|
if ($(li).find("span").attr('show') == 0) {
|
|
$(li).find("span").css({
|
|
'background': 'url(' + $(li).find("span").attr("url") + ') no-repeat center',
|
|
'display': 'block',
|
|
'width': '100%',
|
|
'height': '100%'
|
|
}).attr('show', 1);
|
|
}
|
|
}
|
|
});
|
|
|
|
$('#keyword').focus(function(){
|
|
$(this).parent().css('opacity',1);
|
|
});
|
|
|
|
});
|