PDA

View Full Version : Simple Page, Complex Idea, need help


WiKiDJeFF
December 14 '02, 10:01 PM
I want to make a web page that is like a command prompt. It would be all black with green text. The green text would be written to the screen like it was being typed (You have a string of text and every half second u add another character or something like that). Then after it finishes writing whatever it has to say to the screen it goes to the next line down and lets you type in your command. What would be the best/easiest way of making this site?

energizze
December 15 '02, 06:16 AM
might be easier to make that in flash.

i can think of a way of doing it in html but it would take a lot of code.

i'll see what i can come up with.

energizze
December 15 '02, 07:08 AM
this is what just wrote.

hope this helps.

nsr81
December 15 '02, 12:28 PM
Energizze, I was thinking along the same lines. Howere, the only problem is that writing comma delimeted content can be a royal pain. ;)

energizze
December 15 '02, 01:26 PM
true.

i'm sure there's a way of seperating each character in javascript. but that was just a quick script.

WiKiDJeFF
December 15 '02, 03:16 PM
Thanks a bundle guys that pretty much worked great. I fixed it so you don't have to separate each character with a comma. And is there a way to replace the typing cursor with a green box, kinda like what you might see in the matrix?

energizze
December 15 '02, 04:21 PM
probably is but not easily i don't think.

filburt1
December 15 '02, 04:51 PM
Well you could insert something like:

<font style="background-color:green; padding:2px">&amp;nbsp;</font>

That should make a big green cursor-like thing.

WiKiDJeFF
December 15 '02, 04:53 PM
But you can't put that in a input box can you?

energizze
December 15 '02, 04:57 PM
no, that just puts a background colour on some text.

WiKiDJeFF
December 15 '02, 04:59 PM
ye thats my point, you cant put it in a input box

energizze
December 15 '02, 05:04 PM
no,


if you are really desperate you could do it with fake text boxes.

but that's probably more trouble than it's worth.

filburt1
December 15 '02, 05:06 PM
I know a way to do this but it's IE5.5+ only so I'm somewhat reluctant. (just add a character at a time to layername.innerHTML)

energizze
December 15 '02, 05:13 PM
that's what i did in my attachment.


what he wants to do now is make the text cursor when you are typing green.

WiKiDJeFF
December 15 '02, 05:36 PM
ye a green rectangle. I think you know what I mean.