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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[经验] 分享一段点亮图标的代码(判断资料的完整性)

[复制链接]
easer 发表于 2009-2-3 12:41:35 | 显示全部楼层
貌似代码也可以这样写,这样能省一般的图片,应该能节省资源
  1. <!--{if $space[namestatus]}-->
  2. <img border=0 src="template/$_SC[template]/images/name_l.gif" alt="已通过实名">
  3. <!--{else}-->
  4. <span class="sl">
  5. <a href="cp.php?ac=profile"><img border=0 src="template/$_SC[template]/images/name_l.gif"  style="filter:Gray" alt="未通过实名"></a></span>
  6. <!--{/if}-->
复制代码

从头像未登录先是灰色借鉴的,应该好使
回复

使用道具 举报

easer 发表于 2009-2-3 12:43:43 | 显示全部楼层
貌似代码也可以这样写,这样能省一般的图片,应该能节省资源
  1. <!--{if $space[namestatus]}-->
  2. <img border=0 src="template/$_SC[template]/images/name_l.gif" alt="已通过实名">
  3. <!--{else}-->
  4. <span class="sl">
  5. <a href="cp.php?ac=profile"><img border=0 src="template/$_SC[template]/images/name_l.gif"  style="filter:Gray" alt="未通过实名"></a></span>
  6. <!--{/if}-->
复制代码
从头像未登录先是灰色借鉴的,应该好使
回复

使用道具 举报

 楼主| yunli5 发表于 2009-2-3 13:03:29 | 显示全部楼层
楼上的代码IE支持哦。换FIREFOX可能就没效果了.嘿嘿.
回复

使用道具 举报

viplhl 发表于 2009-2-3 15:09:44 | 显示全部楼层
谢谢~~~~~~~~~~~
回复

使用道具 举报

gamevps 发表于 2009-2-3 16:50:04 | 显示全部楼层
呵呵,支持楼主.
回复

使用道具 举报

 楼主| yunli5 发表于 2009-2-3 16:59:15 | 显示全部楼层
感谢CCTV。感谢MTV
回复

使用道具 举报

kelonlove 发表于 2009-2-6 10:18:32 | 显示全部楼层
呵呵,挺好滴
回复

使用道具 举报

hongxun123 发表于 2009-2-6 15:36:36 | 显示全部楼层
帮你顶一个,呵。
回复

使用道具 举报

hongxun123 发表于 2009-2-6 15:38:07 | 显示全部楼层
帮你顶一个,呵。
回复

使用道具 举报

16766 发表于 2009-2-6 16:02:40 | 显示全部楼层
那个位置填写代码??
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 13:17 , Processed in 0.539844 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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