有谁知道在textarea里面居中后,怎样提取出来居中代码?

wangaiguo 2003-08-20 09:02:27
有谁知道在textarea里面居中后,怎样提取出来居中代码?
...全文
57 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangaiguo 2003-08-20
  • 打赏
  • 举报
回复
function format1(what,opt)
{
if (opt=="removeFormat")
{
what=opt;
opt=null;
}

if (opt==null) Composition.document.execCommand(what);
else Composition.document.execCommand(what,"",opt);

pureText = false;
Composition.focus();
}
=================================================
wangaiguo 2003-08-20
  • 打赏
  • 举报
回复
我在网上下载了网站看看,但看不明白,因为只有asp我最熟,js我不行啊。求救各位大侠!
=============================================
.....
<div class="Btn" TITLE="居中" NAME="Justify" LANGUAGE="javascript" onclick="format('justifycenter');">
<img class="Ico" src="images\icon_editor_center.gif" WIDTH="22" HEIGHT="21">
</div>
.....
==============================================
.....
function format(what,opt)
{
if (!validateMode()) return;

format1(what,opt);
}
.........
================================================
下面的代码什么意思啊?
yufeizhan 2003-08-20
  • 打赏
  • 举报
回复
我想只能虚拟textarea,用溢出的层来代替。

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧