pyemail 发表于 2008-12-13 21:40:28

回复 1楼 的帖子

正需要它呢!非常感谢

oaken 发表于 2008-12-13 22:35:17

Discuz!7.0.0正式版WEB在线发布模块

hackhu 发表于 2008-12-13 22:56:01

太好了,顶你!好厉害啊

两年 发表于 2008-12-13 23:21:30

:( :( :( :( :( :(

iseeyou 发表于 2008-12-14 00:31:30

谢谢楼主 非常感谢

ntzhi 发表于 2008-12-14 01:11:39

http://532700.com
强烈支持。

willial 发表于 2008-12-14 01:19:24

谢谢楼主 非常感谢

allenkeen 发表于 2008-12-14 06:35:15

89

:lol 謝謝.......

topqq 发表于 2008-12-14 14:41:40

太好了,顶你............
\

wutaovip 发表于 2008-12-14 17:41:22

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" 值就实现了选取姿态!!!

收藏 分享 评分
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: Discuz!7.0.0正式版WEB在线发布模块