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

<?php

if( 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值