This is a peice of code for creating a cool effect of FAQs using Mootools 1.2, I can't get it working with mootools 1.4.1. (even with compatibility on)

http://davidwalsh.name/flashy-faqs-mootools-sliders

Anyone have any ideas?

There is a jsFiddle of it here: http://jsfiddle.net/nicekiwi/VpT6D/3/ but jsFiddle appears to be having 'issues' atm, so im not sure how much help that will be.

The code seems to simple yet the problem.answer eludes me. Basicly it works, but when the question is clicked the answer opens but is hidden and the answer div expands to a disproportionate size to the answer it contains, eg 1500px and other weird CSS annomilies not present in the demo on that site I've linked.

有帮助吗?

解决方案

here a possible solution : http://jsfiddle.net/xnV2N/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top