ttzh에서....060825






TT改造 – 写文章画面扩大


TT的文章编辑画面针对1024x768的。但对19inc屏幕使用者来说比较闷。因此把文章编写画面的TABLE宽度的修改而适合于1280x???。
把admin/article_edit.php 修改。按下而修。

[CODE]
171: <table cellpadding="0" cellspacing="0" width="1003"><tr> <table cellpadding="0" cellspacing="0" width="1259"><tr> 172: <td width="430" valign="top" style="padding:20 5 5 5"> <td width="558" valign="top" style="padding:20 5 5 5"> 260: <td><input type="text" class="text" maxlength="80" name="title" value="<?=$title?>" style="width:328"><br></td> <td><input type="text" class="text" maxlength="80" name="title" value="<?=$title?>" style="width:456"><br></td> 269: <input type="file" size="34" class="button" name="uploadfile" style="margin-left:18; margin-top:10; width:295px;"> <input type="file" size="55" class="button" name="uploadfile" style="margin-left:18; margin-top:10; width:423px;"> 274: <td><select size="6" name="filelist" multiple style="width:203;" onchange="set_preview_image(this, document.getElementById('s_image'), '<?=$image_file_path1?>', '<?=$image_file_path2?>')"></select></td> <td><select size="6" name="filelist" multiple style="width:331;" onchange="set_preview_image(this, document.getElementById('s_image'), '<?=$image_file_path1?>', '<?=$image_file_path2?>')"></select></td> 346: <table cellpadding="0" cellspacing="0" width="510" bgcolor="#FFFFFF"><tr> <table cellpadding="0" cellspacing="0" width="638" bgcolor="#FFFFFF"><tr>
[/CODE]

最后如果您使用TT基本文章编辑程序的话。。。

263:
<textarea name="body" rows="18" cols="62" onselect="save_pos(this)" onclick="save_pos(this)" onkeyup="save_pos(this)" style="width:393; margin:5 0 0 18;"><?=str_replace("&", "&amp;", trim(set_body($body)))?></textarea><br>
<textarea name="body" rows="18" cols="83" onselect="save_pos(this)" onclick="save_pos(this)" onkeyup="save_pos(this)" style="width:521; margin:5 0 0 18;"><?=str_replace("&", "&amp;", trim(set_body($body)))?></textarea><br>


如果您使用MINIWANY文章编辑程序的话。。。

[CODE]
miniwini.visualEditor.conf.php 文件的第42行 "width"        => 521, "height"       => 400, miniwini.visualEditor.js文件的第30行, o1.style.width = "521px"; o2.style.width = "521px";
[/CODE]

这样就好了!!


随着画面的横向1024改编为1280,整个面积增加为256,另外都增加为128。按你的屏幕改变上述的数字。而且你第345行的width改为自己的博客文章宽度一致的话,(比如我是630)文章预先画面与博客实际文章一样,不必烦恼两者差异而多次按刷新。

+ Recent posts