Demo:http://nivo.dev7studios.com/demos/
<
link
rel
=
"stylesheet"
href
=
"nivo-slider.css"
type
=
"text/css"
media
=
"screen"
>
<
script
src
=
"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"jquery.nivo.slider.pack.js"
type
=
"text/javascript"
></
script
>
|
<
script
type
=
"text/javascript"
>
$(window).load(function() {
$('#slider').nivoSlider();
});
</
script
>
|
<
div
class
=
"slider-wrapper"
>
<
div
id
=
"slider"
class
=
"nivoSlider"
>
<
img
src
=
"images/slide1.jpg"
alt
=
""
> <
a
href
=
"http://dev7studios.com"
><
img
src
=
"images/slide2.jpg"
alt
=
""
title
=
"#htmlcaption"
></
a
> <
img
src
=
"images/slide3.jpg"
alt
=
""
title
=
"This is an example of a caption"
> <
img
src
=
"images/slide4.jpg"
alt
=
""
>
</
div
>
</
div
>
<
div
id
=
"htmlcaption"
class
=
"nivo-html-caption"
>
<
strong
>This</
strong
> is an example of a <
em
>HTML</
em
> caption with <
a
href
=
"#"
>a link</
a
>.
</
div
>
|
afterLoad 在幻灯片加载完成后的回调函数 函数 function(){}
boxRainGrowReverse