-
AuthorPosts
-
jjwijman Friend
jjwijman
- Join date:
- January 2006
- Posts:
- 55
- Downloads:
- 106
- Uploads:
- 1
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
May 24, 2008 at 8:38 am #128863My site is almost finished except one important feature.
I want to use the mighty mootools accordion exactly as hown here.As you see it is the mootootls-page and Joomla 1.5 is equiped with mootools.
Ja-telline has some “mootooly-features” too, so I thought “No problem“But I am confused now how to fix it.
This page shows FAQ’s (“Vragen en antwoorden” in Dutch) .How to show the “V” (question) as a toggler and the “A” (answer) as element?
Has Ja-Teline all mootools-feaures in it?
Or are some features deleted and others included in the sepearte js-files, like highslide-with-html.js, ja.script.js and mootabs1.2.jsjjwijman Friendjjwijman
- Join date:
- January 2006
- Posts:
- 55
- Downloads:
- 106
- Uploads:
- 1
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
May 25, 2008 at 7:52 am #250473Nobody?
:confused:jjwijman Friendjjwijman
- Join date:
- January 2006
- Posts:
- 55
- Downloads:
- 106
- Uploads:
- 1
- Thanks:
- 28
- Thanked:
- 1 times in 1 posts
May 25, 2008 at 8:52 am #250476In the morning my mind is clear. I carefully read at the mootools page and realised I was forgotten this:
“window.addEvent(‘domready’, function() {
// HERE IS WHAT YOU READ IN JS CODE
});“I addes the js-code for the accordion in templates/ja_telline_ii/js/ja.scripts.js and it works!
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);
-
AuthorPosts
This topic contains 3 replies, has 1 voice, and was last updated by jjwijman 16 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum