请教高手这样的效果是怎样实现的?

afeng3 2003-03-05 10:24:54
就象在Word中的褪回到上一步操作状态的按钮的效果和褪前进到前一步操作状态的按钮的效果。
...全文
15 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
fason 2003-03-05
  • 打赏
  • 举报
回复
http://expert.csdn.net/Expert/topic/1443/1443841.xml?temp=.2456018
wsj 2003-03-05
  • 打赏
  • 举报
回复
>还有就是怎样使撤消或前进到最后一步按钮变成灰色。

forget it

>IE5.5下怎么办呢?

but try it first.
I can not verify version information of Undo and Redo
afeng3 2003-03-05
  • 打赏
  • 举报
回复
IE5.5下怎么办呢?
afeng3 2003-03-05
  • 打赏
  • 举报
回复
谢谢,我试了一下Undo,Redo参数可以,还有就是怎样使撤消或前进到最后一步按钮变成灰色。
wsj 2003-03-05
  • 打赏
  • 举报
回复
IE6 sp1 test passed
afeng3 2003-03-05
  • 打赏
  • 举报
回复
用过吗?Undo,Redo参数好象目前尚未支持
wsj 2003-03-05
  • 打赏
  • 举报
回复
<input type=button value=剪切 onclick=document.execCommand('Cut')>
<input type=button value=拷贝 onclick=document.execCommand('Copy')>
<input type=button value=粘贴 onclick=document.execCommand('Paste')>
<input type=button value=撤消 onclick=document.execCommand('Undo')>
<input type=button value=重做 onclick=document.execCommand('Redo') id=button2 name=button2>
<input>
<input type=button value=删除 onclick=document.execCommand('Delete')>
<input type=button value=黑体 onclick=document.execCommand('Bold')>
<input type=button value=斜体 onclick=document.execCommand('Italic')>
<input type=button value=下划线 onclick=document.execCommand('Underline')>
<input type=button value=停止 onclick=document.execCommand('stop')>
<input type=button value=保存 onclick=document.execCommand('SaveAs')>
<input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
<input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
<input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
<input type=button value=刷新 onclick=document.execCommand('refresh',false,0)>
nik_Amis 2003-03-05
  • 打赏
  • 举报
回复
up
wsj 2003-03-05
  • 打赏
  • 举报
回复
算了吧,如同用铅笔“画”毛笔字
吃力不讨好

可以结贴了
afeng3 2003-03-05
  • 打赏
  • 举报
回复
难道用javascript无法实现吗?
blues-star 2003-03-05
  • 打赏
  • 举报
回复
IE不同版本,只要按Ctrl + Z(Undo),Ctrl + Y(Redo)好用,就能用。

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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