Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Can anyone explain whats going on in this program please? Weird variable names

    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

    Last edited by ultra; 12-12-2009 at 09:17 PM. Reason: Private code asked to be removed by author

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,901
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    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:
    http://www.ClearviewArts.com
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    ultra (12-12-2009)

  • #3
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •