将以下代码粘贴至需要提醒的页面,如论坛帖子内容页:记事本打开 /template/你的模板名字/viewthread.htm,在里面查找<!--{subtemplate common/footer}-->,在其上面粘贴下面代码:
QQ与新浪登录的两个图标文件
,右击保存到你自己的模板目录下image文件夹中
演示图片
<!--{if !$_G['uid']}-->
<style>
#login-wrap {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
z-index: 999;
_position: absolute;
_bottom:auto;
_top:expression(eval
(document.documentElement.scrollTop+document.documentElement.clientHeig
ht-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-
(parseInt(this.currentStyle.marginBottom,10)||0)));
}
.login-box {
padding: 18px 0 7px;
border-top: 1px solid #D2E0B1;
border-bottom: 1px solid #D2E0B1;
box-shadow: 2px 2px 6px #8CA226;
background: #D9E6BB;
filter: progidXImageTransform.Microsoft.gradient
(enabled='true',startColorstr='#E5D9E6BB',endColorstr='#E5D9E6BB');
background: rgba(217, 230, 187, 0.9);
}
.login-user {
position: relative;
margin: 0 auto;
width: 980px;
height: 70px;
}
.login-title {
color: #8CA226;
margin-bottom: 14px;
margin-right: 10px;
}
.login-title, .login-cont, .login-ft {
display: inline;
position: relative;
}
.fl {
float: left;
background: #D9E6BB;
background-color: #D9E6BB;
}
.login-title h3 {
margin-top: 3px;
height: 30px;
font: 400 24px/30px "Microsoft YaHei",SimHei;
}
arrow {
margin-top: 13px;
width: 30px;
height: 12px;
background: url
("http://img2.citysbs.com/css/0.6.1.52/app/view/images/view_bg.png")
no-repeat right -232px;
}
.login-cont {
height: 63px;
}
.login-cont ul {
position: absolute;
top: 0;
left: 0;
width: 720px;
}
.login-cont li {
display: inline;
float: left;
margin-right: 10px;
height: 80px;
overflow: hidden;
}
.login-cont .txt {
float: left;
margin-bottom: 10px;
width: 140px;
height: 25px;
line-height: 25px;
color: #999;
font-size: 14px;
zoom: 1;
}
.login-user .txt {
padding: 3px;
border: 1px solid #D8D8D8;
color: #333;
}
.login-cont .login-item {
color: #666;
clear: both;
}
.login-cont .login-item input {
margin-top: -2px;
}
.login-cont .login-item {
color: #666;
clear: both;
}
.login-cont .login-captcha {
width: 112px;
}
.login-cont .login-qt {
width: 77px;
height: 60px;
border-right: 1px solid #B4C574;
}
.login-cont .login-button, .login-cont .login-button:visited {
display: block;
float: left;
width: 64px;
color: white;
border: 1px solid #B9C97D;
border-radius: 6px;
font-size: 14px;
font-weight: 700;
height: 36px;
line-height: 30px;
margin-right: 10px;
text-align: center;
background: #7F9C14;
background: -moz-linear-gradient(top,#ABBF42,#8EA423);
background: -webkit-linear-gradient(top,#ABBF42,#8EA423);
}
.login-cont .login-related a {
display: block;
width: 60px;
height: 24px;
line-height: 24px;
border: 1px solid #DDD;
border-radius: 6px;
}
.account-qq2 {
background: whiteSmoke url(../../template/这里改成你的模板目录/image/qq.gif) no-repeat;
}
a.sinalogin2 {
background: whiteSmoke url(../../template/这里改成你的模板目录/image/sina.png) no-
repeat;
background-position: 8px 3px;
}
</style>
<div id="login-wrap""><div class="login-box"><div class="login-user
clearall"><div class="login-title fl clearall"><h3 class="fl">逛了这许
久,何不进去瞧瞧?</h3><span class="login-arrow fl"></span></div><div
class="login-cont fl"><ul><form action="member.php?
mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes"
method="post"><li>
<input type="text" id="id="userName"" name="username" class="txt"
tabindex="1" value="" placeholder="临夏网用户名">
<div class="login-item"><label><input type="checkbox" id="uauto"
name="cookietime" class="checkbox" checked="true" value="2592000"
tabindex="903"> 下次自动登录</label></div></li><li><input
type="password" id="userPass" name="password" class="txt" tabindex="2"
placeholder="请输入密码"><div class="login-item"><a href="javascript:;"
onclick="showWindow('login', 'member.php?
mod=logging&action=login&viewlostpw=1')">忘记密码?
</a></div></li><li class="login-qt"><button type="submit"
tabindex="904" class="login-button">登录</button><div class="login-
item"><a href="member.php?mod=register" target="_blank">新用户注册
</a></div></li><li class="login-related color9"><a href="connect.php?
mod=login&op=init&referer=index.php&statfrom=login_simple"
class="account-qq2" tabindex="7">QQ登录</a><a href="xwb.php?
m=xwbAuth.login" class="sinalogin2" tabindex="8">微博登录
</a></li></form></ul></div></div></div></div>
<!--{/if}-->
|