返回
编程
分类

复制代码 代码如下,再按运行

日期: 2020-02-16 14:53 浏览次数 : 194

This notepad can handle bigger files than the one shiped with Win9x.
Learn how to make windows looking interfaces in HTML.
Interesting use of Commondialogs.

<style> .normal{ cursor:default; font-size: 9pt; background-color:buttonface; border:buttonface 1px solid; padding:1px; } .mouseover{ cursor:default; font-size: 9pt; background-color:buttonface; border-top:buttonhighlight 1px solid; border-right:buttonshadow 1px solid; border-bottom:buttoshadow 1px solid; border-left:buttonhighlight 1px solid; padding:1px; } .mousedown{ cursor:default; font-size: 9pt; background:buttonface; border-top:buttonshadow 1px solid; border-right:buttonhighlight 1px solid; border-bottom:buttonhighlight 1px solid; border-left:buttonshadow 1px solid; padding-top:2px; padding-right:0px; padding-bottom:0px; padding-left:2px; } </style> <div align="left"> <table border="1" cellpadding="0" cellspacing="0" width="148" height="22" onselectstart="return false"> <tr> <td width="37" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center">文件</td> <td width="37" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center">编辑</td> <td width="37" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center">查看</td> <td width="37" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center">插入</td> </tr> </table> </div>

<style> .normal{ cursor:default; font-size: 9pt; background-color:#DEDEDE; border:#DEDEDE 1px solid; } .mouseover{ cursor:default; font-size: 9pt; background-color:#F1F6FE; border:#000080 1px outset; } .mousedown{ cursor:default; font-size: 9pt; background-color:#FFFFFF; border:buttonhighlight 1px inset; } </style> <div align="left"> <table border="1" cellpadding="0" cellspacing="0" width="279" height="22" onselectstart="return false"> <tr> <td width="77" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center"> 查杀病毒(<u>S</u>) </td> <td width="76" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center"> 嵌入工具(<u>P</u>) </td> <td width="76" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center"> 实用工具(<u>T</u>) </td> <td width="51" height="1" class="normal" onmouseover="this.className='mouseover'" onmousedown="this.className='mousedown'" onmouseup="this.className='mouseover'" onmouseout="this.className='normal'" align="center"> 帮助(<u>H</u>) </td> </tr> </table> </div>

效果图:

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

必威官网亚洲体育 1

网友评论

复制代码 代码如下:

  • 请问修改哪里才可以改变按下按钮发生的动作啊?(59.33.*.* 2008-01-23 12:12:05)
  • 可以给菜单所在的 td 指定 onclick 事件。(61.128.*必威官网亚洲体育 ,.* 2008-01-23 20:50:03)

 APPLICATIONNAME="HTANotePad" ID="oHTA" BORDER="thick"
 BORDERSTYLE="normal" CAPTION="yes" CONTEXTMENU="yes"
 INNERBORDER="no" MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes"
 NAVIGABLE="yes"
 ICON="NOTEPAD.EXE" SCROLL="no" SCROLLFLAT="no"
 SELECTION="no" SHOWINTASKBAR="yes" SINGLEINSTANCE="no"
 SYSMENU="yes" VERSION="0.3" WINDOWSTATE="normal">

 

  onmouseover='MenuOver Me,MyFileMenu'
  onmouseout='MenuOut Me'> File

 

  onmouseover='MenuOver Me,MyEditMenu'
  onmouseout='MenuOut Me'> Edit

 

  onmouseover='MenuOver Me,MyFindMenu'
  onmouseout='MenuOut Me'> Find

 

  onmouseover='MenuOver Me,MyHelpMenu'
  onmouseout='MenuOut Me'> ?

 

 

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'> New

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'> Open

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'> Save

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'> Save As

 


 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'> Quit

 

 


 

 


 

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'>Help

 

  onmouseover='Submenuover Me'
  onmouseout='Submenuout Me'>About