gmszone 发表于 2010-11-15 21:28:50

反潜水奖励。。

眼镜蛇 发表于 2010-11-15 21:31:29

<!--{subtemplate common/header}-->

<!--{subtemplate common/pubsearchform}-->

<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!----><div id="diy1" class="area"></div><!---->
</div>

<div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
<div id="chart" class="bm bw0 cl">
<!--{if $_G['uid']}--><p class="y"><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><span class="pipe">|</span><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a></p><!--{/if}-->
<p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: $postdata<span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
</div>
<!--{if empty($gid) && $announcements}-->
<div id="an" class="bm bw0">
<dl class="cl">
<dt class="z xw1">{lang announcements}: </dt>
<dd>
<div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
</dd>
</dl>
</div>
<script type="text/javascript">announcement();</script>
<!--{/if}-->

<div class="mn">
<!--{hook/index_top}-->

<!--{if !empty($_G['cache']['heats']['message'])}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang hotthreads_forum}</h2>
</div>
<div class="bm_c cl">
<div class="heat z">
<!--{loop $_G['cache']['heats']['message'] $data}-->
<dl class="xld">
<dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data" onclick="return removeindexheats()">delete</a><!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$data" target="_blank" class="xi2">$data</a></dt>
<dd>$data</dd>
</dl>
<!--{/loop}-->
</div>
<ul class="xl heatl">
<!--{loop $_G['cache']['heats']['subject'] $data}-->
<li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data" onclick="return removeindexheats()">delete</a><!--{/if}--><a href="forum.php?mod=viewthread&tid=$data" target="_blank" class="xi2">$data</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->

<div class="fl bm">
<!--{loop $catlist $key $cat}-->
<div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<img id="category_$cat_img" src="{IMGDIR}/$cat" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat');" />
</span>
<!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat</span><!--{/if}-->
<!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
<h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat{/if}" style="{if $cat}color: {$cat};{/if}">$cat</a></h2>
</div>
<div id="category_$cat" class="bm_c" style="$collapse['category_'.$cat]">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{loop $cat $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
<!--{if $cat['forumcolumns']}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g" width="$cat">
<div class="fl_icn_g"{if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</div>
<dl{if !empty($forum) && !empty($forum)} style="margin-left: {$forum}px;"{/if}>
<dt><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></dt>
<!--{if empty($forum)}--><dd><em>{lang forum_threads}: $forum</em>, <em>{lang forum_posts}: $forum</em></dd><!--{/if}-->
<dd>
<!--{if $forum['permission'] == 1}-->
{lang ∵_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<!--{if $cat['forumcolumns'] < 3}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost">{lang forum_lastpost}: $forum</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
</dl>
</td>
<!--{else}-->
<td class="fl_icn" {if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></h2>
<!--{if $forum}--><p class="xg2">$forum</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum</span></p><!--{/if}-->
</td>
<td class="fl_i">
<!--{if empty($forum)}--><span class="xi2">$forum</span><span class="xg1"> / $forum</span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $forum['permission'] == 1}-->
{lang ∵_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/loop}-->
$cat['endrows']
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/$cat}-->
<!--{/loop}-->
</div>

<!--{hook/index_middle}-->

<!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
<div id="online" class="bm oll">
<div class="bm_h">
<!--{if $detailstatus}-->
<span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
- <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
<strong>$guestcount</strong> {lang index_guests}
- {lang index_mostonlines} <strong>$onlineinfo</strong> {lang on} <strong>$onlineinfo</strong>.</span>
</h3>
<!--{else}-->
<span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
- {lang index_mostonlines} <strong>$onlineinfo</strong> {lang on} <strong>$onlineinfo</strong>.</span>
</h3>
<!--{/if}-->
</div>
<!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
<dl id="onlinelist" class="bm_c">
<dt class="ptm pbm bbda">$_G</dt>
<!--{if $detailstatus}-->
<dd class="ptm pbm">
<ul class="cl">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online">
<img src="{STATICURL}image/common/$online" alt="icon" />
<!--{if $online['uid']}-->
<a href="home.php?mod=space&uid=$online">$online</a>
<!--{else}-->
$online
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->

<!--{if empty($gid) && ($_G['cache']['forumlinks'] || $_G['cache']['forumlinks'] || $_G['cache']['forumlinks'])}-->
<div class="bm lk">
<div id="category_lk" class="bm_c ptm">
<!--{if $_G['cache']['forumlinks']}-->
<ul class="m mbn cl">$_G['cache']['forumlinks']</ul>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<div class="mbn cl">
$_G['cache']['forumlinks']
</div>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<ul class="x mbm cl">
$_G['cache']['forumlinks']
</ul>
<!--{/if}-->
</div>
</div>
<!--{/if}-->

<!--{hook/index_bottom}-->
</div>

<!--{if $_G['setting']['forumallowside']}-->
<div id="sd" class="sd">
<!--{hook/index_side_top}-->
<div class="drag">
<!----><div id="diy2" class="area"></div><!---->
</div>
<!--{hook/index_side_bottom}-->
</div>
<!--{/if}-->
</div>

<div class="wp mtn">
<!----><div id="diy3" class="area"></div><!---->
</div>
<!--{subtemplate common/footer}-->
以上为论坛首页模板源码


不知道LZ是不是也精通PHP

不过我在这方面还是新手···

蛋定如初 发表于 2010-11-15 21:35:20

回复 gmszone 的帖子

那不是解决问题的方法吧?alt属性的值是给图片增加描述的,也就是说,当你把鼠标移动到图片上,就会出现alt属性的值。。。

gmszone 发表于 2010-11-15 21:38:19

好吧,我不懂,我懂HTML,我之前是用Google Chrome浏览器查看的,显示的是HTML代码

gmszone 发表于 2010-11-15 21:41:21

我也相纠结这个

gmszone 发表于 2010-11-15 21:42:23

本帖最后由 gmszone 于 2010-11-15 21:44 编辑

回复 蛋定如初 的帖子

呵呵,那里移到照片上试试,那个问题也出现了,PHP咱不是很懂,,,用的是ASP。。

gmszone 发表于 2010-11-15 21:48:26

<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>应该是和这个相同了"$forum"论坛名字,,,的问题,和我遇到一样的问题。。

gmszone 发表于 2010-11-15 21:51:37

http://www.wenliren.com/data/cache/style_2_forum_index.css?W7e 这个文件就是CSS的。。。

gmszone 发表于 2010-11-15 21:54:46

"$forum"是后台定义的,要貌似很麻烦,回宿舍睡觉去了。。。

gmszone 发表于 2010-11-15 21:58:21

CSS代码的长度超出我的想像,要是Discuz能加入一些CSS3的特性就好了,至少看谷歌浏览器上看起来会是圆角的直角界面看起来不是很漂亮,我做的一个CSS3的简单网页,建议在谷歌浏览器等支持CSS3、HTML5上看http://moqist2.appspot.com/web/mokcy.html
页: 1 [2] 3 4
查看完整版本: <FONT color=#0000FF>§校园文学§›</FONT>