2
   

Javascript with Windows Prompt

 
 
Reply Tue 20 Apr, 2004 06:29 pm
I am not spamming.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 4,535 • Replies: 10
No top replies

 
Craven de Kere
 
  1  
Reply Tue 20 Apr, 2004 06:33 pm
Um, any way you can convince would-be good samaritans that this is a worthwhile endeavor?

By this I'm saying that I usually give Javascript help here all the time, but there's no way I'm gonna make me poor brain work on that code!

Welcome to A2K!
0 Replies
 
Millerman333
 
  1  
Reply Tue 20 Apr, 2004 06:40 pm
I'm sorry
I'm sorry, nothing good comes to my mind besides please! Rolling Eyes

I've been working on it for about 6 and a half hours scouring the web as well as this Thomson html/javascript book to create the code and I'm stuck.

Would it be possible for somebody to just get me started on the right track? It's asking for a lot for somebody to do the whole thing, maybe a guideline I could follow?
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 20 Apr, 2004 06:52 pm
No no, wanting it is as good a reason as any for asking for help. Don't get me wrong on that.

But I'm wondering what the purpose of teh code is for.
0 Replies
 
Millerman333
 
  1  
Reply Tue 20 Apr, 2004 06:55 pm
ahhh
My apologies. I misunderstood.

It's for a Computer Science class as you may have correctly suspected. It may appear a bit unethical, but making this the first Javascript assignment for a student seemed a bit unethical as well.

I'm sorry if I have broken any of the forum rules in posting this.

Thank you for your time Craven.

Miller
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 20 Apr, 2004 07:08 pm
I don't know JavaScript at all but have never taken on a JavaScript task that I couldn't solve. I'll do the part that changes the color after I make dinner.

Don't worry, it's not a bad question at all, I just couldn't imagine what it was for. ;-)
0 Replies
 
Millerman333
 
  1  
Reply Tue 20 Apr, 2004 07:22 pm
Craven... you just made my night.

And your modesty has been betrayed by your 6000 posts Smile
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 20 Apr, 2004 07:49 pm
Code:<script>
<!--
// Copyright www.able2know.com
// No rights reserved
// Remove header and complete the script
// before turning it in.

var Today= new Date();
var ThisSecond=Today.getSeconds();

NakedHamsters = ThisSecond *0.1;
LookFunny = Math.round(NakedHamsters);

color = new Array(6);
color[0] = "<font color=green>";
color[1] = "<font color=blue>";
color[2] = "<font color=yellow>";
color[3] = "<font color=red>";
color[4] = "<font color=orange>";
color[5] = "<font color=indigo>";
color[6] = "<font color=darkgray>";
color[7] = "<font color=gray>";
color[8] = "<font color=gold>";
color[9] = "<font color=lightblue>";

Txt = color[LookFunny];

var opening=window.prompt("User, please type a phrase before we pillage your village.");

document.write("That daft user just typed in the following phrase "+Txt+" "+opening+"</font><BR>");
// -->
</script>
0 Replies
 
Millerman333
 
  1  
Reply Tue 20 Apr, 2004 08:10 pm
hahahahhahaah

Some of that code is hysterical Craven.

You did that incredibly quickly. Thank you sooooooooo much!!!!

I wish there was someway to repay your altruistic behavior besides "Thank you!!!"

Miller
0 Replies
 
Millerman333
 
  1  
Reply Tue 20 Apr, 2004 08:14 pm
When you say

"complete the script"

you mean, I should....

(sorry you have to spoon feed this to me Craven)

Thanks again.

Miller
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 20 Apr, 2004 08:15 pm
In your request it sayd you also need the script to count the words in the entered phrase. I did the color based on seconds part but not that part.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Javascript with Windows Prompt
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/10/2024 at 11:37:21