start to use Mootools for slider effects

This commit is contained in:
Marc Delisle
2008-01-17 13:48:22 +00:00
parent 83606fda0b
commit 2a6119d393
61 changed files with 7228 additions and 1 deletions

15
js/mootools-domready.js Normal file
View File

@@ -0,0 +1,15 @@
window.addEvent('domready', function(){
var divs = $$(['docs', 'js', 'html', 'css']);
divs.each(function(div){
var link = $(div.id + 'code');
div.setStyle('display', 'none');
link.addEvent('click', function(e){
e = new Event(e);
divs.each(function(other){
if (other != div) other.setStyle('display', 'none');
});
div.setStyle('display', (div.getStyle('display') == 'block') ? 'none' : 'block');
e.stop();
});
});
});