i'm having a problem of adding my base url in javascript to load images (for effect), here is the code
$(function(){
$.mbBgndGallery.buildGallery({
containment:"#home",
timer:4000,
effTimer:700,
controls:"#controls",
grayScale:false,
shuffle:false,
preserveWidth:false,
effect:"slideDown",
effect:{enter:{top:"-100%",opacity:1},exit:{top:0,opacity:0}, enterTiming:"ease-in", exitTiming:"ease-in"},
images:[
"/css/login/images/1.jpg",
"/css/login/images/2.jpg",
"/css/login/images/3.jpg"
],
onStart:function(){},
onPause:function(){},
onPlay:function(opt){},
onChange:function(opt,idx){},
onNext:function(opt){},
onPrev:function(opt){}
});
});
my codeigniter base url is localhost/project, so those links in javascript should be like localhost/project/css/login/images/1.jpg
appreciate the help, thank you :)