Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > General Discussion > General Conversation Archives (11/2000 - 01/2005)

 
 
Thread Tools Search this Thread
Old 09-09-2003, 03:19 AM   #1
Dundee Slaytern
Ironworks Moderator
 

Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 41
Posts: 11,063
Maintaining a website for the Army, but came across a few hurdles regarding JavaScripting. I need to find out how to do the following, and while Google came up with a gazillion links, all of them have failed to address my issue because either,

1) Their f!@#$ing code is wrong and does not work.
2) They require me to BUY their code.

Can you tell I am starting to stress out a little here? [img]tongue.gif[/img]

--------

This is the scenerio.

I have a table.

Title /\


What I want is... when I click on the Title /\ button, I get the following,

Title \/
Link 01
Link 02
Link 03
Link 04


And when I click on the button again, the list of links goes back into hiding. Basically it is an expanding/contracting table.

--------

The second problem facing me is a Hit Counter. Since the Army website is on its' own personal intranet, the usual Hit Counters on the internet do not work. I need to make my own. Does anybody know where on the internet can I learn how to do this?

I would preferably like to learn how to get hits based on IP addresses, but Hit Counters based on pageviews are fine with me too.
Dundee Slaytern is offline  
Old 09-09-2003, 04:43 AM   #2
Faceman
Hathor
 

Join Date: February 18, 2002
Location: Vienna
Age: 42
Posts: 2,248
I remember a script that does exactly what you need from my old scripting HTML days. I'll try to find it.
Meanwhile www.webmonkey.com has always been my no.1 resource for scripting and HTML and I've never been disappointed by them.

ADD] Found that script from back then. Howeverthe site has grown and is not free anymore. Sorry

[ 09-09-2003, 04:55 AM: Message edited by: Faceman ]
__________________
\"I am forever spellbound by the frailty of life\"<br /><br /> Faceman
Faceman is offline  
Old 09-09-2003, 05:38 AM   #3
Vaskez
Takhisis Follower
 

Join Date: April 30, 2001
Location: szép Magyarország (well not right now)
Posts: 5,089
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.
__________________
Too set in his ways to ever relate
If he could set that aside, there'd be heaven to pay
But weathered and aged, time swept him to grave
Love conquers all? Damn, I'd say that area's gray
Vaskez is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:50 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved