Hey Phillip, I've been playing around with the DHTML animation you made, where the letters follow each other around the screen. I was wondering: Is there any way to place two of these animations side by side, and is there a way to limit the space they travel to a specified area.
I love the code. I'm trying to use it as a logo. |
Excellent Philipp!
Yannick Mückenhirn ® http://noticiasinteresantes.blogspot.com |
Thanks Nathan and Yannick!
Yes Nathan, it's easy to limit the individual letters to a specific area on the screen *however* they would then be seen "bumping" off the edges. To do this, you just need to create a single additional check along the lines of:
if x below 0 or x above 400 then invert speed (speed *= -1)
... and the same for "y". If there are more requests maybe I can bundle them with a new script to publish here. Maybe I should also give more explanations and a little tutorial how to alter the animation easily! |
Thanks a lot! I'm going to check the video now. Is it okay for anyone to use the animation for their sites? |
Well, I tried pasting the code in, and that didn't work, so I'm assuming my complete lack of knowledge about programming would be to blame. Where exactly should it go? |
Yes, you can use the code whereever you want. It's free. I appreciate to get credit, of course.
You need to create a file with the extension "html". Sometimes Windows will hide the extension from you; in that case, open up Windows Explorer, and check "Show extenstions" from the options. Does it work now? |
Yes, I created it as HTML, and copied the code exactly as you did it in the movie, but the letters refuse to move. I did get the red box, though. |
Whew! I got it to work! I was typing [il] instead of [i1].
Thanks a lot for the help. Very cool seeing how you basically took my question and made ten minutes of your video all about it. |
For now, you can see the logo at http://insidegoogle.blogspot.com. I'd liek some feedback on whether or not it is annoying. Also, if anyone knows how to replace the word Google with either the letters in different colors or with the Google logo, let me know. |