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

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

主站蜘蛛池模板: 国产精品久久久久久久久ktv | 玖玖爱视频在线观看 | 午夜激情免费视频 | 欧美成人亚洲国产精品 | 色吊丝欧美| 久热99这里只有精品视频6 | 国产精品午夜高清在线观看 | 国产资源在线看 | 在线免费观看色 | 涩视频永久免费 | 免费看美女的逼 | 久草毛片| 成人啪精品视频免费网站 | 久久综合久 | 国产美女无遮挡免费视频 | 91福利国产在线在线播放 | 加勒比综合 | 亚洲综合激情六月婷婷在线观看 | 好吊日在线 | 天天摸天天看天天爽 | 精品中文字幕一区二区三区四区 | 国产自产精品 | 精品日韩在线视频一区二区三区 | 午夜伦伦 | 国产女人成人精品视频 | 久久噜噜久久久精品66 | 欧美另类videosbestsex视频 | 欧美激情一区二区三区在线播放 | 欧美人爱视频 | 欧美成人性色大片在线观看 | 欧美成人网7777视频 | 国产麻豆精品视频 | 久久综合九色综合欧洲 | 在线观看一区二区三区四区 | 国内国外精品影片无人区 | 97人人澡人人爽人人爱 | 精品国产日韩亚洲一区二区 | 欧美成人亚洲综合精品欧美激情 | 国产成人影院 | 青青草色青伊人 | 国产视频一区二区三区四区 |