利用php来自动调用不同服务器上的flash
利用php来自动调用不同服务器上的flash,利用php来自动调用不同服务器上的flash
代码如下:
<html
<head
<title庆校庆</title
</head
<body bgcolor="#f2d560" topmargin=0 leftmargin=0
<?php
$remote_addr=getenv("REMOTE_ADDR");
$testip="202.117.6";
$realip=substr($remote_addr,0,9);
if($testip==$realip){
$url="http://202.117.68.12/~flyhawk/cau.swf";
$word="长大校园网";
}else{
$url="http://webnow.oso.com.cn/cau.swf";
$word="公众信息网";
}
?
<script language="JavaScript"
function Info()
{
if (!confirm("欢迎光临长安校庆专题网"+"nn您的IP:<? echo $remote_addr ?nn您来自<? echo $word ?nn请稍候.....nn正在引导网页以提供最快的网络传输"+"nnn请按确定进入本页浏览n"+"n按取消将离开本站n"+"nnn【我爱长安大学】 "))
history.go(-1);return " "
}
document.writeln(Info())</script
</SCRIPT
<embed src="http://img.jcwcn.com/attachment/portal"