I don't know how to do expanding tables but hit counter are easy....except not with Java Script

The problem is that java script runs on the client side i.e. it is run by the client's browser. To make a hit counter you need to use server side scripting: i.e. either ASP, JSP or PHP. This is because to store the counter value, you need access to the server's hard-disk and giving access to clients to the server's hard disk is obiously insecure and not allowed! If you use ASP for example, making a counter is as simple as detecting a connection (there are pre-defined functions for this) and then reading a number from a text file, incrementing it and writing back to disk. Look at
www.w3schools.com - it tells exactly how to do what you're after in ASP.