I am working on a website and I dont know much of Javascript,but I need to put to work different scripts on the page,and it wont work!:sad: I've already try to chage all that I remeber to chage,but dosen't work!What I am doing wrong?Can anybody help me out? Here is my code:
<script type="text/javascript" src="/js/mootools.js" ></script>
<script type="text/javascript" src="/js/slimbox.js"></script>
<script type="text/javascript">
window.onload = function() {
// Pick your classes
var myBox = document.getElementsByClassName('box_title');
var myBoxOpen = document.getElementsByClassName('information');
// Create the accordion
var myAccordion = new fx.Accordion(
myBox, myBoxOpen, {
onActive: function(tog){
tog.setStyles({color: '#fff', background: '#840000'});
},
onBackground: function(tog){
tog.setStyles({color: '#b7d30b', background: '#7d8c87'});
},
alwaysHide: true
}
);
}
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
</script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('ul#hFade').innerfade({
speed: 7000,
timeout: 13000,
type: 'sequence',
containerheight: 'auto'
});
});
</script>
Thanks for any help; :)