# Thumbnail width

**URL:** https://forum.kirupa.com/t/thumbnail-width/185654
**Category:** Uncategorized
**Created:** [April 15, 2006, 12:30am UTC](https://forum.kirupa.com/t/thumbnail-width/185654 "2006-04-15T00:30:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![graphicmaze](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@graphicmaze](https://forum.kirupa.com/u/graphicmaze)
#### Post date: [April 15, 2006, 12:30am UTC](https://forum.kirupa.com/t/thumbnail-width/185654/1 "2006-04-15T00:30:21Z")

</div>

I pray to god someone will answer… as I cannot figure it out…

I used kirupa’s thumbnail photo gallery scripting.  
problem is, my thumbnails are not the same size and hence they do not load correctly with the existing code. anyone?!?!?:crying:

you can see what happens at [www.graphimaze.com/deana.html](http://www.graphimaze.com/deana.html)  
in the gallery the images don’t load correctly.

idealy i want it to look like the gallery here: [www.avantgroup.com](http://www.avantgroup.com)

function thumbnails\_fn(k) {  
thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
[SIZE=2][COLOR=DarkOliveGreen] [/COLOR][/SIZE][SIZE=2][COLOR=DarkOliveGreen] **target\_mc.\_x = hit\_left.\_x+(target\_mc.\_width+5)\*k;**[/COLOR][/SIZE]  
target\_mc.pictureValue = k;  
target\_mc.onRelease = function() {  
p = this.pictureValue-1;  
nextImage();  
etc.etc…

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [April 15, 2006, 5:38am UTC](https://forum.kirupa.com/t/thumbnail-width/185654/2 "2006-04-15T05:38:17Z")

</div>

[http://www.kirupa.com/forum/showthread.php?t=214891](http://www.kirupa.com/forum/showthread.php?t=214891) post #14  
and for the correct nextThumb function post #20

scotty(-:
