Jephthah's Domain
Home Smallville Ramblings Movie Thoughts Programming Stuff Random Rants Pi Page Billy Gilman



View all Random Pictures.







Super Star Lights

spiderwebman.net

Priceless Design

Other not as cool looking links...


If you have the urge to link to me...

Programming Stuff
index | Previous (digital clock) | Next (bumpers)


Scrolling Text

I saw this as a tutorial on a website, and it reminded me of Trinity talking to Neo in the Matrix, so I clicked on it. It was very easy to copy and paste their code and put in my own text, but actually understanding what was going on was another thing. I never actually got it completely until I learned more about dynamic text boxes, which I'll get to later. Basically, it takes my message one letter at a time and displays it with a certain interval (that I set) that it waits until displaying the next letter. Once it's displayed all of the letters (making i = myMessage.length), then it clears the interval, making it stop displaying the message. Also with this project, I finally realized that you don't have to declare variables at all, which is a completely foreign and strange idea to me. I read around the internet on how you declare variables, so it's possible, but you don't have to. With this project, I actually had the variables declared at first, because I thought I had to, but later I didn't and realized that it worked just the same. Click. I learned something new.

Some challenges I faced was getting each line to pause so it didn't just display each letter with the same interval. Technically, it still is, but the way I got past that was just to put spaces at the end of each line. So, actually, this is displaying some spaces while it looks like it's pausing. But you'd never know if I didn't tell you!



Code Used:
Home | Smallville Ramblings | Movie Thoughts | Programming Stuff | Random Rants | Pi Page | Billy Gilman
© Jephthah October 2005