March 01, 2005

Wow. Go Javascript!

     So while I was updating Mystery of Time and Space I noticed an interesting bit of javascript. They made a call on location.search and spliced it down and used it to define several of their variables. For example the way they change music from level to level is by changing the search string. So on level one it calls sound.htm?mystery1.mid, on level two sound.htm?mystery2.mid, etc. For those of you who work with html, php, or cgi, you may note this as well.... VERY ODD. Most people pay big bucks to get servers that have dynamic content (or find places like freenukehosting and mindintentions), so how in the world did they get HTML files to work like that? Well... It's actually a huge pain in the ass to splice the search strings, and in no way is it nearly as convienient as php or cgi. But for my purposes (making a website with absolutely no dynamic content outside of javascript), this method came in handy and worked out well. You can check out the error page on scuzzstuff. Either visit a page that doesn't exist, or click on the link under "Awesome things." Anyway, that's about all I've got for today. I got the next two episodes of Air though, and that makes me happy.

--UPDATE--
Added support for non-javascript-enabled browsers to the error page, the main page, and several game pages.

Posted by Kickmyassman at March 1, 2005 09:46 PM
Comments

Kit, I got to admit, you are becoming a JS master! Keep going until you get hired by Google (or some other company that is just as good ;-))!!!

Other than that, FHN and MI Hosting are really good. Check out http://www.mindintentionshosting.com/forum/ and http://www.freenukehosting.com/ for more info on them.

Posted by: Cavalkaf at March 1, 2005 09:53 PM
Post a comment









Remember personal info?