1.根据get判断,获取get生成css 复制代码 代码如下: <BR><?php <BR>if(!isset($_GET['city_id'])) <BR>{ <BR>$city_id = 12; <BR>} <BR>else <BR>{ <BR>$city_id = $_GET['city_id']; <BR>} <BR>echo '.a'.$city_id.' <BR>{ <BR>color:red; <BR>} <BR>'; <BR>for($i=12;$i<=16;$i++) <BR>{ <BR>if($i != $city_id) <BR>{ <BR>if ($i != 12 ) <BR>{ <BR>echo '.list'.$i.'{ <BR>background-image:url("image/style/bg.gif"); <BR>}'; <BR>} <BR>else <BR>{ <BR>echo '.list'.$i.' <BR>{ <BR>background-image:url("image/style/left_bg.gif"); <BR>} <BR>'; <BR>} <BR>} <BR>else <BR>{ <BR>if($city_id != 12) <BR>{ <BR>echo '.list'.$city_id.' <BR>{ <BR>background-image:url("image/style/on.gif"); <BR>} <BR>'; <BR>}else <BR>{ <BR>echo '.list'.$city_id.'{ <BR>background-image:url("image/style/recuit_title.gif"); <BR>}'; <BR>} <BR>} <BR>} <BR>?> <BR> 2.点击的时候,就可以打开链接 复制代码 代码如下: 北京 include_once ("config/db.inc.php"); $recuit_city_select = "select * from cdb_plugins_city where city_id in(13,14,15,16)"; $recuit_city_query = mysql_query ( $recuit_city_select ); while ( $recuit_city_row = mysql_fetch_assoc ( $recuit_city_query ) ) { $cid = $recuit_city_row['city_id']; echo '' . $recuit_city_row ['city_name'] . ''; } ?> 更多招募信息 if(!$_GET['city_id']) { $recuit_content_select = "select * from cdb_plugins_recuit where city_id= 12 limit 0,8"; $recuit_content_query = mysql_query($recuit_content_select); while($recuit_content_row = mysql_fetch_assoc($recuit_content_query)) { echo ' '.$recuit_content_row['recuit_name'].' '.$recuit_content_row['username'].' '; } } else { $recuit_content_select = "select * from cdb_plugins_recuit where city_id={$_GET['city_id']} limit 0,10"; $recuit_content_query = mysql_query($recuit_content_select); while($recuit_content_row = mysql_fetch_assoc($recuit_content_query)) { echo ' '.$recuit_content_row['recuit_name'].' '.$recuit_content_row['username'].' '; } } ?> include_once ("../include/common.inc.php"); $recuit_query = mysql_query("select * from cdb_plugins_recuit_userinfo where uid=$discuz_uid"); $recuit_rows = mysql_fetch_assoc($recuit_query); if($recuit_rows['uid'] == '') { echo ' '; } else { echo ' '; } ?> http://www.bkjia.com/PHPjc/322766.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/322766.htmlTechArticle1.根据get判断,获取get生成css 复制代码 代码如下: style type="text/css" ?php if(!isset($_GET['city_id'])) { $city_id = 12; } else { $city_id = $_GET['city_id']; } e...