Created
January 6, 2010 15:23
-
-
Save walterdavis/270331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Event.observe(window,'load',function(){ | |
var select = (window.location.href.indexOf('?') > -1) ? window.location.href.split('?')[1] : ''; | |
var my_glider = new Glider("carousel_item1", {duration:0.5, initialSection: select}); | |
$$('.carousel_item1.next').each(function(elm){ | |
elm.observe('click',function(evt){ | |
Event.stop(evt); | |
return my_glider.next(); | |
}); | |
}); | |
$$('.carousel_item1.previous').each(function(elm){ | |
elm.observe('click',function(evt){ | |
Event.stop(evt); | |
return my_glider.previous(); | |
}); | |
}); | |
}); | |
Event.observe(window,'load',function(){ | |
var select = (window.location.href.indexOf('?') > -1) ? window.location.href.split('?')[1] : ''; | |
var my_glider = new Glider("carousel_item2", {duration:0.5, initialSection: select}); | |
$$('.carousel_item2.next').each(function(elm){ | |
elm.observe('click',function(evt){ | |
Event.stop(evt); | |
return my_glider.next(); | |
}); | |
}); | |
$$('.carousel_item2.previous').each(function(elm){ | |
elm.observe('click',function(evt){ | |
Event.stop(evt); | |
return my_glider.previous(); | |
}); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment