passing global variables to jquery function
hi,
i have this problem in passing values to a variable in a jquery function.
i have a js variable that accepts a certain value and then i want to pass this variable in the jquery function.
For example, this is my script:
- var autoScrollBool = "true"
- var autoScroolInt = "10" (seconds)
- stepcarousel.setup({
galleryid: 'mygallery',
beltclass: 'belt',
panelclass: 'panel',
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['images/leftbtn.png', -30, 80], rightnav: ['images/rightbtn.png', 15, 80]},
statusvars: ['statusA', 'statusB', 'statusC'],
contenttype: ['inline']
})
i want to replace the value of
autostep: {enable:true to enable: autoScrollBool(the variable i created), when i tried to assign it as is, its not working.
Thank you very much for the help.