<?php$guanggaotutiao1=$_MODULE["guanggaotiao1"];if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs=''; }?>
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){ if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs=''; } return $bjjs;}guanGao($guanggaotutiao1);
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){ if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs=''; } return $bjjs;}guanGao($guanggaotutiao1);
$guanggaotutiao1=$_MODULE["guanggaotiao1"];function guangGao($url){ if($guanggaotutiao1){ $bjjs='background:url('.$guanggaotutiao1.')'; }else{ $bjjs=''; } return $bjjs;}guanGao($guanggaotutiao1);
<?phpfunction guangao(){ global $guanggaotutiao1; if($guanggaotutiao1) { $bjjs='background:url('.$guanggaotutiao1.')'; } else { $bjjs=''; } return $bjjs;}?>
无需函数
$bjjs = $_MODULE["guanggaotiao1"] ? 'background:url('.$_MODULE["guanggaotiao1"].')' : '';
一定要写成函数的话
function background($url) {
return $url ? "background:url($url)" : '';
}
调用
$bjjs = background($_MODULE["guanggaotiao1"]);
?帖率是0,我去
结帖率0的就没必要搭理了,最起码的尊重都不知道
警告楼上两位!不要做人身攻击
楼主的 注册日期:2013年12月16日
才发此一贴,自然结帖率为0