MooTools - Accordion

This is a discussion on "MooTools - Accordion" within the JavaScript Forum section. This forum, and the thread "MooTools - Accordion are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 2nd, 2007, 00:05
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
MooTools - Accordion

Hi Guys,

(I have tried in the official forum, but it's pointless...too many people!)

I have uploaded every part of Moo Tools to here - http://simplifiedimpact.com/images57/mootools.js

I have created a test page so I can understand how it works here -
http://simplifiedimpact.com/gh.html

I have created a mock CSS file also here -
http://simplifiedimpact.com/images57/67.css

My HTML Source is -
HTML: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head><title>Simplified Impact - About</title>



<script type="text/javascript" src="http://simplifiedimpact.com/images57/mootools.js"></script>
    


    
    

<link type="text/css" rel="stylesheet" href="http://simplifiedimpact.com/images57/67.css"></head><body>



<h3>The Mighty Accordion</h3>
 
<div id="accordion">
 
    <h3 class="toggler atStart">History</h3>
    <div class="element atStart">
        <p>The first suggestion that all organisms may have had a common ancestor and diverged through random variation and natural selection was made in 1745 by the French mathematician and scientist Pierre-Louis Moreau de Maupertuis (1698-1759) in his work Venus physique. Specifically:</p>
    <blockquote>"Could one not say that, in the fortuitous combinations of the productions of nature, as there must be some characterized by a certain relation of fitness which are able to subsist, it is not to be wondered at that this fitness is present in all the species that are currently in existence? Chance, one would say, produced an innumerable multitude of individuals; a small number found themselves constructed in such a manner that the parts of the animal were able to satisfy its needs; in another infinitely greater number, there was neither fitness nor order: all of these latter have perished. Animals lacking a mouth could not live; others lacking reproductive organs could not perpetuate themselves... The species we see today are but the smallest part of what blind destiny has produced..."</blockquote>
 
        <p>In 1790, Immanuel Kant (Konigsberg (Kaliningrad) 1724 - 1804), in his Kritik der Urtheilskraft, states that the analogy of animal forms implies a common original type and thus a common parent.</p>
 
        <p>Charles Darwin's grandfather, Erasmus Darwin, hypothesized in 1795 that all warm-blooded animals were descended from a single "living filament":</p>
        <blockquote>"...would it be too bold to imagine, that all warm-blooded animals have arisen from one living filament, which THE GREAT FIRST CAUSE endued with animality...?" (Zoonomia, 1795, section 39, "Generation")</blockquote>
 
        <p>In 1859, Charles Darwin's The Origin of Species was published. The views about common descent expressed therein vary between suggesting that there was a single "first creature" to allowing that there may have been more than one. Here are the relevant quotations from the Conclusion:</p>
        <blockquote>"[P]robably all of the organic beings which have ever lived on this earth have descended from some one primordial form, into which life was first breathed."
        "The whole history of the world, as at present known, ... will hereafter be recognised as a mere fragment of time, compared with the ages which have elapsed since the first creature, the progenitor of innumerable extinct and living descendants, was created."
        "When I view all beings not as special creations, but as the lineal descendants of some few beings which lived long before the first bed of the Silurian system was deposited, they seem to me to become ennobled."</blockquote>
 
        <p>The famous closing sentence describes the "grandeur in this view of life, with its several powers, having been originally breathed into a few forms or into one." The phrase "one form" here seems to hark back to the phrase "some few beings"; in any case, the choice of words is remarkable for its consistency with recent ideas about there having been a single ancestral "genetic pool".</p>
 
        </div>
 
    <h3 class="toggler atStart">Evidence of universal common descent</h3>
    <div class="element atStart">
 
        <h4>Common biochemistry and genetic code</h4>
        <p>    All known forms of life are based on the same fundamental biochemical organisation: genetic information encoded in DNA, transcribed into RNA, through the effect of protein- and RNA-enzymes, then translated into proteins by (highly similar) ribosomes, with ATP, NADH and others as energy currencies, etc. Furthermore, the genetic code (the "translation table" according to which DNA information is translated into proteins) is nearly identical for all known lifeforms, from bacteria to humans, with minor local differences. The universality of this code is generally regarded by biologists as definitive evidence in favor of the theory of universal common descent. Analysis of the small differences in the genetic code has also provided support for universal common descent.[2]</p>
 
        <h4>Irrelevant differences</h4>
 
        <p>    Differences which have no relevance to evolution and therefore cannot be explained by convergence, tend to be very compelling support for the universal common descent theory.</p>
 
        <p>Such evidence has come from two domains: amino acid sequences and DNA sequences. Proteins with the same 3-d structure need not have identical amino acid sequences; any irrelevant similarity between the sequences is evidence for common descent. In certain cases, there are several codons (DNA triplets) that code for the same amino acid. Thus, if two species use the same codon at the same place to specify an amino acid that can be represented by more than one codon, that is evidence for recency of a common ancestor.</p>
     <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Phylogenetic_tree.svg/340px-Phylogenetic_tree.svg.png" class="float-right" />
        <p>    The universality of many aspects of cellular life is often pointed to as supportive evidence to the more compelling evidence listed above. These similarities include the energy carrier ATP, and the fact that all amino acids found in proteins are left-handed. It is possible that these similarities resulted because of the laws of physics and chemistry, rather than universal common descent and therefore resulted in convergent evolution.</p>
 
        <h4>Phylogenetic trees</h4>
 
 
        <p>Another important piece of evidence is that it is possible to construct detailed phylogenetic trees mapping out the proposed divisions and common ancestors of species, and no matter what method is used, morphological (based on appearance, embryology, etc) or molecular (based on mutation rates and relative similarities of important, conserved genes), still get extremely similar results. If there were no common ancestor, these different methods should give wildly different results, thus the phylogenetic tree is strong evidence of common descent.</p>
        <div style="clear:both"></div>
    </div>
 
    <h3 class="toggler atStart">Examples of common descent</h3>
    <div class="element atStart">
 
        <h4>Artificial selection</h4>
        <p>    Artificial selection offers remarkable examples of the amount of diversity that can exist between individuals sharing a late common ancestor. To perform artificial selection, one begins with a particular species (following examples include wolves and wild cabbage) and then, at every generation, only allow certain individuals to reproduce, based on the degree to which they exhibit certain desirable characteristics. In time, it is expected that these characteristics become increasingly well-developed in successive generations. Many examples of artificial selection, like the ones below, occurred without the guidance of modern scientific insight.</p>
 
        <h4>Dog breeding</h4>
 
        <img src="http://upload.wikimedia.org/wikipedia/en/thumb/7/7e/IMG013biglittledogFX_wb.jpg/180px-IMG013biglittledogFX_wb.jpg" class="float-right" />
        <p>An obvious example of the power of artificial selection is the diversity found in various breed in domesticated dogs. The various breeds of dogs all share common ancestry (being all ultimately descended from wolves) but were domesticated by humans and then selectively bred in order to enhance various features such as coat color and length or body size. To see the wide range of difference between the many breeds of dogs compare the Chihuahua, Great Dane, Basset Hound, Pug, and Poodle. Also compare this enormous diversity with the relative uniformity of wild wolves.</p>
 
    </div>
 
</div>




</body>
</html>
(It's basically just the demo from there site, but so I can edit it and *try* to understand how it works.

As you can see from my dummy page, it isn't working as it's supposed to.

Am I linking to the file right? Am I doing anything right?
Can anyone see why it isn't working?

I'm only a real beginner with Javascript....so sorry if I have not provided the correct information.



I would really appreciate help,

Thank,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)

Last edited by Ed; Nov 2nd, 2007 at 20:13.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 2nd, 2007, 00:11
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MooTools - Accordion

I think I'm missing something :: what are you trying to do? Sorry if I am not getting the obvious...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 2nd, 2007, 11:15
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: MooTools - Accordion

Oh Sorry...you know MooTools?

This is one of the plug-ins.
http://demos.mootools.net/Accordion


Do you see now - it's kind of a slider effect.


Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 2nd, 2007, 11:52
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MooTools - Accordion

Oh, that effect. I was thinking of something else! OK, let's see... Did you make sure to copy everything right? Your code looks a lot different from theirs... The css and html look fine, but try validating them (Validator). Just look through your js and see that you copied it all and did not leave something out.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 2nd, 2007, 12:57
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MooTools - Accordion

I don't think you have this bit in, you may have to adapt it to your page.
Code: Select all
<script type="text/javascript">
		window.addEvent('domready', function(){
			var accordion = new Accordion('h3.atStart', 'div.atStart', {
				opacity: false,
				onActive: function(toggler, element){
					toggler.setStyle('color', '#ff3300');
				},
				
				onBackground: function(toggler, element){
					toggler.setStyle('color', '#222');
				}
			}, $('accordion'));
			
			
			var newTog = new Element('h3', {'class': 'toggler'}).setHTML('Common descent');
			
			var newEl = new Element('div', {'class': 'element'}).setHTML('<p>A group of organisms is said to have common descent if they have a common ancestor. In biology, the theory of universal common descent proposes that all organisms on Earth are descended from a common ancestor or ancestral gene pool.</p><p>A theory of universal common descent based on evolutionary principles was proposed by Charles Darwin in his book The Origin of Species (1859), and later in The Descent of Man (1871). This theory is now generally accepted by biologists, and the last universal common ancestor (LUCA or LUA), that is, the most recent common ancestor of all currently living organisms, is believed to have appeared about 3.9 billion years ago. The theory of a common ancestor between all organisms is one of the principles of evolution, although for single cell organisms and viruses, single phylogeny is disputed</p>');
			
			accordion.addSection(newTog, newEl, 0);
		}); 
	</script>
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 2nd, 2007, 15:54
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: MooTools - Accordion

You're a star Alex!
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 2nd, 2007, 16:18
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MooTools - Accordion

.
If you could mark this solved via thread tools that would be great!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 2nd, 2007, 17:52
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: MooTools - Accordion

Just one more thing - if I want to show a message to only people who have javascipt disabled, how can I do this?

Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 2nd, 2007, 18:20
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: [SOLVED] MooTools - Accordion

Put it between noscript tags
HTML: Select all
<noscript>Your JS disabled</noscript>
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 2nd, 2007, 18:35
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: [SOLVED] MooTools - Accordion

Great.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 2nd, 2007, 19:37
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: [SOLVED] MooTools - Accordion

Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Nov 2nd, 2007, 20:11
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: MooTools - Accordion

Uh...I am having the Same problem with FX.slide.
http://demos.mootools.net/Fx.Slide

Here's the page:
http://simplifiedimpact.com/contact.html

Here's my HTML:
HTML: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head><title>Simplified Impact - Home</title>




<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	

<link type="text/css" rel="stylesheet" href="http://simplifiedimpact.com/images57/another.css">
<link type="text/css" rel="stylesheet" href="http://simplifiedimpact.com/images57/67.css">

<script src="http://simplifiedimpact.com/images57/mootools.js" type="text/javascript"></script>

	

	
    <script type="text/javascript">
    		//-vertical
 
var mySlide = new Fx.Slide('test');
 
$('slidein').addEvent('click', function(e){
	e = new Event(e);
	mySlide.slideIn();
	e.stop();
});
 
$('slideout').addEvent('click', function(e){
	e = new Event(e);
	mySlide.slideOut();
	e.stop();
});
 
$('toggle').addEvent('click', function(e){
	e = new Event(e);
	mySlide.toggle();
	e.stop();
});
 
$('hide').addEvent('click', function(e){
	e = new Event(e);
	mySlide.hide();
	e.stop();
});
 
 
//--horizontal
 
var mySlide2 = new Fx.Slide('test2', {mode: 'horizontal'});
 
$('slidein2').addEvent('click', function(e){
	e = new Event(e);
	mySlide2.slideIn();
	e.stop();
});
 
$('slideout2').addEvent('click', function(e){
	e = new Event(e);
	mySlide2.slideOut();
	e.stop();
});
 
$('toggle2').addEvent('click', function(e){
	e = new Event(e);
	mySlide2.toggle();
	e.stop();
});
 
$('hide2').addEvent('click', function(e){
	e = new Event(e);
	mySlide2.hide();
	e.stop();
});
    	</script>

</head><body>



<img id="logo" src="http://simplifiedimpact.com/images57/silogo.png" alt="SI">
		<div id="main-nav">
	<ul>
		<li><a href="http://www.simplifiedimpact.com/index.html" class="home"><span>Home</span></a><br></li>

		<li><a href="http://www.simplifiedimpact.com/aboutus.html" class="about"><span>About us</span></a><br></li>
		<li><a href="http://www.simplifiedimpact.com/ourprojects.html" class="projects"><span>Projects</span></a><br></li>
		<li><a href="http://www.simplifiedimpact.com/contactus.html" class="contact"><span>Contact</span></a><br></li>
	</ul>
</div>
	

<h3 class="section">Fx.Slide Vertical</h3>
 
<a id="slideout" href="#">slideout</a> | <a id="slidein" href="#">slidein</a> | <a id="toggle" href="#">toggle</a> | <a id="hide" href="#">hide</a>
 
<div id="test">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
 
<h3 class="section">Fx.Slide Horizontal</h3>
 
<a id="slideout2" href="#">slideout</a> | <a id="slidein2" href="#">slidein</a> | <a id="toggle2" href="#">toggle</a> | <a id="hide2" href="#">hide</a>
 
<div id="test2">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>


	</body>
</html>
I know my CSS isn't a problem but here:
HTML: Select all
.warning {
     color: #000;
     font-size: 12px;
     border-width: 3px;
     border-color: #ff6f6f;
     border-style: solid;
     text-align: left;



.bottom {
     color: #fff;

.toggler {
    color: #727272;
    margin: 0;
    padding: 2px 5px;
    background: #f7f6f6;
    border-bottom: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
    border-top: 1px solid #f5f5f5;
    border-left: 1px solid #f5f5f5;
    font-size: 11px;
    font-weight: normal;
    font-family: 'Arial', sans-serif;
}
 
.element {
 
}
 
.element p {
    margin: 0;
    padding: 4px;
}
 
.float-right {
    padding:10px 20px;
    float:right;
}
 
blockquote {
    text-style:italic;
    padding:5px 0 5px 30px;
}




#test {
    background: #222;
    color: #fff;
    padding: 10px;
    margin: 20px;
    border: 10px solid pink;
}
 
#test2 {
    background: #222;
    color: #fff;
    padding: 10px;
    margin: 20px;
    border: 10px solid pink;
}
Nothing ever works first time for me!

Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Nov 2nd, 2007, 20:19
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MooTools - Accordion

try replacing:
Code: Select all
<script type="text/javascript">
            //-vertical
 
var mySlide = new Fx.Slide('test');
 
$('slidein').addEvent('click', function(e){
    e = new Event(e);
    mySlide.slideIn();
    e.stop();
});
 
$('slideout').addEvent('click', function(e){
    e = new Event(e);
    mySlide.slideOut();
    e.stop();
});
 
$('toggle').addEvent('click', function(e){
    e = new Event(e);
    mySlide.toggle();
    e.stop();
});
 
$('hide').addEvent('click', function(e){
    e = new Event(e);
    mySlide.hide();
    e.stop();
});
 
 
//--horizontal
 
var mySlide2 = new Fx.Slide('test2', {mode: 'horizontal'});
 
$('slidein2').addEvent('click', function(e){
    e = new Event(e);
    mySlide2.slideIn();
    e.stop();
});
 
$('slideout2').addEvent('click', function(e){
    e = new Event(e);
    mySlide2.slideOut();
    e.stop();
});
 
$('toggle2').addEvent('click', function(e){
    e = new Event(e);
    mySlide2.toggle();
    e.stop();
});
 
$('hide2').addEvent('click', function(e){
    e = new Event(e);
    mySlide2.hide();
    e.stop();
});
        </script>
width

Code: Select all
<script type="text/javascript">
        window.addEvent('domready', function(){
            //-vertical
            
            var mySlide = new Fx.Slide('test');
            
            $('slidein').addEvent('click', function(e){
                e = new Event(e);
                mySlide.slideIn();
                e.stop();
            });
            
            $('slideout').addEvent('click', function(e){
                e = new Event(e);
                mySlide.slideOut();
                e.stop();
            });
            
            $('toggle').addEvent('click', function(e){
                e = new Event(e);
                mySlide.toggle();
                e.stop();
            });
            
            $('hide').addEvent('click', function(e){
                e = new Event(e);
                mySlide.hide();
                e.stop();
            });
            
            
            //--horizontal
            
            var mySlide2 = new Fx.Slide('test2', {mode: 'horizontal'});
            
            $('slidein2').addEvent('click', function(e){
                e = new Event(e);
                mySlide2.slideIn();
                e.stop();
            });
            
            $('slideout2').addEvent('click', function(e){
                e = new Event(e);
                mySlide2.slideOut();
                e.stop();
            });
            
            $('toggle2').addEvent('click', function(e){
                e = new Event(e);
                mySlide2.toggle();
                e.stop();
            });
            
            $('hide2').addEvent('click', function(e){
                e = new Event(e);
                mySlide2.hide();
                e.stop();
            });
        });  
</script>
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)

Last edited by alexgeek; Nov 2nd, 2007 at 20:47.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Nov 2nd, 2007, 20:58
Junior Member
Join Date: Oct 2007
Location: Sweden
Age: 29
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MooTools - Accordion

try to not miss the:
window.addEvent('domready', function(){

///// your code goes here
})
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!