一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

純php打造的tab選項卡效果代碼(不用js)

1.根據get判斷,獲取get生成css
復制代碼 代碼如下:
<style type="text/css">
<?php
if(!isset($_GET['city_id']))
{
$city_id = 12;
}
else
{
$city_id = $_GET['city_id'];
}
echo '.a'.$city_id.'
{
color:red;
}
';
for($i=12;$i<=16;$i++)
{
if($i != $city_id)
{
if ($i != 12 )
{
echo '.list'.$i.'{
background-image:url("image/style/bg.gif");
}';
}
else
{
echo '.list'.$i.'
{
background-image:url("image/style/left_bg.gif");
}
';
}
}
else
{
if($city_id != 12)
{
echo '.list'.$city_id.'
{
background-image:url("image/style/on.gif");
}
';
}else
{
echo '.list'.$city_id.'{
background-image:url("image/style/recuit_title.gif");
}';
}
}
}
?>
</style>

2.點擊的時候,就可以打開鏈接
復制代碼 代碼如下:
<div class="recuit_title" >
<ul id="recuit_li">
<li class="list12"><a class="a12" href="test.php?city_id=12">北京</a></li>
<?php
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 '<li class="list'.$recuit_city_row['city_id'].'" ><a class="a'.$recuit_city_row['city_id'].'" href="test.php?city_id=' . $recuit_city_row ['city_id'] . '">' . $recuit_city_row ['city_name'] . '</a></li>';
}
?>
</ul>
<span class="more_recuit_info">
<a href="../job.php?action=recuit_list&cid=12" onClick="parent.showWindow('recuit_list',this.href);return false;">更多招募信息</a>
</span>
</div>
<div class="recuit_content">
<table width="100%">
<?php
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 '<tr height="25">
<td>
<a onclick="parent.showWindow('.'/'recuit_info/','.'this.href'.');return false;"'.'" href="../job.php?action=recuit_info&recuit_id='.$recuit_content_row['recuit_id'].'">'.$recuit_content_row['recuit_name'].'</a>
</td>
<td width="80" align="right" style="color:#0080ff;font-size:12px;">
'.$recuit_content_row['username'].'  
</td>
</tr>';
}
}
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 '<tr>
<td><a onclick="parent.showWindow('.'/'recuit_info/','.'this.href'.');return false;"'.'" href="../job.php?action=recuit_info&recuit_id='.$recuit_content_row['recuit_id'].'">'.$recuit_content_row['recuit_name'].'</a></td>
<td width="80" align="right" style="color:#0080ff;font-size:12px;">'.$recuit_content_row['username'].'  </td>
</tr>';
}
}
?>
</table>
</div>
<div class="recuit_footer">
<?php
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 '<a href="../job.php?action=recuit" onclick="parent.showWindow('.'/'recuit/''.',this.href);return false;"><img src="image/style/recuit_frm_input.gif" border="0" /></a>  ';
}
else
{
echo '<a href="../job.php?action=edit_recuit" onclick="parent.showWindow('.'/'edit_recuit/''.',this.href);return false;"><img src="image/style/edit_recuit.gif" border="0"/><a>  ';
}
?>
</div>

php技術純php打造的tab選項卡效果代碼(不用js),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 亚洲精品在线网站 | 亚洲国产精品久久人人爱 | 国产在线一区视频 | 婷婷色在线视频 | 亚洲一卡2卡4卡5卡6卡在线99 | 极品吹潮视频大喷潮tv | 色婷婷中文字幕 | 中文字幕一区二区三区免费视频 | 亚洲综合成人网在线观看 | 午夜在线视频国产 | 在线综合网 | 国色天香一区三区四区小说 | 大陆5g天天看天天爽免费 | 中文字幕在线一区二区在线 | 天天色综合天天 | 4hu永久影院在线四虎 | 夜福利视频 | 中文字幕永久免费视频 | 任我鲁任我在线精品视频 | a亚洲va韩国va欧美va久久 | 久久亚洲综合网 | 自拍欧美日韩 | 日韩精品视频一区二区三区 | 精品日韩欧美一区二区三区在线播放 | 亚洲一区在线观看视频 | 国产成人精品男人免费 | 久久成年片色大黄全免费网站 | 久久ww| 成人在激情在线视频 | 亚亚洲乱码一二三四区 | fenfencao在线观看免费视频 | 色五夜 | 天天干天天插天天 | 丁香五婷婷 | 国产精品视频福利一区二区 | xxxxx在线| 四虎永久在线精品免费影视 | 在线免费观看国产精品 | 日韩激情在线 | 最新欧美精品一区二区三区 | 99香蕉国产精品偷在线观看 |