一区二区久久-一区二区三区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),轉載需保留來源!

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

主站蜘蛛池模板: 91资源在线视频 | 久久成人精品 | 色多多免费在线观看 | 最新国产在线观看福利91 | 国产精品第5页 | 国产视频自拍一区 | 国产www网站| 在线免费精品视频 | 亚洲国产精品婷婷久久 | 国产福利小视频在线播放观看 | 久久99国产精品久久99软件 | 亚洲香蕉网久久综合影院3p | 亚洲综合在线成人一区 | 国产精品99一区二区三区 | 久久精品国产99国产 | 四虎国产精品一区二区 | 狂野欧美性猛交xxxx免费按摩 | 婷婷激情在线视频 | 亚洲欧美久久婷婷爱综合一区天堂 | 午夜影院日韩 | 最新91| 欧美一级精品 | 久久久久青草线蕉亚洲麻豆 | 欧美成人a | 亚洲小说图片 | 国产欧美日韩免费一区二区 | 97成人免费视频 | 国产综合第一页 | 国产成人麻豆精品video | 麻豆国产原创 | 97一区二区三区四区久久 | 日本在线www | 久久久久久一级毛片免费无遮挡 | 日韩 在线视频精品 | 成人午夜小视频 | 国产91丝袜在线播放九色 | 2021最新在线精品国产 | 国产乱码 | 欧美一区二区三区精品国产 | 亚洲日本1区2区3区二区 | 国产成人精品一区二区视频 |