iseeyou 发表于 2008-12-14 15:17:43

3Q :ali10ls 马上使用

booko2008 发表于 2008-12-14 16:32:29

采集队伍,为您提供一流的采集服务-技术有保障,安全有保障

wutaovip 发表于 2008-12-14 17:43:10

DZ7.0(复选框修改)关于固定勾选发贴选项的方法
修改 /templates/default/post.htm

以html 代码 复选代码为例,其它基本一样
找到:

!--{if $allowhtml}-->
<p><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck tabindex="1" /><label for="htmlon">{lang post_html}</label></p>
<!--{else}-->
      <p><input type="checkbox" id="allowhtml" disabled{if $forum['allowhtml'] || $allowhtml} checked="checked"{/if} /><label for="allowhtml">{lang post_html}</label></p>


红色部分:打勾代码(即:打勾被固定,且可以取消选取)
蓝色部分:打勾后不可取消打勾(即:显示灰色不可选取)


实现红色部分如下:

将<p><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck tabindex="1"换成 <p><input type="checkbox" name="htmlon" id="htmlon" checked="checked"
实现蓝色部分:换成<p><input type="checkbox" name="htmlon" id="htmlon" disabled{if $forum['allowhtml'] || $allowhtml} checked="checked"{/if} 或将<!--{else}-->上下两段代码交换位置.





总结:实现上,只要赋予了checked="checked" 值就实现了选取姿态!!!

收藏 分享 评分

yg0898 发表于 2008-12-14 18:04:51

看看先,帮顶!!!!

lewjawell 发表于 2008-12-14 18:39:19

好东西我要下啊谢谢

taky 发表于 2008-12-14 19:35:39

支持支持~~~

kxwg778 发表于 2008-12-14 20:57:12

看看,谢谢。

娃娃 发表于 2008-12-14 21:05:23

http://bbs.locoy.com/spider-33233-1-1.html

rune1578 发表于 2008-12-14 21:43:22

ali14ls ali14ls让我学习一下

0020 发表于 2008-12-14 22:04:50

支持啊,正好用到
页: 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17
查看完整版本: Discuz!7.0.0正式版模块_全编码适用(动静态支持)_支持tags标签_免费版同样适用