I have taken over a previously designed site. I need to show the actual page url in the browser's address box. For purposes of being able to create links (in emails, etc.) which point the customer directly to the product on the site. As of now, you can only go directly to the home page.
I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position
I have a simple little code script and I'd like either the onClick function (or the entire code itself, whichever is easiest) to only load once every 24 hours for each IP address. So "220.127.116.113" should only get the effect of this code once every 24 hours regardless if they revisit my site 5 times a day let's say.
I found several approaches that attempt to do this, but they either give me the external (regular) IP address, or they give 127.0.0.1 which doesn't really tell me anything. I need the local network address.
Just an alert saying "your machine's local network IP is 10.0.0.139" .
Code: document.write("<a href='"+location.href+"' onclick="share();">Share With Your Friends</a>");
I want to create a link that a user can click which will create a popup telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString(); alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely, this piece of code used to work but all of a sudden it doesn't for some unknown reason. Can anyone tell me what's wrong with the above code?