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 10 of 10
  1. #1
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Film credits....

    this is just a little stupid script i wrote for my "Computer Programming Tacher", well I thought somebody might be interested in it.....

    hope it helps anybody.
    Attached Files Attached Files

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Altered it just a little for fun
    Attached Files Attached Files

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,032
    Thanks
    0
    Thanked 248 Times in 245 Posts
    You don't have to split the the top coordinate by "px" before doing the parseInt.

    At=parseInt(credits.style.top.split('px'),10);

    parseInt already discards non-numeric characters after the integer.

    This is enough:

    At=parseInt(credits.style.top,10);

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    lol was there cause I didn't use parseint to begin with :P

  • #5
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    mhhh, very nice, I like it it is a way different approach to it, but it works AND it seems to be more efficent

  • #6
    New Coder
    Join Date
    Mar 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i love it mate, i used it on my website in the creadits section, hope thats ok with u. i put ur name in the credits!!

  • #7
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks ok with me, im glad somebody uses it

  • #8
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I was wondering how you can make it slow down a little bit.

    the speed is so fast for the place that I want to use it.

    thanks.

  • #9
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    really easy, just open the file and look for this:

    setTimeout('StartCredits()', 1)

    replace the one with something else to make it faster liek this:

    setTimeout('StartCredits()', 30)

    have fun

  • #10
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the higher the number the slower it runs, but be aware that at a certain point u will get to a place where the animation goes from looking like it floats to being jumpy


  •  

    Posting Permissions

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