首先在皮肤框架文件elements.php添加:
<div id="searchbar">
<form method="post" action="visit.php">
<div>
<input name="job" type="hidden" value="search"/>
<input name="searchmethod" type="hidden" value="2"/>
<input name="keyword" type="text" id="search-text" class="keyword" value="Search The Blog..." onfocus="this.value=''"/>
</div>
</form>
</div>
注意你的框架必须定义搜索框为自定义:
然后在CSS相应写出:(例子)
#searchbar{
width:240px;
height:25px;
margin-top:30px;
padding:0;
float:right;
border: 1px solid #333;
background: #252525 url('images/search.gif') no-repeat left;
}
#search-text{
margin:8px 0 0 22px !important;
margin:6px 0 0 22px;
padding:0;
width:200px;
color:#666;
background:none;
border:0;
} //已上代码为XPbox皮肤所定义,你可以自己定义风格相符的CSS//
最后记得:后台权限设置--游客--全文搜索 ,不然游客无法搜索!
<div id="searchbar">
<form method="post" action="visit.php">
<div>
<input name="job" type="hidden" value="search"/>
<input name="searchmethod" type="hidden" value="2"/>
<input name="keyword" type="text" id="search-text" class="keyword" value="Search The Blog..." onfocus="this.value=''"/>
</div>
</form>
</div>
注意你的框架必须定义搜索框为自定义:
$elements['sideblock_search']='';
然后在CSS相应写出:(例子)
#searchbar{
width:240px;
height:25px;
margin-top:30px;
padding:0;
float:right;
border: 1px solid #333;
background: #252525 url('images/search.gif') no-repeat left;
}
#search-text{
margin:8px 0 0 22px !important;
margin:6px 0 0 22px;
padding:0;
width:200px;
color:#666;
background:none;
border:0;
} //已上代码为XPbox皮肤所定义,你可以自己定义风格相符的CSS//
最后记得:后台权限设置--游客--全文搜索 ,不然游客无法搜索!
查看分类:建站历程 出处:本站原创


XPbox Skin o
EasyTabs1.2让



