整个页face如下:
<%@ Page Language=" C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
<제목>제목>
<본문>
注释:
속도:图文轮播速島
num:图文数weight
timer:自动轮播的时间间隔,定时器;
flowSpeed:是滑块移动的速速tivity
blockSlide插件源码如下:
/**
* @author huajianhuakai*/
(함수($)
{
$.fn.blockSlide = 함수(설정)
{
설정 = jQuery.extend({
속도: "normal",
num: 4,
timer: 1000,
flowSpeed: 300
}, 설정)
return this.each (function()
{
$.fn.blockSlide.scllor($(this), 설정);
})
$.fn.blockSlide.scllor = 함수 ($this, 설정)
{
var index = 0;
var imgScllor = $("div:eq(0)>div", $this); >//自动播放
var MyTime = setInterval(function()
{
ShowjQueryFlash(index);
index ;
if (index == settings.num)
index = 0;
}, settings.timer);
var ShowjQueryFlash = function(i)
{
$(imgScllor).eq(i).animate({ 불투명도: 1 }, settings.speed ).css({ "z-index": "100" }).siblings().animate({ opacity: 0 }, settings.speed).css({ "z-index": "0" })
}
}
})(jQuery);