Team:HFUT CHINA/picture slide.js

From 2014.igem.org

(Difference between revisions)
(Created page with "stepcarousel.setup({ galleryid: 'mygallery', //id of carousel DIV beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs panelclass: 'panel', //class of pan...")
 
(One intermediate revision not shown)
Line 5: Line 5:
panelbehavior: {speed:300, wraparound:false, persist:true},
panelbehavior: {speed:300, wraparound:false, persist:true},
autostep: {enable:true, moveby:4, pause:10000},
autostep: {enable:true, moveby:4, pause:10000},
-
defaultbuttons: {enable: true, moveby: 4, leftnav: ['images/butt-left.gif', 0, 64], rightnav: ['images/butt-right.gif', -11, 64]},
+
defaultbuttons: {enable: true, moveby: 4, leftnav: ['https://static.igem.org/mediawiki/2014/f/f0/Hfut-Butt-left.gif', 0, 64], rightnav: ['https://static.igem.org/mediawiki/2014/a/a7/Hfut-Butt-right.gif', -11, 64]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file']
contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file']

Latest revision as of 09:25, 17 October 2014

stepcarousel.setup({ galleryid: 'mygallery', //id of carousel DIV beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs panelclass: 'panel', //class of panel DIVs each holding content panelbehavior: {speed:300, wraparound:false, persist:true}, autostep: {enable:true, moveby:4, pause:10000}, defaultbuttons: {enable: true, moveby: 4, leftnav: ['https://static.igem.org/mediawiki/2014/f/f0/Hfut-Butt-left.gif', 0, 64], rightnav: ['https://static.igem.org/mediawiki/2014/a/a7/Hfut-Butt-right.gif', -11, 64]}, statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file'] oninit:function(){ isloaded=true document.getElementById('displaycssbelt').style.visibility="visible"; document.getElementById('stocklevels').style.visibility="visible"; } })