1 $tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 ";
1 $tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 ";
1 $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);
在代码的下一行增加: 1 if($typeids[$i]['ispart'] == 2){2 3 $pv->Fields['typeurl'] = $pv->Fields['typeurl'].'" target="_blank';4 }
这样,在输出的链接后就自动增加了新窗口打开的代码了。 新闻热点
疑难解答