<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesLocationCode,GeobytesCode,GeobytesInternet"></script>
<script language="Javascript">
if(typeof(sGeobytesLocationCode)=="undefined"
||typeof(sGeobytesCode)=="undefined"
||typeof(sGeobytesInternet)=="undefined")
{
// Something has gone wrong with the variables, so set them to some default value,
// maybe set a error flag to check for later on.
var sGeobytesLocationCode="unknown";
var sGeobytesCode="unknown";
var sGeobytesInternet="unknown";
}
if(sGeobytesLocationCode=="UKENGRIM")
{
// Visitors from Grimsby would go here
window.open("enter Grimsby URL here");
}else if(sGeobytesCode=="EN")
{
// Visitors from England would go here
window.open("enter England URL here");
}else if(sGeobytesInternet=="UK")
{
// Visitors from The United Kingdom would go here
window.open("enter United Kingdom URL here");
}
</script>
اینکه asp بود
ممنون میشمدیتابیس ip را میتونم بهت بدم به همراه یک اسکریپت برای هدایت کردن![]()
اینکه asp بود
براي اينكه همه به جز ايراني ها برن به اون صفحه اي كه مي خواي بايد اونا رو از طريق ip تفكيك كني ...
اين كار هم نياز به اين داره كه شما از يه جا بدوني كه چه ip براي چه كشوري هست ... ؟!
كه همون ديتابيس ip لازمه احتمالا ...
ولي اگر فقط براي چند جا رو بخوي كه هدايت كني بايد مثل اين كد عمل كني :
کد:<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesLocationCode,GeobytesCode,GeobytesInternet"></script> <script language="Javascript"> if(typeof(sGeobytesLocationCode)=="undefined" ||typeof(sGeobytesCode)=="undefined" ||typeof(sGeobytesInternet)=="undefined") { // Something has gone wrong with the variables, so set them to some default value, // maybe set a error flag to check for later on. var sGeobytesLocationCode="unknown"; var sGeobytesCode="unknown"; var sGeobytesInternet="unknown"; } if(sGeobytesLocationCode=="UKENGRIM") { // Visitors from Grimsby would go here window.open("enter Grimsby URL here"); }else if(sGeobytesCode=="EN") { // Visitors from England would go here window.open("enter England URL here"); }else if(sGeobytesInternet=="UK") { // Visitors from The United Kingdom would go here window.open("enter United Kingdom URL here"); } </script>
خدا خیرت بده کارم راه افتاد