Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > General Software

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 17th August 2002, 10:43 PM   #1
Menthu_Rae Thread Starter
Member
 
Menthu_Rae's Avatar
 
Join Date: Mar 2002
Location: Northern Beaches, Sydney
Posts: 6,137
Talking JavaScript Help?

Edit: Fixed the site... removed the "Javascript" - works perfectly now...

Last edited by Menthu_Rae; 18th August 2002 at 7:09 AM.
Menthu_Rae is online now   Reply With Quote

Join OCAU to remove this ad!
Old 17th August 2002, 10:55 PM   #2
Chazza
Member
 
Chazza's Avatar
 
Join Date: Jan 2002
Location: Sydney
Posts: 1,112
Default

First of all, learn how to indent code.

Secondly, it helps if you explain what you need the code to do.
__________________
Chazza
Chazza is offline   Reply With Quote
Old 18th August 2002, 3:08 AM   #3
Bangers
Member
 
Bangers's Avatar
 
Join Date: Dec 2001
Location: Silicon Valley
Posts: 7,281
Default

Code:
<script language="JavaScript">
<!-- 

function scrollit(seed) {
	var msg="..Drama†ic †o †he b o n e..";
	var out = " "; 
	var c=1; 

	if(seed>100) {
		seed; 
		cmd="scrollit("+seed+")"; 
		timerTwo=window.setTimeout(cmd,100);
	} else if (seed <= 100 && seed > 0) {
		for(c=0 ; c < seed ; c++) {
			(out+=" "); out+="msg;seed--;
			window.status=out;cmd="scrollit("+seed+");
			timerTwo=window.setTimeout(cmd,100); 
		}
	} else if (seed <= 0) {
		if (-seed < msg) {
			}
	}
} //
//-->
The whole thing doesnt make sense.

I suggest you rethink the structure of this function.

I tried to clean it up as much as possible, but soem areas I have nfi, and I also think you don't either. These areas are in bold
__________________
There's a story about a golfer who sinks a 30-meter putt and someone says: 'Gee, that was lucky' and the golfer says, 'Yes, amazing how lucky you get when you practice 8 hours a day for 20 years'.
Bangers is offline   Reply With Quote
Old 18th August 2002, 12:05 PM   #4
Chazza
Member
 
Chazza's Avatar
 
Join Date: Jan 2002
Location: Sydney
Posts: 1,112
Default

I'll rewrite it from scratch if you just tell me what it's supposed to do.
__________________
Chazza
Chazza is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 7:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!