- < div id = "MySlideshow" > <! - the wrapper of our slideshow ->
- < p > Some text ... on slide one < / p >
- < img src = "img / image_0.jpg" alt = "It's slide number two" / >
- < img src = "img / image_1.jpg" alt = "It's slide number three" / >
- < p > < label > Title < / label > Some text ... on slide four < / p >
- < img src = "img / image_2.jpg" alt = "It's slide number five" / >
- < / div >
- < link href = "js / jquery.aslideshow / simple / styles.css" media = "screen" rel = "stylesheet" type = "text / css" / >
- < script type = "text / javascript" src = "js / jquery.js? ver = 1.2.6" > < / script >
- < script type = "text / javascript" src = "js / jquery.aslideshow.js" > < / script >
- < script type = "text / javascript" >
- $ (document) .ready (function () {
- $ ('# MySlideshow'). Slideshow ();
- });
- < / script >
- $ ( '#CustmSlideshow' ) . slideshow ( {
- width : 320 , // width in pixels
- height : 240 , // width in pixels
- index : 0 , // start from slide number N
- content : {
- 'nextclick' : false , // switch to the next slide by clicking on the main window
- 'playclick' : false , // enable / disable slideshow playback by clicking on the main window
- 'playframe' : true , // display the "Play Now!" slide first
- 'imgresize' : false , // resize images to fit the slide show
- 'imgcenter' : true // align pictures in the center (does not work yet)
- } ,
- controls : { // controls
- 'hide' : true , // popup toolbar
- 'first' : true , // first slide button
- 'prev' : true , // button previous slide (if this is the first, go to the last slide)
- 'play' : true , // start slideshow
- 'next' : true , // button next slide (if this is the last one, go to the first slide)
- 'last' : true , // button last slide
- 'help' : true , // help line display button
- 'counter' : true // display the current slide number
- } ,
- slideshow : {
- 'time' : 3000 , // delay between slides change
- 'title' : true , // display title or not
- 'panel' : true , // display control panel or not
- 'help' : "Hello World!" // helpline text
- }
- } ) ;
svn checkout http: // a-slideshow.googlecode.com / svn / trunk / a-slideshow-read-only
Source: https://habr.com/ru/post/46010/
All Articles