Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-23-2004, 02:21 AM   PM User | #1
JAVAEOC
Regular Coder

 
Join Date: Oct 2003
Location: SC
Posts: 936
Thanks: 0
Thanked 0 Times in 0 Posts
JAVAEOC is an unknown quantity at this point
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
File Type: txt credits.htm.txt (2.5 KB, 402 views)
__________________
http://www.bluephoenix.uni.cc/
JAVAEOC is offline   Reply With Quote
Old 03-23-2004, 05:52 AM   PM User | #2
Garadon
Regular Coder

 
Join Date: Jul 2002
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
Garadon is an unknown quantity at this point
Altered it just a little for fun
Attached Files
File Type: txt credits.htm.txt (2.4 KB, 304 views)
Garadon is offline   Reply With Quote
Old 03-23-2004, 07:47 AM   PM User | #3
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
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);
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 03-23-2004, 08:31 AM   PM User | #4
Garadon
Regular Coder

 
Join Date: Jul 2002
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
Garadon is an unknown quantity at this point
lol was there cause I didn't use parseint to begin with :P
Garadon is offline   Reply With Quote
Old 03-23-2004, 11:15 PM   PM User | #5
JAVAEOC
Regular Coder

 
Join Date: Oct 2003
Location: SC
Posts: 936
Thanks: 0
Thanked 0 Times in 0 Posts
JAVAEOC is an unknown quantity at this point
mhhh, very nice, I like it it is a way different approach to it, but it works AND it seems to be more efficent
__________________
http://www.bluephoenix.uni.cc/
JAVAEOC is offline   Reply With Quote
Old 04-08-2004, 02:43 AM   PM User | #6
thunderbox
New Coder

 
Join Date: Mar 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
thunderbox is an unknown quantity at this point
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!!
thunderbox is offline   Reply With Quote
Old 04-10-2004, 05:35 PM   PM User | #7
JAVAEOC
Regular Coder

 
Join Date: Oct 2003
Location: SC
Posts: 936
Thanks: 0
Thanked 0 Times in 0 Posts
JAVAEOC is an unknown quantity at this point
thanks ok with me, im glad somebody uses it
__________________
http://www.bluephoenix.uni.cc/
JAVAEOC is offline   Reply With Quote
Old 04-14-2004, 11:53 PM   PM User | #8
ssskaya
Regular Coder

 
Join Date: Oct 2002
Location: USA
Posts: 255
Thanks: 1
Thanked 0 Times in 0 Posts
ssskaya is an unknown quantity at this point
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.
ssskaya is offline   Reply With Quote
Old 04-15-2004, 12:20 AM   PM User | #9
JAVAEOC
Regular Coder

 
Join Date: Oct 2003
Location: SC
Posts: 936
Thanks: 0
Thanked 0 Times in 0 Posts
JAVAEOC is an unknown quantity at this point
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
__________________
http://www.bluephoenix.uni.cc/
JAVAEOC is offline   Reply With Quote
Old 04-15-2004, 07:16 AM   PM User | #10
Garadon
Regular Coder

 
Join Date: Jul 2002
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
Garadon is an unknown quantity at this point
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
Garadon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:51 AM.


Advertisement
Log in to turn off these ads.