Little Javascript help please?!

greyhat

English Gent
Nov 30, 2009
853
8
0
UK
Hi there. i bought a theme from theme forest and it comes with a 'basic' image slider. Here is the code that initilises the slider:

Code:
featuredcontentslider.init({
    id: "slider1",  //id of main slider DIV
    contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
    toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
    nextprev: ["<", ">"],  //labels for "prev" and "next" links. Set to "" to hide.
    revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
    enablefade: [true, 0.2],  //[true/false, fadedegree]
    autorotate: [true, 3000],  //[true/false, pausetime]
    onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
        //previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
        //curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
    }
})
Can i use the 'onChange' function to add my own transition effects with jQuery??

Thanks.
 


No you can't.

Sliders usually have different effects included, if I can see a page that uses this slider I'll be able to tell you more (can be empty/demo site), unless you already know what kind of slider it is?
 
Thanks anyway but i am dumping it due to another bug. it was just a standard on that came with a theme but i have found another issue with it.

Thx anyway. :D