Hi all
I hope this is in the right section..
I'm trying to call a js file and its associated CSS into an article on my site, but its not working as it should.
The script appears to be loaded correctly, but I cannot seem to call it in to my site correctly. Any one know a better way than I have here of calling what should be:
<body onload="slideMenu.build(’sm’, 200, 10, 10, 1);">
?
I've tried jQuery and normal javascript to call directly into my article, like this
<script type=”text/javascript”>
$(document).ready(function(){
slideMenu.build(’sm’, 200, 10, 10, 1);
});
</script> and <script type=”text/javascript”>
window.onload = function(){
slideMenu.build(’sm’, 200, 10, 10, 1);
}
</script>
If anyone could shed some light on this it would be much appreciated.
Thanks
John Lewis