Title: NextGEN Monoslideshow javascript control
Last modified: August 19, 2016

---

# NextGEN Monoslideshow javascript control

 *  [quiraang](https://wordpress.org/support/users/quiraang/)
 * (@quiraang)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/nextgen-monoslideshow-javascript-control/)
 * I have installed NextGen Gallery and Monoslideshow and the they both work very
   nicely. However I need to add some custom controls to the page using javascript
   and that’s where I’m having the problem.
 * I can’t seem to reconcile the examples given in the Monoslideshow manual with
   the way Alex has implemented it on WordPress. Whatever I try, I get ‘swf.addListener
   is not a function’, or ‘swf.nextImage is not a function’.
    I have even tried 
   modding the plugin to add the param – allowScriptAccess : “always” – param appears
   but makes no difference.
 * Obviously my javascript skills ain’t as good as I thought – what else do I need
   to do to access the javascript methods and events?

Viewing 1 replies (of 1 total)

 *  Thread Starter [quiraang](https://wordpress.org/support/users/quiraang/)
 * (@quiraang)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/nextgen-monoslideshow-javascript-control/#post-2051015)
 * Sorry forgot to add my code:
 *     ```
       <script>
       		var swf;
       		swf = jQuery("monoslideshow");
       		alert(swf);
       		swf.addListener("itemLoaderComplete", "onItemLoaderComplete");
   
       		function onItemLoaderComplete(event) {
       		alert("item loaded");
       		}
       		function previousImage() {
       		swf.previousImage();
       		}
   
       		function nextImage() {
       		swf.nextImage();
       		}
       		function initializeMonoslideshow() {
       		swf = document.getElementById("monoslideshow");
       		}
       	</script>
       ```
   
 * The alert(swf); returns an object – but obviously not the correct one ?

Viewing 1 replies (of 1 total)

The topic ‘NextGEN Monoslideshow javascript control’ is closed to new replies.

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [methods](https://wordpress.org/support/topic-tag/methods/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)

 * 1 reply
 * 1 participant
 * Last reply from: [quiraang](https://wordpress.org/support/users/quiraang/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/nextgen-monoslideshow-javascript-control/#post-2051015)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
