|
Hi there! I was wondering if there was a way to add new tabs/divs to mbScrollable? right now I have this (and it doesn't seem to be working).
in document ready:
$("#myScroll").mbScrollable({
width:700,
elementsInPage:3,
elementMargin:4,
shadow:"#999 2px 2px 2px",
height:"auto",
controls:"#controls",
slideTimer:600,
autoscroll:false,
scrollTimer:2000 function to add new div: { randOtherPersonNum = ""; for (i = 1; i <= 5; i = i + 1) { randFiveString = String.fromCharCode(97 + Math.round(Math.random() * 25)); randOtherPersonNum += randFiveString; }
return false; } Any ideas? THANKS! |
|
The jquery.mb.scrollable component defines all the elements and the behaviors and startup; this prevents the possibility to add elements on the fly other than recalculate dimentions, indexes and positions of all the other elements. I'make a new method to do that for next release. |


