how to add a CSS class inside a JavaScript setup code? -


i need javascript help.

i have slider script :

stepcarousel.setup({     galleryid: 'mygallery', //id of carousel div     beltclass: 'belt', //class of inner "belt" div containing panel divs     panelclass: 'panel', //class of panel divs each holding content     autostep: {         enable:true,          moveby:1,          pause:3000     },     panelbehavior: {         speed:500,          wraparound:false,          wrapbehavior:'slide',          persist:true     },     defaultbuttons: {         enable: true,          moveby: 1,          leftnav: ['arl.png', -5, 80],          rightnav: ['arr.png', -20, 80]     },     statusvars: ['statusa', 'statusb', 'statusc'], //register 3 variables contain current panel (start), current panel (last), , total panels     contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file'] }) 

and want defaultbuttons have class ( class="defaultbuttons" example ) because don't have access html since script 'echoing' guess on load ... :

<img src="arl.png"       title="back 1 panels"       style="z-index: 50;              position: absolute;              left: 3px;              top: 88px;              cursor: pointer;              opacity: 1;" > 

and want add simple class further styling. thank assistance ;)

i got it. should have looked deep js.. locate this

<img src="'+config.defaultbuttons.leftnav[0]+'"> 

then, problem solved! thank hints , ;)


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -