# Mootools Slimbox + other javascript (NOT WORKING)

**URL:** <https://forum.kirupa.com/t/mootools-slimbox-other-javascript-not-working/251742>\
**Category:** web dev\
**Created:** [February 12, 2008, 7:09am UTC](https://forum.kirupa.com/t/mootools-slimbox-other-javascript-not-working/251742 "2008-02-12T07:09:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctdesign87](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ctdesign87/32/851_2.png) [@ctdesign87](https://forum.kirupa.com/u/ctdesign87)\
**Post date:** [February 12, 2008, 7:09am UTC](https://forum.kirupa.com/t/mootools-slimbox-other-javascript-not-working/251742/1 "2008-02-12T07:09:37Z")

</div>

Hey there  
Just getting frustrated at my efforts to get 2 sets of javascripts working.

One is working off the mootools framework - using Slimbox.

The other I believe i ‘flat’ javascript. I think the problem arises in the onload and addevent statements.

How can I resolve this issue?

```auto
<body onload="initToggleCategories();">

<script type="text/javascript">
			window.addEvent('domready', function(){
				Lightbox.init({showControls: true});
			});
</script>
       

```

The full website is [http://www.briansmyth.net/newsite/weddings.php](http://www.briansmyth.net/newsite/weddings.php)

Ta
