![]() |
A Couple Small Scripts
So I believe the easiest way to do these would be with js, but I am not proficient with it.
I am wanting to make an ip display for users to see on my site, but I'd like it in this format "Welcome 'ip address'" I don't want a box around it, I would like it best to be placed in the normal body text. Along with that I am trying to find a site counter, that doesn't offer a ton of stats. I just want a simple counter - simple gui - very simple. Just to count the visits to the site by unique IP's. If anyone can help it'd be really appreciated. :banana: -toole |
I can't really help you with your first question, but as for your second: http://www.statcounter.com/ << everything you need, right there.
|
are you talking about something like what is on this site www.admins101.com
how it has got the box that shows your ip address? |
Quote:
As for showing the IP, its easy with php (google) but if you want it in javascipt, look here: http://javascript.internet.com/user-...p-address.html just edit that code to display the ip where you want it on the site. simple. |
if you look on the left side of that page it has a box that shows your i[p address that you are on. that is what i was showing him.
|
in PHP, its very easy... not too sure about javascript.
$userip = $_SERVER['REMOTE_ADDR']; echo "Welcome $userip" |
@demon101 - yup, I saw that. I still think the page was cool :p the background is what caught my eye.
@IR - that code looks familar :) I just couldnt recall it, and was too lazy to google it. |
If you want to accomplish the ip thangy in script on the client, just:
HTML content: :
This is normal HTML text, and we just want |
| All times are GMT -5. The time now is 10:07 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC