# Adding Thumbnails Tutorial

**URL:** https://forum.kirupa.com/t/adding-thumbnails-tutorial/246874
**Category:** Uncategorized
**Created:** [December 15, 2007, 8:01pm UTC](https://forum.kirupa.com/t/adding-thumbnails-tutorial/246874 "2007-12-15T20:01:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BDUSTY](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@BDUSTY](https://forum.kirupa.com/u/BDUSTY)
#### Post date: [December 15, 2007, 8:01pm UTC](https://forum.kirupa.com/t/adding-thumbnails-tutorial/246874/1 "2007-12-15T20:01:19Z")

</div>

I have no issues with the tutorial at all. In fact, I love it! What i’m trying to figure out now is how to disable the scroller when the mouse is out of the area. I was trying to build on the code below by trying to add a new function to disable the scroller but I can’t seen to make it work. Can anyone help out?? Thanks :esmirk:

```auto
 
panel.onRollOver = panelOver;
function panelOver () {
 this.onEnterFrame = scrollPanel;
 delete this.onRollOver;
}
var b = stroke.getBounds(_parent);
function scrollPanel() {
 if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
  this.onRollOver = panelOver;
  delete this.onEnterFrame;
}

```
