Robert,
Thanks for your input, I mean, I do understand where some people are coming from with wanting to keep their creations in their own hands, so that it can't be stolen by others. I do view web design/programming as an art form. I wouldn't like people steeling my music, or my websites.
That said, there is just so much one can do to try to hide their stuff, but the very nature of HTML is that it is not a compiled language, there is just no way to hide uncompiled languages.
To answer your question re: applets, actually, applets are more resource intensive, but scripts are also (by nature) noncompiled. Applets are compiled, theirfore, you can create content who's source can not be viewed. Flash is the same way.
The problem is, we don't really know what the questioner is trying to hide, if it's just his code in general, it's not gonna happen. You can try javascript, but I can turn it off on my end (since javascript is a client side language). You may be able to get away with it in something like ASP, which is server side, and possibly even JSP.
But here is the ULTIMATE reason as to why there is nothing you can do to hide your code.
Open up notepad, and go to "file, open".
In "file name", type
http://www.google.com
Or use whichever site you want. You will notice that the code for that page will infact show up in your notepad. No need for a browser even. You can also go directly to certain pages on the site using the same technique.
I really didn't mean to sound like I was putting anyone down, in my first post here, and I'm sorry if it sounded that way.
Sage