php处理页面同时打开新标签(小技巧)

来源:互联网 发布:问卷统计软件 编辑:程序博客网 时间:2024/05/21 08:52
<?phpif( isset($_GET['type']) ){$type=$_GET['type'];if($type=="phone"){echo '<meta http-equiv="refresh" content="1; url=http://www.lenovomm.com/appstore/sl/21346-15027"> ';//21346-15027}else if($type=="pad"){echo '<meta http-equiv="refresh" content="1; url=http://www.lenovomm.com/appstore/sl/28086-15027"> ';//28086-15027}}?>

HTML:

<body><div style="padding-top:20px"><center><img src="successbj.jpg" usemap="#Map" border="0"  /></center><center><p class="title"><img src="images/title2.jpg" alt=""></p></center><center><iframe width="1000" height="500"  frameborder="0" scrolling="no" src="http://widget.weibo.com/livestream/listlive.php?language=zh_cn&width=0&height=500&uid=1905935831&skin=1&refer=1&appkey=869196670&pic=0&titlebar=1&border=1&publish=1&atalk=1&recomm=0&at=0&atopic=%E4%B8%8B%E8%BD%BD%E4%B9%90%E5%95%86%E5%BA%97%EF%BC%8C%E8%B5%A2%E5%8F%8C%E9%87%8D%E5%A4%A7%E5%A5%96&ptopic=%E4%B8%8B%E8%BD%BD%E4%B9%90%E5%95%86%E5%BA%97%EF%BC%8C%E8%B5%A2%E5%8F%8C%E9%87%8D%E5%A4%A7%E5%A5%96&dpc=1"></iframe></center></div><map name="Map" id="Map">  <area shape="rect" coords="101,131,163,161" href="index.php" />  <area shape="rect" coords="37,213,126,249" href="result.php?type=phone" />  <area shape="rect" coords="175,215,258,252" href="result.php?type=pad" /></map></body>

http://www.cpan.cc