View Full Version : Can anyone explain whats going on in this program please? Weird variable names
12-11-2009, 11:27 PM
Find it really hard to understand these random variable names and what they are doing, can anyone explain what is going on exactly in the bolded parts. I have a rough idea but the 3 arrays confuse me somewhat
im sure the random variable names are pointers and counts but id love to hear an expert explain them for sure
thanks if you can help or are willing to take the time
12-12-2009, 12:23 AM
Pretty crappy code, isn't it?
Would be worth rewriting, probably.
The imgArray is pointless, given then he waits for all images in the document to be loaded before doing anything (that's the purpose of his ready() function). [Normally, you'd use an imgArray like that to load images "behind the scenes" before they are actually needed. But with a scrolling banner like this, you really need all of the images to be loaded before you start.]
Do you *like* the effect that this gives you???? It seems mildly ugly to me. It "snaps" every 3 seconds to the next position.
Contrast that with the scroller I created here:
12-12-2009, 04:57 PM
Wow your scroller is much much better. I like the pause in the middle also.
I dont like the effect no as currently the images i put in are all squashed up and dont look right.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.