[求助]请教各位大侠
如何在网页添加一个按钮,按下按钮时,按钮上的字体变为斜体,松开鼠标后又恢复为原来的字体?
<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"--> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <style type="text/css"> <!-- .unnamed1 { font-style: italic; } .unnamed2 { font-style: normal; } --> </style> </head>
<body> <input name="Submit" type="button" onmousedown="vbscript:me.classname='unnamed1'" onmouseup="vbscript:me.classname='unnamed2'" onmouseout="vbscript:me.classname='unnamed2'" value="按钮"> </body> </html>