Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS for IP address 1

Status
Not open for further replies.

pier

Technical User
Jan 5, 2001
3
CA
Is anybody know the javascript to put on Index page
enable the webmaster to know the visitors
Will like to have a script that only appears to websmater if there is one available.

thanks
 
in netscape you can use java code to get the ip address, but, other than that, you'd have to use server-side jscript or some other language.... client-side javascript can't get this.


jscript:

<%=Request.ServerVariables(&quot;REMOTE_ADDR&quot;)%> adam@aauser.com
 
Thanks a lot .. I already have a tracker.
Maybee I didn't write my demand properly.
Or maybee should I try your tracker instead of Stats4.all
Perhaps your tracker give more infos than Stats4.all.

thanks
 
of, i see, you want a script that displays something if it's your ip, and not any one elses? adam@aauser.com
 
You'll have to do that server-side. The client is not passed any addressing information about itself. You can get it using CGI, and then render the page differently depeding on IP or DN.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
thanks a lot all of you who try to help me .. but I am not so good as you are. I know a little of Java script, but pretty well in CSS and Html and nothing at all about CGI. So I think it is better forme to give up until I have more acknowledges. On the other hand, I read and speak English but it is not my language so there is another difficulty ;;))
Still here anyway to read you and to learn.
Thanks
<a href=&quot; of the Muses </a>
if anyone of you is interest to visit my web site. And be sure that I am always happy to receive any advices as to make my web better and better.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top