随机跳转php~好用版
2019-12-31 04:31:53 -0500
<?php
$ad[1]="
http://baidu.com/"; //页面1
$ad[2]="
http://qidian.com"; //页面2
$ad[3]="
http://qq.com"; //页面3
$ad[4]="
http://youku.com"; //页面4
$ad[5]="
http://sohu.com"; //页面5
$ad[6]="
http://iqiyi.com"; //页面6
$out=rand(1, 6);//随机取得这5个页面的一个,有几个就写几, 此例有5个页面,就写 5
header("location:$ad[$out]"); //在需要的地方调用本句,页面转向
?>
Back to home
Subscribe |
Register |
Login
| N