Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

首页美化登录框DZ7.2

[复制链接]
newsfriend 发表于 2009-12-22 20:07:42 | 显示全部楼层 |阅读模式
将image文件内的图片上传到 你的论坛/images/ 目录下.
---------------------------------------------------------------------

修改方法如下:
修改你当前正在用的默认风格中的index_header.htm文件,现在以templates/default/index_header.htm为例说明:
在此代码{lang home_welcome_guest}  
复制代码之后插入如下代码:
----------------------------------------------------------------------
  1. <!--GIMPBOX.COM 首页登录框-->

  2. <style>

  3. .txtz { padding-left:20px;background-repeat:no-repeat;background-position: 2px 2px; border:1px solid;width:120px;height:18px;border-color:#6eb1d5 #D3E8F2 #D3E8F2 #6eb1d5;}

  4. &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;.grey { font-size: 12px;color:#444444;float: left;font-weight: bold; }

  5. .mima { float: right;margin-right: 5px; }

  6. .zhuce { float: right;margin-right: 5px;margin-top: 7px; }

  7. .denglu { width: 40px;height:23px;float: left;margin-top: 3px;margin-bottom: 2px;margin-right: 10px;}

  8. </style>

  9. <form id="loginform" method="post" name="login" action="logging.php?action=login&loginsubmit=true">

  10. <table>

  11. <tr>

  12. <td>

  13. <input type="hidden" name="formhash" value="{FORMHASH}">

  14. <input type="hidden" name="cookietime" value="2592000">

  15. <input type="hidden" id="fl_qid_inp" name="questionid" value="0">

  16. <input type="hidden" name="referer" value="index.php">

  17. 用户名:<input type="text" name="username" size="10" class="txtz" autocomplete="off" style="background-image:url('./images/username.gif')" tabindex="0">

  18. 密码:<input type="password" name="password" size="10" class="txtz" autocomplete="off" style="background-image:url('./images/password.gif')" tabindex="0">

  19. </td>

  20. <td>

  21. <p style="color:#999999;margin-top: 7px;"><span id="fl_qid_hover" class="dropmenu" onmouseover="showMenu(this.id, 0, 0, 2, 250, 0, 'fl_qid')">{lang security_question}</span></p>

  22. <p id="fl_qid" style="margin-left:-6px"></p>

  23. <ul id="fl_qid_menu" class="popupmenu_popup headermenu_popup" style="width:100px;display:none">

  24. <li><a href="javascript:;" onclick="switchqid(0, this)" id="qid0">无{lang security_question}</a></li>

  25. <li><a href="javascript:;" onclick="switchqid(1, this)">1.{lang security_question_1}</a></li>

  26. <li><a href="javascript:;" onclick="switchqid(2, this)">2.{lang security_question_2}</a></li>

  27. <li><a href="javascript:;" onclick="switchqid(3, this)">3.{lang security_question_3}</a></li>

  28. <li><a href="javascript:;" onclick="switchqid(4, this)">4.{lang security_question_4}</a></li>

  29. <li><a href="javascript:;" onclick="switchqid(5, this)">5.{lang security_question_5}</a></li>

  30. <li><a href="javascript:;" onclick="switchqid(6, this)">6.{lang security_question_6}</a></li>

  31. <li><a href="javascript:;" onclick="switchqid(7, this)">7.{lang security_question_7}</a></li>

  32. </ul>

  33. </td>

  34. <td><p id="fl_qa" style="display:none"><input type="text" name="answer" class="txtz" autocomplete="off" style="background-image:url('./images/warning.gif')" tabindex="1"></p>

  35. </div>

  36. <script>

  37. function switchqid(id, obj) {

  38. $('fl_qid_hover').innerHTML = id > 0 ? '{lang security_question} ' + id : '{lang security_question}';

  39. $('fl_qid_inp').value = id;

  40. hideMenu();

  41. $('fl_qa').style.display = id > 0 ? '' : 'none';

  42. lastqid.style.fontWeight = '';

  43. lastqid = obj;

  44. lastqid.style.fontWeight = 'bold';

  45. }

  46. var lastqid = $('qid0');

  47. lastqid.style.fontWeight = 'bold';

  48. </script>

  49. </td>



  50. <td><input type="image" src="./images/login.gif" id="login" name="loginsubmit" alt="登陆" /></td>



  51. <td><a href="$regname" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><img src="./images/reg.gif" alt="注册"></a></td>



  52. &nbsp;&nbsp;</tr>



  53. </table>

  54. </form>

  55. <!--GIMPBOX 首页登录框结束-->
复制代码
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

smileho 发表于 2009-12-22 20:28:57 | 显示全部楼层
没有演示吗?
回复

使用道具 举报

gushiyue2008 发表于 2009-12-22 20:51:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

lingshi75 发表于 2010-1-11 13:05:12 | 显示全部楼层
提供演示给大家:www.hdmn8.com
但是登录上方会有个空白,不知道怎么去掉?
希望高手告知!
回复

使用道具 举报

定做模板 发表于 2010-1-11 15:06:23 | 显示全部楼层
顶一个~~~~




回复

使用道具 举报

船老大 发表于 2010-2-1 02:09:54 | 显示全部楼层
为什么没有安全提问
回复

使用道具 举报

子文花苑 发表于 2010-2-1 02:20:56 | 显示全部楼层
我也在纳闷 不支持 UID 和 E-MAIL 登录么?
回复

使用道具 举报

xifantang 发表于 2010-2-11 15:35:02 | 显示全部楼层
在此代码{lang home_welcome_guest}  
替换?上面?下面?安全问题呢?顶部有一个登录,下面还要一个??

S/B
回复

使用道具 举报

绯色雪月 发表于 2013-3-14 09:08:37 来自手机 | 显示全部楼层
看下好了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-4 01:28 , Processed in 0.141688 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表