您的位置:首页 > 编程语言

浏览器屏幕顶部提示未登录会员注册代码解决方法

2014-04-14 11:09 267 查看
如果代码不能全屏浮动,请更换浏览器吧!
具体方法如下:

1. 打开CSS文件 /templates/{current template}/style/engine.css 其中红色部分为当前文件目录名。

在文件代码最后加入

/* 顶部登录用户提示注册的工具条开始*/
.popup {
width: 100%;
height: 25px;
background: #FFFFD5 url(../images/alert.png) no-repeat 8px;
z-index: 1;
position: fixed;
margin: 10px;
border: 1px dotted #bebebe;
color: #757575;
}
.popup a:link { color: #ff0000; text-decoration: none; }
.popup a:hover { color: #04b404; text-decoration: none; }
.popup img { border:none; }
/* 顶部登录用户提示注册的塑料隔膜泵工具条结束*/

这里我将宽度更改为100%是为了能满屏可能代码不规范,但是比原版好用!原版是400px

2. 保存提醒图标 图片为alert.png

3. 打开 /templates/{current template}/main.tpl 其中红色部分为当前塑料隔膜泵文件目录名。

找到{AJAX}

在下面添加下面代码

[group=5]
<div class="popup">

<ul style="padding: 0 0 0 30px;">
游客您好! 请登录享受会员功能,如果未注册请点击 <a href="/index.php?do=register"><b>免费注册</b></a> 成为本站会员...
</ul>

</div>
[/group]

其中group=5,为用户组“游客”
原版为TABLE代码,现改为DIV。
然后保存上传!
Web site and private or company brand pages are more popular these days. But all people aren’t web developer or programmer. So what can people do?

Of course, you have a chance to have best demo site. We suggest you this best one. It doesn’t need your knowledge on CSS or PHP . It gives you abilities to manage your site very simple. For example, if you want to change your site color, size and layout you could just work on admin panel and additional options. It is easy to draw your site corporate style.

[demo href="http://www.dandong.gov.cn/themes/?theme=squaregrid&ref=themeton"]在线演示[/demo][url href="http://z.qjwm.com/download.aspx?down=ok&filepath=suifengtec%2fWP%c4%a3%b0%e5%2fsquaregrid.zip"]点击下载[/url]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐